Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.007647/0.007647, allocations: 100.2 kB / 15.73 MB, free: 6.008 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.001428/0.001428, allocations: 193 kB / 16.67 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.752/1.752, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.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.001799/0.001799, allocations: 50.98 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1398, allocations: 46.62 MB / 373.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007981/0.1478, allocations: 5.343 MB / 378.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003992/0.1518, allocations: 1.47 MB / 380 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006189/0.1525, allocations: 31.81 kB / 380 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005413/0.1531, allocations: 217.8 kB / 380.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005888/0.1537, allocations: 194 kB / 380.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008594/0.1546, allocations: 395.4 kB / 380.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1557, allocations: 1.13 MB / 382 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006976/0.1564, allocations: 492.2 kB / 382.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.1569, allocations: 394.3 kB / 382.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004217/0.1573, allocations: 433.6 kB / 383.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1574, allocations: 84 kB / 383.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.1576, allocations: 103.9 kB / 383.4 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.1578, allocations: 207.2 kB / 383.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.1583, allocations: 0.5009 MB / 384.1 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.1596, allocations: 1.167 MB / 385.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1596, allocations: 0 / 385.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1596, allocations: 0 / 385.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.1597, allocations: 0 / 385.3 MB, free: 5.227 MB / 318.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.001979/0.1616, allocations: 1.305 MB / 386.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1617, allocations: 15.97 kB / 386.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.1619, allocations: 122.5 kB / 386.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.1629, allocations: 0.6497 MB / 387.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.244e-05/0.163, allocations: 81.94 kB / 387.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.1631, allocations: 103.9 kB / 387.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/0.1648, allocations: 1.031 MB / 388.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.1649, allocations: 7.938 kB / 388.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.45e-05/0.165, allocations: 40 kB / 388.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.037e-05/0.165, allocations: 28 kB / 388.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.1661, allocations: 0.5578 MB / 389.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005434/0.1715, allocations: 5.489 MB / 394.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.1722, allocations: 233 kB / 394.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.1725, allocations: 157.6 kB / 395.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.1727, allocations: 85.05 kB / 395.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.1728, allocations: 38.56 kB / 395.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.035e-06/0.1728, allocations: 0 / 395.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004173/0.177, allocations: 1.712 MB / 396.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.177, allocations: 85.05 kB / 397 MB, free: 8.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008772/0.1779, allocations: 0.641 MB / 397.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.178, allocations: 33.7 kB / 397.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/0.1784, allocations: 0.5987 MB / 398.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1786, allocations: 146 kB / 398.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.1788, allocations: 138.5 kB / 398.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.179, allocations: 386.8 kB / 398.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.1793, allocations: 149.9 kB / 399.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.1799, allocations: 0.4893 MB / 399.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.181, allocations: 0.7035 MB / 400.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/0.181, allocations: 4 kB / 400.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001361/0.1824, allocations: 0.7035 MB / 401 MB, free: 4.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.1825, allocations: 12 kB / 401 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.1825, allocations: 15.94 kB / 401 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.703e-05/0.1825, allocations: 16 kB / 401 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006657/0.1832, allocations: 204.2 kB / 401.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.686e-05/0.1832, allocations: 27.86 kB / 401.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004506/0.1837, allocations: 32 kB / 401.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.1838, allocations: 39.98 kB / 401.3 MB, free: 4.133 MB / 334.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.0003898/0.1842, allocations: 229.5 kB / 401.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.1844, allocations: 78.97 kB / 401.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.1845, allocations: 74.53 kB / 401.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1845, allocations: 4 kB / 401.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.1846, allocations: 7.938 kB / 401.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1846, allocations: 0 / 401.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.1871, allocations: 1.313 MB / 403 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.1871, allocations: 7.938 kB / 403 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.1876, allocations: 107.8 kB / 403.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/0.1876, allocations: 4 kB / 403.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/0.1877, allocations: 11.94 kB / 403.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.1877, allocations: 4.156 kB / 403.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1877, allocations: 4 kB / 403.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.189, allocations: 0.7008 MB / 403.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.1892, allocations: 144.1 kB / 404 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.519e-05/0.1893, allocations: 8 kB / 404 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.1896, allocations: 24.02 kB / 404 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.1898, allocations: 27.97 kB / 404.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.1899, allocations: 12 kB / 404.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006324/0.1905, allocations: 423 kB / 404.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1905, allocations: 0 / 404.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008849/0.1914, allocations: 140 kB / 404.6 MB, free: 0.7031 MB / 334.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.0001967/0.1916, allocations: 111.1 kB / 404.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.1927, allocations: 446.3 kB / 405.2 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.1927, allocations: 0 / 405.2 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.193, allocations: 155.7 kB / 405.3 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.1938, allocations: 79.22 kB / 405.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003482/0.1973, allocations: 1.651 MB / 407.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007828/0.1981, allocations: 1 MB / 408.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.1984, allocations: 98 kB / 408.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.1985, allocations: 67.41 kB / 408.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1986, allocations: 0 / 408.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of Templates: time 0.01501/0.2136, allocations: 5.085 MB / 413.3 MB, free: 7.938 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)