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.001702/0.001702, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.00172/0.00172, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.495/1.495, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001158, allocations: 49.66 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1496, allocations: 49.44 MB / 350 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005406/0.155, allocations: 2.882 MB / 352.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.157, allocations: 0.6855 MB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.1576, allocations: 4 kB / 353.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.158, allocations: 63.44 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004651/0.1585, allocations: 83.19 kB / 353.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003683/0.1589, allocations: 95.83 kB / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006207/0.1595, allocations: 370.4 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003351/0.1599, allocations: 157.3 kB / 354.4 MB, free: 96 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003505/0.1602, allocations: 143.6 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.1605, allocations: 159.1 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.99e-05/0.1606, allocations: 32 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.1606, allocations: 36 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.58e-05/0.1607, allocations: 71.75 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.1609, allocations: 163.2 kB / 355 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.1613, allocations: 374.9 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1613, allocations: 0 / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.1614, allocations: 3.984 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1614, allocations: 0 / 355.3 MB, free: 15.13 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.0009934/0.1624, allocations: 0.6121 MB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1624, allocations: 8.031 kB / 356 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.1625, allocations: 44.41 kB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1628, allocations: 256.3 kB / 356.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.1628, allocations: 25.03 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.1629, allocations: 32.38 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1634, allocations: 278.4 kB / 356.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.1634, allocations: 7.938 kB / 356.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/0.1635, allocations: 11.98 kB / 356.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1635, allocations: 11.94 kB / 356.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000469/0.164, allocations: 202.5 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.1655, allocations: 0.9868 MB / 357.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1658, allocations: 164.5 kB / 358 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.166, allocations: 76.81 kB / 358 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.166, allocations: 4 kB / 358 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.166, allocations: 34.56 kB / 358.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.166, allocations: 4 kB / 358.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005184/0.1666, allocations: 208 kB / 358.3 MB, free: 12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.1666, allocations: 55.41 kB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.1669, allocations: 206.9 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1669, allocations: 33.7 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1671, allocations: 192 kB / 358.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.1671, allocations: 67.08 kB / 358.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.1672, allocations: 53.61 kB / 358.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1674, allocations: 326.8 kB / 359.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.1676, allocations: 63.95 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.1677, allocations: 110 kB / 359.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.1681, allocations: 185.8 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1681, allocations: 4 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004251/0.1685, allocations: 245.1 kB / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1686, allocations: 8 kB / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1686, allocations: 0 / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1686, allocations: 4 kB / 359.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.1689, allocations: 63.91 kB / 359.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.1689, allocations: 7.984 kB / 359.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.169, allocations: 31.81 kB / 359.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.169, allocations: 4 kB / 359.9 MB, free: 10.28 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.0001326/0.1692, allocations: 145.7 kB / 360 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.751e-05/0.1692, allocations: 19.81 kB / 360.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004192/0.1697, allocations: 191.4 kB / 360.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1697, allocations: 4 kB / 360.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1697, allocations: 4 kB / 360.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1697, allocations: 3.984 kB / 360.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000359/0.1701, allocations: 317.3 kB / 360.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1701, allocations: 7.938 kB / 360.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.1703, allocations: 47.97 kB / 360.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1704, allocations: 8 kB / 360.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.1704, allocations: 3.984 kB / 360.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1704, allocations: 0 / 360.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1704, allocations: 0 / 360.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005832/0.171, allocations: 362.1 kB / 361 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.1711, allocations: 92.92 kB / 361.1 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.1711, allocations: 4.062 kB / 361.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.1713, allocations: 15.98 kB / 361.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.1713, allocations: 11.98 kB / 361.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.1713, allocations: 11.98 kB / 361.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.1715, allocations: 148.6 kB / 361.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1715, allocations: 0 / 361.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003152/0.1718, allocations: 75.69 kB / 361.3 MB, free: 8.738 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.0001604/0.172, allocations: 107.2 kB / 361.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004177/0.1724, allocations: 175.9 kB / 361.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1724, allocations: 0 / 361.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.1726, allocations: 71.91 kB / 361.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1729, allocations: 27.92 kB / 361.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.1744, allocations: 0.8265 MB / 362.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.1747, allocations: 0.7635 MB / 363.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.919e-05/0.1748, allocations: 21.92 kB / 363.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.895e-05/0.1749, allocations: 19.44 kB / 363.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1749, allocations: 0 / 363.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of Templates: time 0.005553/0.1804, allocations: 2.014 MB / 365.4 MB, free: 4.676 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/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