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.001537/0.001537, allocations: 106.2 kB / 16.62 MB, free: 6.758 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.002008/0.002008, allocations: 193.8 kB / 17.55 MB, free: 5.93 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.547/1.547, allocations: 205.1 MB / 223.4 MB, free: 12.38 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.00122/0.00122, allocations: 52.34 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1346, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007617/0.1423, allocations: 5.334 MB / 331.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004017/0.1464, allocations: 1.462 MB / 332.9 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008006/0.1473, allocations: 23.88 kB / 333 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.1479, allocations: 166.6 kB / 333.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006478/0.1486, allocations: 150.7 kB / 333.3 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009533/0.1496, allocations: 343.7 kB / 333.6 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.151, allocations: 1.115 MB / 334.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008424/0.1519, allocations: 484.2 kB / 335.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007287/0.1526, allocations: 398.2 kB / 335.6 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.153, allocations: 433.5 kB / 336 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.1532, allocations: 84 kB / 336.1 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.1534, allocations: 103.9 kB / 336.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.1535, allocations: 203.2 kB / 336.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003834/0.1539, allocations: 0.5009 MB / 336.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.155, allocations: 1.117 MB / 338 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.155, allocations: 0 / 338 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.155, allocations: 0 / 338 MB, free: 8.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.1551, allocations: 4 kB / 338 MB, free: 8.84 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.002006/0.1571, allocations: 1.305 MB / 339.3 MB, free: 7.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.1571, allocations: 16.02 kB / 339.3 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.1573, allocations: 126.5 kB / 339.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008559/0.1582, allocations: 0.6146 MB / 340.1 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.821e-05/0.1583, allocations: 77.94 kB / 340.1 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.1584, allocations: 96 kB / 340.2 MB, free: 6.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.1601, allocations: 1.027 MB / 341.3 MB, free: 5.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/0.1601, allocations: 15.92 kB / 341.3 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.1602, allocations: 40 kB / 341.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.1602, allocations: 28 kB / 341.3 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.1614, allocations: 0.5617 MB / 341.9 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005004/0.1664, allocations: 5.516 MB / 347.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005066/0.1669, allocations: 225 kB / 347.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.1673, allocations: 169.8 kB / 347.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.1675, allocations: 89.05 kB / 347.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.1675, allocations: 38.56 kB / 347.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.1676, allocations: 0 / 347.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003892/0.1715, allocations: 1.704 MB / 349.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.102e-05/0.1715, allocations: 97.03 kB / 349.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007651/0.1723, allocations: 0.6294 MB / 350.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1724, allocations: 29.7 kB / 350.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004631/0.1728, allocations: 0.5948 MB / 351 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.173, allocations: 157.9 kB / 351.1 MB, free: 11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1732, allocations: 138.4 kB / 351.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.1734, allocations: 382.8 kB / 351.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.1737, allocations: 153.9 kB / 351.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006783/0.1744, allocations: 0.4933 MB / 352.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.1754, allocations: 0.6959 MB / 353 MB, free: 8.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1754, allocations: 4 kB / 353 MB, free: 8.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001166/0.1766, allocations: 0.7073 MB / 353.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.1766, allocations: 11.94 kB / 353.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.1767, allocations: 12 kB / 353.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.693e-05/0.1767, allocations: 16 kB / 353.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.1774, allocations: 204.3 kB / 353.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.034e-05/0.1774, allocations: 27.86 kB / 354 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.1778, allocations: 28 kB / 354 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-05/0.1779, allocations: 39.98 kB / 354 MB, free: 7.758 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.000363/0.1782, allocations: 229.5 kB / 354.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1784, allocations: 75.06 kB / 354.3 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.1785, allocations: 74.53 kB / 354.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1785, allocations: 8 kB / 354.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/0.1786, allocations: 7.938 kB / 354.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1786, allocations: 0 / 354.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.1808, allocations: 1.335 MB / 355.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1809, allocations: 0 / 355.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/0.1813, allocations: 108 kB / 355.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.1814, allocations: 4 kB / 355.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.1814, allocations: 8 kB / 355.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191e-05/0.1814, allocations: 15.92 kB / 355.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1814, allocations: 0 / 355.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.1825, allocations: 0.7041 MB / 356.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.1826, allocations: 136.2 kB / 356.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.912e-05/0.1827, allocations: 20.03 kB / 356.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.183, allocations: 23.92 kB / 356.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.1831, allocations: 23.97 kB / 356.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.1831, allocations: 15.98 kB / 356.8 MB, free: 4.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005168/0.1836, allocations: 419 kB / 357.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.1837, allocations: 0 / 357.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007204/0.1844, allocations: 143.9 kB / 357.4 MB, free: 4.301 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.0002143/0.1846, allocations: 111.2 kB / 357.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009447/0.1856, allocations: 449.7 kB / 357.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1856, allocations: 0 / 357.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003108/0.1859, allocations: 156.1 kB / 358.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006088/0.1865, allocations: 79.3 kB / 358.1 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.1897, allocations: 2.111 MB / 360.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006038/0.1903, allocations: 1.004 MB / 361.2 MB, free: 336 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003183/0.1906, allocations: 98 kB / 361.3 MB, free: 236 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.1908, allocations: 59.42 kB / 361.4 MB, free: 176 kB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1908, allocations: 0 / 361.4 MB, free: 176 kB / 302.1 MB Notification: Performance of Templates: time 0.01175/0.2025, allocations: 4.866 MB / 366.3 MB, free: 11.3 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)