Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001149/0.001149, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001122/0.001122, allocations: 150.3 kB / 24.81 MB, free: 9.285 MB / 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.015/1.015, allocations: 173.3 MB / 201.4 MB, free: 9.191 MB / 186.7 MB " [Timeout remaining time 179] 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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.345e-05/2.53e-05, allocations: 6.312 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006903/0.006928, allocations: 5.556 MB / 273.9 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004199/0.01113, allocations: 2.516 MB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006698/0.0118, allocations: 31.81 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.01338, allocations: 0.754 MB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.01444, allocations: 0.5319 MB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.01547, allocations: 0.5107 MB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00198/0.01745, allocations: 1.632 MB / 279.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006106/0.01806, allocations: 383 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.01916, allocations: 0.8887 MB / 281.2 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008628/0.02002, allocations: 0.6468 MB / 281.8 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.02022, allocations: 136 kB / 282 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004027/0.02062, allocations: 207.8 kB / 282.2 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004799/0.0211, allocations: 0.6544 MB / 282.8 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005951/0.0217, allocations: 0.5687 MB / 283.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00149/0.02319, allocations: 1.51 MB / 284.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.02319, allocations: 4 kB / 284.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.02319, allocations: 0 / 284.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.02323, allocations: 0 / 284.9 MB, free: 5.582 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.003604/0.02684, allocations: 2.632 MB / 287.5 MB, free: 2.902 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.02688, allocations: 12.92 kB / 287.6 MB, free: 2.891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000367/0.02725, allocations: 303.4 kB / 287.8 MB, free: 2.594 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.02864, allocations: 1.091 MB / 288.9 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.02876, allocations: 151.7 kB / 289.1 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.02888, allocations: 100.3 kB / 289.2 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1213/0.1501, allocations: 1.373 MB / 290.6 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.1502, allocations: 4.172 kB / 290.6 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-05/0.1503, allocations: 41.5 kB / 290.6 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.1503, allocations: 19.22 kB / 290.6 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007035/0.151, allocations: 241.6 kB / 290.9 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005346/0.1563, allocations: 4.183 MB / 295 MB, free: 25.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.1569, allocations: 307.3 kB / 295.3 MB, free: 25.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.1572, allocations: 183.3 kB / 295.5 MB, free: 25.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.418e-05/0.1573, allocations: 16.39 kB / 295.5 MB, free: 25.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.1573, allocations: 43.59 kB / 295.6 MB, free: 25.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.746e-06/0.1573, allocations: 3.844 kB / 295.6 MB, free: 25.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008867/0.1582, allocations: 441.5 kB / 296 MB, free: 25.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.1583, allocations: 426.6 kB / 296.4 MB, free: 25.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002559/0.1609, allocations: 1.926 MB / 298.4 MB, free: 24.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.1609, allocations: 38.02 kB / 298.4 MB, free: 24.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007752/0.1617, allocations: 1.063 MB / 299.5 MB, free: 24.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1618, allocations: 171.9 kB / 299.6 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.162, allocations: 130.7 kB / 299.8 MB, free: 24.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.1621, allocations: 0.4987 MB / 300.3 MB, free: 23.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1622, allocations: 62.23 kB / 300.3 MB, free: 23.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.1627, allocations: 0.7911 MB / 301.1 MB, free: 22.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.1631, allocations: 438.2 kB / 301.5 MB, free: 22.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.1632, allocations: 2.594 kB / 301.5 MB, free: 22.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001128/0.1643, allocations: 0.5456 MB / 302.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.1643, allocations: 7.25 kB / 302.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1643, allocations: 6.141 kB / 302.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/0.1644, allocations: 12.59 kB / 302.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.1648, allocations: 147.5 kB / 302.2 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.2e-05/0.1649, allocations: 14.16 kB / 302.3 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007679/0.1656, allocations: 119.7 kB / 302.4 MB, free: 22.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.1657, allocations: 23.11 kB / 302.4 MB, free: 22.16 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0003445/0.166, allocations: 206.8 kB / 302.6 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.1663, allocations: 201.8 kB / 302.8 MB, free: 21.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007381/0.167, allocations: 390.8 kB / 303.2 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.167, allocations: 8.219 kB / 303.2 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1671, allocations: 7.344 kB / 303.2 MB, free: 21.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.1671, allocations: 6.188 kB / 303.2 MB, free: 21.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.1696, allocations: 1.353 MB / 304.6 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.1696, allocations: 4.562 kB / 304.6 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.17, allocations: 99.83 kB / 304.7 MB, free: 21.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.17, allocations: 5.422 kB / 304.7 MB, free: 21.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.17, allocations: 9.5 kB / 304.7 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.17, allocations: 2.75 kB / 304.7 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.17, allocations: 1.375 kB / 304.7 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009423/0.171, allocations: 0.6551 MB / 305.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005085/0.1715, allocations: 271 kB / 305.6 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.1717, allocations: 16.2 kB / 305.6 MB, free: 20.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005992/0.1723, allocations: 101.5 kB / 305.7 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.1725, allocations: 95.47 kB / 305.8 MB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.1725, allocations: 13.75 kB / 305.8 MB, free: 20.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001505/0.174, allocations: 1.039 MB / 306.9 MB, free: 20.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.174, allocations: 0 / 306.9 MB, free: 20.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009624/0.175, allocations: 317.1 kB / 307.2 MB, free: 20.19 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.001343/0.1764, allocations: 448.2 kB / 307.6 MB, free: 20.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.1769, allocations: 291.1 kB / 307.9 MB, free: 19.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.1769, allocations: 3.781 kB / 307.9 MB, free: 19.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.1771, allocations: 120.5 kB / 308 MB, free: 19.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.1782, allocations: 307.1 kB / 308.3 MB, free: 19.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004878/0.1831, allocations: 2.8 MB / 311.1 MB, free: 18.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.1835, allocations: 375.9 kB / 311.5 MB, free: 17.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000583/0.1841, allocations: 178.5 kB / 311.7 MB, free: 17.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008016/0.1849, allocations: 422 kB / 312.1 MB, free: 17.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.443e-06/0.1849, allocations: 2.719 kB / 312.1 MB, free: 17.07 MB / 266.7 MB Notification: Performance of Templates: time 0.02801/0.2129, allocations: 22.73 MB / 334.8 MB, free: 10.64 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.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: 3.5857499218545854]