Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009887/0.0009887, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001102/0.001102, allocations: 169.9 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9665/0.9665, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.12e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004826/0.004847, allocations: 5.045 MB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.007636, allocations: 1.565 MB / 280.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005144/0.00815, allocations: 39.69 kB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004037/0.008554, allocations: 209.8 kB / 280.3 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000548/0.009102, allocations: 221.6 kB / 280.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007493/0.009851, allocations: 419.2 kB / 281 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009899/0.01084, allocations: 1.153 MB / 282.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.01129, allocations: 332.8 kB / 282.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007281/0.01202, allocations: 0.5962 MB / 283 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002887/0.01231, allocations: 302.8 kB / 283.3 MB, free: 7.324 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.01239, allocations: 84 kB / 283.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.01253, allocations: 99.94 kB / 283.5 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.01264, allocations: 219 kB / 283.7 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.01283, allocations: 319 kB / 284 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006374/0.01347, allocations: 0.7817 MB / 284.8 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.01348, allocations: 4 kB / 284.8 MB, free: 5.828 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01348, allocations: 4 kB / 284.8 MB, free: 5.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.01349, allocations: 0 / 284.8 MB, free: 5.824 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.001281/0.01477, allocations: 1.246 MB / 286.1 MB, free: 4.551 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.0148, allocations: 11.97 kB / 286.1 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.01505, allocations: 179.9 kB / 286.3 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/0.01568, allocations: 0.5392 MB / 286.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.01572, allocations: 74 kB / 286.9 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.161e-05/0.0158, allocations: 100 kB / 287 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007536/0.01656, allocations: 0.9212 MB / 287.9 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.01658, allocations: 15.88 kB / 287.9 MB, free: 2.551 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.121e-05/0.01662, allocations: 40 kB / 287.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.01664, allocations: 24 kB / 288 MB, free: 2.488 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.01703, allocations: 305.3 kB / 288.3 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.107/0.124, allocations: 4.775 MB / 293 MB, free: 22.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.1243, allocations: 155.8 kB / 293.2 MB, free: 22.26 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.1244, allocations: 91.81 kB / 293.3 MB, free: 22.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.798e-05/0.1245, allocations: 12.16 kB / 293.3 MB, free: 22.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.1245, allocations: 42.09 kB / 293.3 MB, free: 22.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.815e-06/0.1245, allocations: 0.875 kB / 293.3 MB, free: 22.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001975/0.1265, allocations: 1.083 MB / 294.4 MB, free: 21.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.1265, allocations: 86.11 kB / 294.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000413/0.1269, allocations: 0.6079 MB / 295.1 MB, free: 21.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1269, allocations: 31.23 kB / 295.1 MB, free: 21.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1271, allocations: 0.5349 MB / 295.7 MB, free: 21.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.35e-05/0.1272, allocations: 157.4 kB / 295.8 MB, free: 21.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1273, allocations: 139.1 kB / 296 MB, free: 21.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.241e-05/0.1274, allocations: 389.7 kB / 296.3 MB, free: 20.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.457e-05/0.1275, allocations: 58.11 kB / 296.4 MB, free: 20.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1277, allocations: 415.2 kB / 296.8 MB, free: 20.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.128, allocations: 0.5539 MB / 297.4 MB, free: 20.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.128, allocations: 3.984 kB / 297.4 MB, free: 20.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0004664/0.1285, allocations: 484.9 kB / 297.8 MB, free: 20.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1285, allocations: 13.62 kB / 297.9 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.1285, allocations: 12.88 kB / 297.9 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.1285, allocations: 16.81 kB / 297.9 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.1289, allocations: 190.9 kB / 298.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.1289, allocations: 23.7 kB / 298.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.1291, allocations: 33.78 kB / 298.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.1291, allocations: 31.5 kB / 298.2 MB, free: 20.02 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.0001199/0.1292, allocations: 168.8 kB / 298.3 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.1293, allocations: 60.09 kB / 298.4 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.828e-05/0.1294, allocations: 80.75 kB / 298.5 MB, free: 19.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1294, allocations: 5.625 kB / 298.5 MB, free: 19.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1294, allocations: 0 / 298.5 MB, free: 19.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1294, allocations: 3.391 kB / 298.5 MB, free: 19.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008554/0.1302, allocations: 0.7785 MB / 299.2 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1302, allocations: 1.781 kB / 299.2 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.1305, allocations: 104 kB / 299.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1305, allocations: 7.125 kB / 299.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.1305, allocations: 13.3 kB / 299.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1305, allocations: 2.562 kB / 299.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1305, allocations: 7.219 kB / 299.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.1308, allocations: 467.8 kB / 299.8 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.1309, allocations: 67.86 kB / 299.9 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1309, allocations: 8.203 kB / 299.9 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.1311, allocations: 24.08 kB / 299.9 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.1311, allocations: 27.92 kB / 300 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1311, allocations: 15.34 kB / 300 MB, free: 19.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002201/0.1313, allocations: 271.9 kB / 300.2 MB, free: 19.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1313, allocations: 0 / 300.2 MB, free: 19.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.1318, allocations: 138.9 kB / 300.4 MB, free: 19.17 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.877e-05/0.1319, allocations: 101.1 kB / 300.5 MB, free: 19.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.1322, allocations: 287.5 kB / 300.8 MB, free: 19.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.867e-05/0.1322, allocations: 11.97 kB / 300.8 MB, free: 19.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.966e-05/0.1323, allocations: 98.83 kB / 300.9 MB, free: 19.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.1326, allocations: 74.42 kB / 300.9 MB, free: 19.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.1344, allocations: 1.489 MB / 302.4 MB, free: 18.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.1345, allocations: 166.8 kB / 302.6 MB, free: 18.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000172/0.1347, allocations: 95.53 kB / 302.7 MB, free: 18.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.1349, allocations: 162 kB / 302.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1349, allocations: 0 / 302.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of Templates: time 0.008626/0.1435, allocations: 5.037 MB / 307.9 MB, free: 16.43 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.7436972642317414]