Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_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.00111/0.00111, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001128/0.001128, allocations: 190 kB / 18.07 MB, free: 5.414 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.519/1.519, allocations: 205.1 MB / 223.9 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.001341/0.001341, allocations: 43.94 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1367, allocations: 46.62 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007158/0.1439, allocations: 5.326 MB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004441/0.1484, allocations: 1.458 MB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.1495, allocations: 27.81 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006733/0.1502, allocations: 166.6 kB / 333.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008352/0.1511, allocations: 150.7 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009174/0.152, allocations: 343.5 kB / 334 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1532, allocations: 1.072 MB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006545/0.1538, allocations: 431.4 kB / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005468/0.1544, allocations: 370.2 kB / 335.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004684/0.1549, allocations: 413.6 kB / 336.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.155, allocations: 60 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.1552, allocations: 68 kB / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.1554, allocations: 191 kB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004445/0.1558, allocations: 473.1 kB / 337.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009735/0.1568, allocations: 1.035 MB / 338.1 MB, free: 9.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1568, allocations: 0 / 338.1 MB, free: 9.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1568, allocations: 0 / 338.1 MB, free: 9.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.1569, allocations: 0 / 338.1 MB, free: 9.289 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.001949/0.1588, allocations: 1.317 MB / 339.4 MB, free: 7.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.1589, allocations: 8.031 kB / 339.4 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.1591, allocations: 126.4 kB / 339.6 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008461/0.1599, allocations: 0.6107 MB / 340.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.16, allocations: 77.94 kB / 340.3 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1601, allocations: 96 kB / 340.3 MB, free: 6.961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.1619, allocations: 1.038 MB / 341.4 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.1619, allocations: 3.938 kB / 341.4 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.919e-05/0.162, allocations: 44 kB / 341.4 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.1621, allocations: 28 kB / 341.5 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1632, allocations: 0.5656 MB / 342 MB, free: 5.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005556/0.1688, allocations: 5.516 MB / 347.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005866/0.1694, allocations: 229 kB / 347.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.1697, allocations: 165.6 kB / 347.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/0.1699, allocations: 81.11 kB / 348 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.17, allocations: 46.48 kB / 348 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.426e-06/0.17, allocations: 0 / 348 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004029/0.174, allocations: 1.714 MB / 349.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.1741, allocations: 85.05 kB / 349.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006966/0.1748, allocations: 0.6294 MB / 350.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.1749, allocations: 37.7 kB / 350.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.1753, allocations: 0.5909 MB / 351.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.1754, allocations: 153.9 kB / 351.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.1756, allocations: 138.5 kB / 351.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1758, allocations: 386.8 kB / 351.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.1761, allocations: 149.9 kB / 351.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006246/0.1767, allocations: 0.4932 MB / 352.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1778, allocations: 0.6882 MB / 353.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1778, allocations: 8 kB / 353.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001326/0.1792, allocations: 0.7112 MB / 353.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.1792, allocations: 8 kB / 353.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.1792, allocations: 15.98 kB / 353.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.881e-05/0.1793, allocations: 23.98 kB / 353.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/0.1799, allocations: 196.2 kB / 354.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/0.18, allocations: 27.86 kB / 354.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.1803, allocations: 31.98 kB / 354.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.964e-05/0.1804, allocations: 40 kB / 354.1 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.0003349/0.1807, allocations: 225.5 kB / 354.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.1808, allocations: 75.06 kB / 354.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.181, allocations: 78.47 kB / 354.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.181, allocations: 12 kB / 354.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.181, allocations: 7.938 kB / 354.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.181, allocations: 0 / 354.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.1832, allocations: 1.321 MB / 355.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1832, allocations: 0 / 355.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004497/0.1836, allocations: 104 kB / 356 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1836, allocations: 4 kB / 356 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.1837, allocations: 12 kB / 356 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-05/0.1837, allocations: 11.92 kB / 356 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.1837, allocations: 7.938 kB / 356 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009528/0.1847, allocations: 0.6964 MB / 356.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1848, allocations: 136.2 kB / 356.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.1849, allocations: 16.03 kB / 356.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.1852, allocations: 27.92 kB / 356.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.476e-05/0.1853, allocations: 27.91 kB / 356.9 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.1853, allocations: 11.98 kB / 356.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000502/0.1858, allocations: 423 kB / 357.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1858, allocations: 0 / 357.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006673/0.1865, allocations: 140 kB / 357.5 MB, free: 4.746 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.0001446/0.1866, allocations: 115.1 kB / 357.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007487/0.1874, allocations: 437.4 kB / 358 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1874, allocations: 0 / 358 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.1877, allocations: 149.3 kB / 358.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005591/0.1882, allocations: 83.55 kB / 358.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.1911, allocations: 2.113 MB / 360.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.1917, allocations: 1 MB / 361.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002826/0.192, allocations: 90.02 kB / 361.4 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.1922, allocations: 71.41 kB / 361.5 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1922, allocations: 0 / 361.5 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of Templates: time 0.01072/0.2029, allocations: 4.666 MB / 366.2 MB, free: 11.96 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches