Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002408/0.002408, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002684/0.002684, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.615e-05/3.787e-05, allocations: 9.766 kB / 267.4 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007659/0.007697, allocations: 5.071 MB / 272.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003386/0.01108, allocations: 1.418 MB / 273.8 MB, free: 196 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006009/0.01168, allocations: 35.69 kB / 273.9 MB, free: 160 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005608/0.01224, allocations: 221.8 kB / 274.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006218/0.01287, allocations: 201.8 kB / 274.3 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.01389, allocations: 403.2 kB / 274.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.01544, allocations: 1.153 MB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000602/0.01604, allocations: 312.9 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009217/0.01696, allocations: 0.5885 MB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004551/0.01742, allocations: 298.9 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.01756, allocations: 84 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.01777, allocations: 103.9 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.01799, allocations: 219 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.01837, allocations: 319 kB / 277.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001448/0.01982, allocations: 1.164 MB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.01983, allocations: 4 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01983, allocations: 0 / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.01985, allocations: 0 / 278.9 MB, free: 11.09 MB / 266.7 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.002272/0.02212, allocations: 1.422 MB / 280.3 MB, free: 9.629 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.02216, allocations: 8.031 kB / 280.3 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.02247, allocations: 215.2 kB / 280.5 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.02359, allocations: 0.62 MB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/0.02366, allocations: 77.94 kB / 281.2 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.0238, allocations: 96 kB / 281.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/0.02595, allocations: 1.213 MB / 282.5 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.039e-05/0.02599, allocations: 11.89 kB / 282.6 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.644e-05/0.02608, allocations: 44 kB / 282.6 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/0.02611, allocations: 24 kB / 282.6 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.0273, allocations: 0.5461 MB / 283.2 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/0.1557, allocations: 7.108 MB / 290.3 MB, free: 27.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000572/0.1563, allocations: 228.8 kB / 290.5 MB, free: 27.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.1566, allocations: 144.5 kB / 290.6 MB, free: 27.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.1567, allocations: 14.38 kB / 290.7 MB, free: 27.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.1567, allocations: 37.47 kB / 290.7 MB, free: 27.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.826e-06/0.1567, allocations: 6.25 kB / 290.7 MB, free: 27.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003414/0.1601, allocations: 1.572 MB / 292.3 MB, free: 26.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.1602, allocations: 81.72 kB / 292.3 MB, free: 26.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007793/0.1609, allocations: 0.8134 MB / 293.2 MB, free: 26.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.161, allocations: 32.83 kB / 293.2 MB, free: 26.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.1613, allocations: 0.6905 MB / 293.9 MB, free: 25.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.557e-05/0.1613, allocations: 161.3 kB / 294 MB, free: 25.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.1615, allocations: 155.4 kB / 294.2 MB, free: 25.58 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1617, allocations: 0.5939 MB / 294.8 MB, free: 25.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.1619, allocations: 143.6 kB / 294.9 MB, free: 25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/0.1624, allocations: 0.6459 MB / 295.6 MB, free: 24.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007642/0.1631, allocations: 0.8513 MB / 296.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.1632, allocations: 3.438 kB / 296.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001137/0.1643, allocations: 0.744 MB / 297.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.1643, allocations: 14.42 kB / 297.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.1643, allocations: 11.22 kB / 297.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.1644, allocations: 17.38 kB / 297.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/0.165, allocations: 191 kB / 297.4 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.697e-05/0.165, allocations: 23.53 kB / 297.4 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.1653, allocations: 38.44 kB / 297.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.737e-05/0.1654, allocations: 40.77 kB / 297.5 MB, free: 23.18 MB / 266.7 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.0002615/0.1657, allocations: 273 kB / 297.8 MB, free: 22.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.1658, allocations: 94.56 kB / 297.9 MB, free: 22.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.1659, allocations: 74.05 kB / 297.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1659, allocations: 9.406 kB / 297.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.1659, allocations: 0 / 297.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1659, allocations: 6.141 kB / 297.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.1679, allocations: 1.371 MB / 299.3 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1679, allocations: 1.25 kB / 299.3 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.1684, allocations: 94.64 kB / 299.4 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1684, allocations: 2.531 kB / 299.4 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.1684, allocations: 13.62 kB / 299.4 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.1684, allocations: 11.98 kB / 299.4 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1684, allocations: 6.625 kB / 299.4 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008576/0.1693, allocations: 0.7947 MB / 300.2 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1694, allocations: 70 kB / 300.3 MB, free: 21.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.112e-05/0.1694, allocations: 13.19 kB / 300.3 MB, free: 21.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.1697, allocations: 21.89 kB / 300.3 MB, free: 21.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.1698, allocations: 33.83 kB / 300.4 MB, free: 21.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.1698, allocations: 10.3 kB / 300.4 MB, free: 21.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004787/0.1703, allocations: 491.8 kB / 300.9 MB, free: 21.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1703, allocations: 0 / 300.9 MB, free: 21.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007094/0.171, allocations: 140.4 kB / 301 MB, free: 21.12 MB / 266.7 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.0001078/0.1711, allocations: 105.7 kB / 301.1 MB, free: 21.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007696/0.1719, allocations: 451.1 kB / 301.5 MB, free: 20.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1719, allocations: 0.75 kB / 301.5 MB, free: 20.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.1721, allocations: 162.1 kB / 301.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.1726, allocations: 80.03 kB / 301.8 MB, free: 20.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.1748, allocations: 1.626 MB / 303.4 MB, free: 19.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.1753, allocations: 423.8 kB / 303.8 MB, free: 19.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.1755, allocations: 91.59 kB / 303.9 MB, free: 19.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.1757, allocations: 69.14 kB / 304 MB, free: 19.63 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1757, allocations: 4 kB / 304 MB, free: 19.62 MB / 266.7 MB Notification: Performance of Templates: time 0.009759/0.1854, allocations: 4.718 MB / 308.7 MB, free: 16.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.745707959053107]