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.001043/0.001043, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001038/0.001038, allocations: 145.1 kB / 24.54 MB, free: 36 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 0.922/0.922, allocations: 173.4 MB / 201.1 MB, free: 9.34 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.944e-06/1.944e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/2.001e-05, allocations: 2.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005505/0.005525, allocations: 5.685 MB / 273.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.009016, allocations: 2.54 MB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004673/0.009484, allocations: 31.81 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.0108, allocations: 0.7502 MB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007404/0.01154, allocations: 0.5396 MB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007861/0.01233, allocations: 0.5068 MB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.01364, allocations: 1.629 MB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.01408, allocations: 383 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008494/0.01492, allocations: 0.8965 MB / 280.9 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005877/0.01551, allocations: 0.6585 MB / 281.6 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003161/0.01583, allocations: 132 kB / 281.7 MB, free: 8.637 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.01609, allocations: 207.8 kB / 281.9 MB, free: 8.434 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003576/0.01644, allocations: 0.6544 MB / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.01687, allocations: 0.5764 MB / 283.1 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.01813, allocations: 1.506 MB / 284.7 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.01813, allocations: 0 / 284.7 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.01813, allocations: 4 kB / 284.7 MB, free: 5.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.01817, allocations: 4 kB / 284.7 MB, free: 5.68 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.003139/0.02131, allocations: 2.656 MB / 287.3 MB, free: 2.977 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.02135, allocations: 8.922 kB / 287.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.02173, allocations: 311.4 kB / 287.6 MB, free: 2.664 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.02305, allocations: 1.173 MB / 288.8 MB, free: 1.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.02317, allocations: 147.6 kB / 288.9 MB, free: 1.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.02327, allocations: 96.33 kB / 289 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1189/0.1421, allocations: 1.436 MB / 290.5 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.1422, allocations: 2.781 kB / 290.5 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.923e-05/0.1423, allocations: 40.62 kB / 290.5 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.1423, allocations: 20.59 kB / 290.5 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006808/0.143, allocations: 309 kB / 290.8 MB, free: 27.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.1471, allocations: 4.2 MB / 295 MB, free: 25.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.1476, allocations: 337.6 kB / 295.4 MB, free: 25.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.148, allocations: 195.7 kB / 295.6 MB, free: 25.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.148, allocations: 11.23 kB / 295.6 MB, free: 25.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.148, allocations: 43.83 kB / 295.6 MB, free: 25.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.733e-06/0.148, allocations: 0.9688 kB / 295.6 MB, free: 25.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007064/0.1487, allocations: 483.5 kB / 296.1 MB, free: 25.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.1488, allocations: 427.4 kB / 296.5 MB, free: 25.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.1508, allocations: 2.005 MB / 298.5 MB, free: 24.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.1509, allocations: 38.11 kB / 298.6 MB, free: 24.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007365/0.1516, allocations: 1.051 MB / 299.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.1517, allocations: 166 kB / 299.8 MB, free: 23.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.1519, allocations: 129.4 kB / 299.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.421e-05/0.1519, allocations: 0.4996 MB / 300.4 MB, free: 23.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.1521, allocations: 78.73 kB / 300.5 MB, free: 23.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.1525, allocations: 0.8031 MB / 301.3 MB, free: 22.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004526/0.1529, allocations: 462 kB / 301.7 MB, free: 21.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1529, allocations: 2.5 kB / 301.7 MB, free: 21.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008935/0.1538, allocations: 0.5864 MB / 302.3 MB, free: 21.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.1539, allocations: 7.156 kB / 302.3 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1539, allocations: 6.453 kB / 302.3 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.1539, allocations: 8.875 kB / 302.3 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.1543, allocations: 162 kB / 302.5 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.1544, allocations: 10.2 kB / 302.5 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005328/0.1549, allocations: 121.9 kB / 302.6 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.1549, allocations: 26.23 kB / 302.6 MB, free: 21.51 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.0002323/0.1552, allocations: 208.3 kB / 302.8 MB, free: 21.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.1554, allocations: 197.2 kB / 303 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.156, allocations: 427.6 kB / 303.5 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.156, allocations: 3.5 kB / 303.5 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.156, allocations: 5.781 kB / 303.5 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.156, allocations: 2.156 kB / 303.5 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/0.1584, allocations: 1.744 MB / 305.2 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1584, allocations: 3.281 kB / 305.2 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.1588, allocations: 106.5 kB / 305.3 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1588, allocations: 2.844 kB / 305.3 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-05/0.1588, allocations: 8.688 kB / 305.3 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.1588, allocations: 4.578 kB / 305.3 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.1588, allocations: 1.688 kB / 305.3 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008374/0.1597, allocations: 0.6951 MB / 306 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004161/0.1601, allocations: 319.6 kB / 306.3 MB, free: 19.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.1602, allocations: 13.84 kB / 306.4 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004794/0.1607, allocations: 91.86 kB / 306.4 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.161, allocations: 203.4 kB / 306.6 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.161, allocations: 21.73 kB / 306.7 MB, free: 19.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.1623, allocations: 1.172 MB / 307.8 MB, free: 19.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1623, allocations: 0 / 307.8 MB, free: 19.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006468/0.163, allocations: 324.6 kB / 308.2 MB, free: 19.09 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.001081/0.164, allocations: 456.2 kB / 308.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005057/0.1645, allocations: 307.9 kB / 308.9 MB, free: 18.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.1645, allocations: 3.656 kB / 308.9 MB, free: 18.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.1647, allocations: 137.6 kB / 309 MB, free: 18.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009132/0.1657, allocations: 293.9 kB / 309.3 MB, free: 18.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.1689, allocations: 2.832 MB / 312.2 MB, free: 16.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.1692, allocations: 375.1 kB / 312.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004057/0.1696, allocations: 198.4 kB / 312.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.1698, allocations: 104.5 kB / 312.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1698, allocations: 4 kB / 312.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of Templates: time 0.02887/0.1987, allocations: 22.52 MB / 335.3 MB, free: 9.25 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.5385366450063884]