Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001919/0.00192, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 55.7 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1558, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004595/0.1605, allocations: 2.882 MB / 354.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1617, allocations: 0.6816 MB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1619, allocations: 4 kB / 355.1 MB, free: 116 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.1621, allocations: 59.38 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.1623, allocations: 91.3 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.1626, allocations: 83.89 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003818/0.1629, allocations: 382.3 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/0.1632, allocations: 165.3 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1634, allocations: 139.5 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1637, allocations: 163.3 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.1637, allocations: 32 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.823e-05/0.1638, allocations: 32 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.1638, allocations: 67.77 kB / 356.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.164, allocations: 163.2 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.1644, allocations: 386.6 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.1644, allocations: 0 / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1644, allocations: 0 / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1644, allocations: 4 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009736/0.1654, allocations: 0.6082 MB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1655, allocations: 16.03 kB / 357.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.1656, allocations: 36.47 kB / 357.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/0.1659, allocations: 264.2 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.166, allocations: 25.03 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.615e-05/0.166, allocations: 28.38 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.1665, allocations: 278.4 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1666, allocations: 0 / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.1666, allocations: 16 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1666, allocations: 8 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004563/0.1671, allocations: 202.5 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.1686, allocations: 0.9712 MB / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003159/0.169, allocations: 158.6 kB / 359.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.1692, allocations: 84.81 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1692, allocations: 0 / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1692, allocations: 38.56 kB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.313e-06/0.1692, allocations: 3.938 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000579/0.1698, allocations: 205.6 kB / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.1699, allocations: 59.39 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.1701, allocations: 207 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.1701, allocations: 29.7 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.1703, allocations: 188 kB / 360.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.1703, allocations: 71.08 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.1704, allocations: 49.61 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1706, allocations: 326.8 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1707, allocations: 67.95 kB / 360.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1709, allocations: 113.9 kB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.1713, allocations: 193.8 kB / 361 MB, free: 9.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1713, allocations: 0 / 361 MB, free: 9.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004452/0.1718, allocations: 241.2 kB / 361.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1718, allocations: 4 kB / 361.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1718, allocations: 8.125 kB / 361.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1718, allocations: 0 / 361.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.1721, allocations: 59.91 kB / 361.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.1721, allocations: 7.984 kB / 361.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.1723, allocations: 27.69 kB / 361.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.1723, allocations: 12 kB / 361.3 MB, free: 9.539 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001419/0.1724, allocations: 145.7 kB / 361.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.1725, allocations: 15.81 kB / 361.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004003/0.1729, allocations: 195.4 kB / 361.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1729, allocations: 0 / 361.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1729, allocations: 0 / 361.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1729, allocations: 3.984 kB / 361.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.1733, allocations: 321.3 kB / 362 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1733, allocations: 0 / 362 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.1736, allocations: 59.89 kB / 362.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1736, allocations: 0 / 362.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.1736, allocations: 12 kB / 362.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1736, allocations: 0 / 362.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1736, allocations: 3.938 kB / 362.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.1742, allocations: 347.1 kB / 362.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.1743, allocations: 88.92 kB / 362.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1743, allocations: 8.062 kB / 362.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.1745, allocations: 19.98 kB / 362.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.1745, allocations: 11.97 kB / 362.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.1746, allocations: 4 kB / 362.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.1747, allocations: 152.6 kB / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1747, allocations: 0 / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.175, allocations: 75.62 kB / 362.8 MB, free: 8.008 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0001532/0.1752, allocations: 111.2 kB / 362.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000375/0.1756, allocations: 162.5 kB / 363 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1756, allocations: 4 kB / 363 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.1757, allocations: 75.89 kB / 363.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.1761, allocations: 32.17 kB / 363.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.1775, allocations: 0.8226 MB / 364 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.178, allocations: 0.7635 MB / 364.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.973e-05/0.1781, allocations: 21.94 kB / 364.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.1781, allocations: 19.44 kB / 364.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1782, allocations: 0 / 364.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of Templates: time 0.006065/0.1842, allocations: 2.006 MB / 366.8 MB, free: 3.953 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches