Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001405, allocations: 100.9 kB / 16.51 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 193.2 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.899/1.899, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 47.94 kB / 279.3 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1385, allocations: 46.64 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007112/0.1456, allocations: 5.327 MB / 331.3 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003728/0.1494, allocations: 1.466 MB / 332.8 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007715/0.1502, allocations: 27.81 kB / 332.8 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005458/0.1508, allocations: 162.6 kB / 332.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006442/0.1514, allocations: 150.7 kB / 333.1 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008771/0.1523, allocations: 343.6 kB / 333.4 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1534, allocations: 1.064 MB / 334.5 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006607/0.1541, allocations: 431.4 kB / 334.9 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.1546, allocations: 370.2 kB / 335.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003807/0.155, allocations: 417.6 kB / 335.7 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1551, allocations: 60 kB / 335.7 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.1553, allocations: 71.98 kB / 335.8 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.1554, allocations: 187.1 kB / 336 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003828/0.1558, allocations: 477 kB / 336.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008757/0.1567, allocations: 1.031 MB / 337.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1567, allocations: 0 / 337.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1567, allocations: 4 kB / 337.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1568, allocations: 0 / 337.5 MB, free: 9.277 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001937/0.1587, allocations: 1.309 MB / 338.8 MB, free: 7.914 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.1588, allocations: 12.03 kB / 338.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.1589, allocations: 126.5 kB / 338.9 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008278/0.1598, allocations: 0.6146 MB / 339.6 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/0.1599, allocations: 77.94 kB / 339.6 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.16, allocations: 96 kB / 339.7 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.1617, allocations: 1.034 MB / 340.8 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.1617, allocations: 0 / 340.8 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-05/0.1618, allocations: 44 kB / 340.8 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.531e-05/0.1618, allocations: 31.94 kB / 340.8 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.1629, allocations: 0.5539 MB / 341.4 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005195/0.1681, allocations: 5.52 MB / 346.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005542/0.1687, allocations: 229 kB / 347.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.169, allocations: 165.6 kB / 347.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000272/0.1693, allocations: 85.09 kB / 347.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.1694, allocations: 46.48 kB / 347.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.1694, allocations: 0 / 347.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004261/0.1737, allocations: 1.708 MB / 349.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.1738, allocations: 85.05 kB / 349.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008807/0.1747, allocations: 0.6294 MB / 349.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.1747, allocations: 33.7 kB / 349.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004656/0.1752, allocations: 0.6026 MB / 350.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.1753, allocations: 153.9 kB / 350.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.1755, allocations: 130.5 kB / 350.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.1757, allocations: 390.7 kB / 351.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.176, allocations: 153.9 kB / 351.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000622/0.1767, allocations: 0.4893 MB / 351.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009895/0.1777, allocations: 0.6921 MB / 352.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1777, allocations: 4 kB / 352.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001179/0.1789, allocations: 0.7155 MB / 353.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.1789, allocations: 8 kB / 353.2 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.179, allocations: 12 kB / 353.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.254e-05/0.179, allocations: 16 kB / 353.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007028/0.1797, allocations: 203.6 kB / 353.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.363e-05/0.1798, allocations: 23.88 kB / 353.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004327/0.1802, allocations: 36.2 kB / 353.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-05/0.1803, allocations: 40 kB / 353.5 MB, free: 8.191 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004266/0.1807, allocations: 229.5 kB / 353.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1808, allocations: 75.06 kB / 353.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.181, allocations: 74.55 kB / 353.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.181, allocations: 4 kB / 353.9 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.181, allocations: 7.938 kB / 353.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.181, allocations: 3.984 kB / 353.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.1833, allocations: 1.323 MB / 355.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-06/0.1833, allocations: 0 / 355.2 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.1838, allocations: 103.9 kB / 355.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.1838, allocations: 4 kB / 355.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.1839, allocations: 12.16 kB / 355.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.1839, allocations: 7.938 kB / 355.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.1839, allocations: 3.938 kB / 355.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.1851, allocations: 0.7003 MB / 356.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.1853, allocations: 148.1 kB / 356.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.1853, allocations: 8.094 kB / 356.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/0.1857, allocations: 39.8 kB / 356.2 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/0.1858, allocations: 27.94 kB / 356.3 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.1858, allocations: 12 kB / 356.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005693/0.1864, allocations: 427 kB / 356.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1864, allocations: 0 / 356.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008309/0.1872, allocations: 140 kB / 356.8 MB, free: 4.734 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001822/0.1874, allocations: 103.2 kB / 356.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008255/0.1883, allocations: 437 kB / 357.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1883, allocations: 0 / 357.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.1885, allocations: 155.7 kB / 357.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.1892, allocations: 76.17 kB / 357.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.1924, allocations: 2.101 MB / 359.7 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.1931, allocations: 1.008 MB / 360.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003199/0.1934, allocations: 86.02 kB / 360.8 MB, free: 0.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.1936, allocations: 67.41 kB / 360.9 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1936, allocations: 0 / 360.9 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of Templates: time 0.01121/0.2048, allocations: 4.668 MB / 365.5 MB, free: 11.97 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)