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.0008933/0.0008934, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001056/0.001056, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.79/1.79, allocations: 205.4 MB / 224 MB, free: 13.14 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.0006047/0.0006047, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1445, allocations: 47.58 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005575/0.1502, allocations: 4.588 MB / 332.9 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004527/0.1547, allocations: 1.412 MB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.1562, allocations: 27.81 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005827/0.1568, allocations: 162.6 kB / 334.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008103/0.1577, allocations: 146.7 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1587, allocations: 291.6 kB / 335 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.16, allocations: 0.9934 MB / 336 MB, free: 12.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.1606, allocations: 350.2 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005456/0.1612, allocations: 314.4 kB / 336.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000417/0.1616, allocations: 349.9 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.683e-05/0.1617, allocations: 40 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.1619, allocations: 59.98 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1621, allocations: 159.2 kB / 337.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1623, allocations: 201.1 kB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008017/0.1631, allocations: 0.7754 MB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1631, allocations: 0 / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1631, allocations: 0 / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.1631, allocations: 0 / 338.2 MB, free: 10.2 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.001843/0.165, allocations: 1.13 MB / 339.3 MB, free: 9.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.165, allocations: 8.031 kB / 339.3 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.1652, allocations: 126.4 kB / 339.4 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009177/0.1662, allocations: 0.5801 MB / 340 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.361e-05/0.1662, allocations: 77.95 kB / 340.1 MB, free: 8.184 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.1664, allocations: 104 kB / 340.2 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.1681, allocations: 1.023 MB / 341.2 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.1681, allocations: 11.92 kB / 341.2 MB, free: 6.926 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.82e-05/0.1682, allocations: 44 kB / 341.3 MB, free: 6.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/0.1682, allocations: 24 kB / 341.3 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.1693, allocations: 0.5578 MB / 341.8 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005313/0.1747, allocations: 5.54 MB / 347.4 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.1752, allocations: 228.9 kB / 347.6 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.1756, allocations: 169.3 kB / 347.8 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002152/0.1758, allocations: 89.06 kB / 347.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.1758, allocations: 38.55 kB / 347.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 5.67e-06/0.1758, allocations: 8 kB / 347.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004182/0.18, allocations: 1.763 MB / 349.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.258e-05/0.1801, allocations: 81.11 kB / 349.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009746/0.1811, allocations: 0.6333 MB / 350.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.1812, allocations: 29.7 kB / 350.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/0.1817, allocations: 0.6026 MB / 351 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.1819, allocations: 150 kB / 351.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.1819, allocations: 16 kB / 351.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.1822, allocations: 386.8 kB / 351.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.1825, allocations: 157.9 kB / 351.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005941/0.1831, allocations: 0.4894 MB / 352.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000485/0.1836, allocations: 231.8 kB / 352.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.1836, allocations: 0 / 352.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001376/0.185, allocations: 0.7293 MB / 353.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.1851, allocations: 15.98 kB / 353.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/0.1851, allocations: 12 kB / 353.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.851e-05/0.1851, allocations: 16.62 kB / 353.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006346/0.1858, allocations: 199.7 kB / 353.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.71e-05/0.1858, allocations: 35.84 kB / 353.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.1863, allocations: 39.94 kB / 353.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.723e-05/0.1864, allocations: 36 kB / 353.5 MB, free: 9.977 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003758/0.1868, allocations: 229.5 kB / 353.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1869, allocations: 75.06 kB / 353.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001483/0.1871, allocations: 74.53 kB / 353.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.1871, allocations: 4 kB / 353.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.1871, allocations: 0 / 353.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1871, allocations: 4 kB / 353.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.1896, allocations: 1.364 MB / 355.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.1897, allocations: 4 kB / 355.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005037/0.1902, allocations: 111.8 kB / 355.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/0.1902, allocations: 4 kB / 355.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.095e-05/0.1903, allocations: 15.92 kB / 355.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.1903, allocations: 12.16 kB / 355.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.1903, allocations: 0 / 355.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.1915, allocations: 0.729 MB / 356.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.1917, allocations: 136.2 kB / 356.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.902e-05/0.1918, allocations: 16 kB / 356.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.1921, allocations: 23.98 kB / 356.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.1922, allocations: 31.91 kB / 356.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.1923, allocations: 15.98 kB / 356.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005878/0.1929, allocations: 419 kB / 356.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1929, allocations: 0 / 356.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000855/0.1938, allocations: 136 kB / 356.9 MB, free: 6.469 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002362/0.194, allocations: 119.1 kB / 357 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.195, allocations: 441 kB / 357.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.1951, allocations: 1.438 kB / 357.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.1954, allocations: 160.1 kB / 357.6 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.1961, allocations: 79.23 kB / 357.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003671/0.1998, allocations: 2.086 MB / 359.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000666/0.2004, allocations: 1 MB / 360.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.2008, allocations: 94.02 kB / 360.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.2009, allocations: 67.41 kB / 360.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2009, allocations: 0 / 360.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of Templates: time 0.01345/0.2144, allocations: 4.522 MB / 365.4 MB, free: 13.83 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