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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 84.98 kB / 23 MB, free: 1.5 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 172.2 kB / 26.39 MB, free: 7.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9407/0.9407, allocations: 158.6 MB / 188.3 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 252.3 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.784e-05/1.916e-05, allocations: 6.25 kB / 252.3 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006529/0.006548, allocations: 4.987 MB / 257.3 MB, free: 2.199 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.009988, allocations: 1.454 MB / 258.7 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007206/0.01071, allocations: 35.75 kB / 258.8 MB, free: 0.707 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.01123, allocations: 217.8 kB / 259 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004836/0.01171, allocations: 217.6 kB / 259.2 MB, free: 284 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.01236, allocations: 403.3 kB / 259.6 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009004/0.01326, allocations: 1.153 MB / 260.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.01366, allocations: 312.9 kB / 261 MB, free: 14.4 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007084/0.01437, allocations: 0.6001 MB / 261.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.01467, allocations: 294.9 kB / 261.9 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.769e-05/0.01476, allocations: 84 kB / 262 MB, free: 13.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.01488, allocations: 103.9 kB / 262.1 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.015, allocations: 215 kB / 262.3 MB, free: 13.11 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.0152, allocations: 323 kB / 262.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006573/0.01586, allocations: 0.7739 MB / 263.4 MB, free: 12.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.01586, allocations: 0 / 263.4 MB, free: 12.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01586, allocations: 0 / 263.4 MB, free: 12.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.01588, allocations: 7.938 kB / 263.4 MB, free: 12.01 MB / 250.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.001289/0.01717, allocations: 1.363 MB / 264.8 MB, free: 10.61 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.0172, allocations: 11.98 kB / 264.8 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.0174, allocations: 211.2 kB / 265 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006513/0.01805, allocations: 0.6083 MB / 265.6 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.01809, allocations: 74 kB / 265.7 MB, free: 9.68 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-05/0.01818, allocations: 107.9 kB / 265.8 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008549/0.01903, allocations: 0.9911 MB / 266.8 MB, free: 8.402 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.01906, allocations: 11.94 kB / 266.8 MB, free: 8.391 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.738e-05/0.0191, allocations: 44 kB / 266.8 MB, free: 8.348 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.01912, allocations: 28 kB / 266.9 MB, free: 8.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003827/0.0195, allocations: 321.2 kB / 267.2 MB, free: 8.004 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00311/0.02261, allocations: 6.745 MB / 273.9 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.02288, allocations: 181.9 kB / 274.1 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.023, allocations: 99.61 kB / 274.2 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.665e-05/0.02305, allocations: 15.92 kB / 274.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.02307, allocations: 45.64 kB / 274.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.02307, allocations: 0 / 274.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of matching and sorting (n=40): time 0.00158/0.02465, allocations: 1.05 MB / 275.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.02469, allocations: 81.11 kB / 275.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.02505, allocations: 0.6588 MB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.02507, allocations: 33.7 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.02536, allocations: 0.6733 MB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.44e-05/0.02543, allocations: 150.7 kB / 276.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.02554, allocations: 148.1 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.02573, allocations: 0.5662 MB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.02584, allocations: 61.94 kB / 277.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.02621, allocations: 0.5539 MB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.02664, allocations: 0.6933 MB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.02665, allocations: 4 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005307/0.02718, allocations: 0.5753 MB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.02719, allocations: 12 kB / 279.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.0272, allocations: 16.16 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.02722, allocations: 16 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.02755, allocations: 195.7 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.02757, allocations: 23.92 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.02774, allocations: 28 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.02777, allocations: 28 kB / 279.8 MB, free: 10.43 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.0001477/0.02792, allocations: 220.1 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.833e-05/0.02799, allocations: 91.48 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.02806, allocations: 78.55 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.02806, allocations: 4 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.02807, allocations: 0 / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.02807, allocations: 3.984 kB / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009179/0.02899, allocations: 0.9905 MB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.02899, allocations: 4.156 kB / 281.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.02921, allocations: 107.8 kB / 281.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.02921, allocations: 4 kB / 281.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.02923, allocations: 8 kB / 281.3 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.02923, allocations: 4 kB / 281.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.02923, allocations: 0 / 281.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003934/0.02963, allocations: 0.6295 MB / 281.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.02968, allocations: 63.48 kB / 282 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.02971, allocations: 12 kB / 282 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.02985, allocations: 23.98 kB / 282 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.0299, allocations: 35.88 kB / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.02991, allocations: 12 kB / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.03011, allocations: 390.7 kB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03011, allocations: 0 / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003683/0.03048, allocations: 136 kB / 282.6 MB, free: 7.527 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 9.479e-05/0.03058, allocations: 115.1 kB / 282.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002723/0.03085, allocations: 300.4 kB / 283 MB, free: 7.113 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.03085, allocations: 4.438 kB / 283 MB, free: 7.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.027e-05/0.03094, allocations: 111.4 kB / 283.1 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.03127, allocations: 66.98 kB / 283.2 MB, free: 6.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.03291, allocations: 1.564 MB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.03301, allocations: 170.1 kB / 284.9 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.03316, allocations: 94.02 kB / 285 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.03335, allocations: 190.1 kB / 285.2 MB, free: 4.828 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.03335, allocations: 0 / 285.2 MB, free: 4.828 MB / 266.7 MB Notification: Performance of Templates: time 0.008562/0.04191, allocations: 5.228 MB / 290.4 MB, free: 15.64 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9883507820777595]