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.001004/0.001004, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001125/0.001125, allocations: 145.4 kB / 24.89 MB, free: 9.223 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.066/1.066, allocations: 173.3 MB / 201.5 MB, free: 9.207 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.162e-06/1.162e-06, allocations: 0 / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.409e-05, allocations: 6.25 kB / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004864/0.004878, allocations: 5.606 MB / 274.1 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00391/0.008788, allocations: 2.601 MB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004677/0.009255, allocations: 27.81 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.01069, allocations: 0.8086 MB / 277.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008781/0.01157, allocations: 0.5358 MB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.01247, allocations: 0.5068 MB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.01399, allocations: 1.64 MB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006404/0.01463, allocations: 387 kB / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009625/0.01559, allocations: 0.8888 MB / 281.5 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.01632, allocations: 0.6117 MB / 282.1 MB, free: 8.465 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.01649, allocations: 136 kB / 282.2 MB, free: 8.332 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003388/0.01683, allocations: 219.8 kB / 282.5 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004368/0.01726, allocations: 0.6543 MB / 283.1 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005061/0.01777, allocations: 0.5687 MB / 283.7 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001396/0.01917, allocations: 1.51 MB / 285.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.01917, allocations: 0 / 285.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01917, allocations: 0 / 285.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.0192, allocations: 0 / 285.2 MB, free: 5.375 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.002929/0.02212, allocations: 2.36 MB / 287.5 MB, free: 2.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.02216, allocations: 12.92 kB / 287.6 MB, free: 2.969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004047/0.02256, allocations: 208.7 kB / 287.8 MB, free: 2.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.02376, allocations: 0.9061 MB / 288.7 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.02386, allocations: 143.7 kB / 288.8 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.02397, allocations: 100.4 kB / 288.9 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1123/0.1362, allocations: 1.349 MB / 290.3 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.318e-05/0.1363, allocations: 0 / 290.3 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.1364, allocations: 38.38 kB / 290.3 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.1365, allocations: 20.48 kB / 290.3 MB, free: 28.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.137, allocations: 217.8 kB / 290.5 MB, free: 28.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004267/0.1413, allocations: 3.093 MB / 293.6 MB, free: 26.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.1418, allocations: 327.1 kB / 293.9 MB, free: 26.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/0.1421, allocations: 161.4 kB / 294.1 MB, free: 26.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.1421, allocations: 7.312 kB / 294.1 MB, free: 26.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.1421, allocations: 44.69 kB / 294.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.244e-06/0.1421, allocations: 3.781 kB / 294.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.000647/0.1428, allocations: 309 kB / 294.5 MB, free: 26.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/0.1429, allocations: 425.6 kB / 294.9 MB, free: 26.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.1449, allocations: 1.71 MB / 296.6 MB, free: 25.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1449, allocations: 39.77 kB / 296.6 MB, free: 25.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.1452, allocations: 0.5565 MB / 297.2 MB, free: 25.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.893e-05/0.1453, allocations: 161.5 kB / 297.3 MB, free: 25.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.1455, allocations: 122.6 kB / 297.5 MB, free: 25.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.391e-05/0.1455, allocations: 329.4 kB / 297.8 MB, free: 25.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.1457, allocations: 63.5 kB / 297.8 MB, free: 25.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.1459, allocations: 0.6757 MB / 298.5 MB, free: 24.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.1463, allocations: 357.2 kB / 298.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.1463, allocations: 1.344 kB / 298.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006893/0.147, allocations: 408.7 kB / 299.3 MB, free: 24.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.147, allocations: 10.5 kB / 299.3 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.147, allocations: 4.969 kB / 299.3 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.1471, allocations: 10.81 kB / 299.3 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.1476, allocations: 173.3 kB / 299.5 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.1476, allocations: 14.11 kB / 299.5 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.1482, allocations: 117.1 kB / 299.6 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/0.1482, allocations: 27.27 kB / 299.6 MB, free: 24.22 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.0002293/0.1484, allocations: 162.2 kB / 299.8 MB, free: 24.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.1486, allocations: 112.8 kB / 299.9 MB, free: 24.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005284/0.1492, allocations: 352.2 kB / 300.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1492, allocations: 11.53 kB / 300.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1492, allocations: 4.688 kB / 300.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1492, allocations: 6.266 kB / 300.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001719/0.1509, allocations: 1.163 MB / 301.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1509, allocations: 1.812 kB / 301.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.1513, allocations: 123.7 kB / 301.5 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.1513, allocations: 3.031 kB / 301.5 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.1513, allocations: 11.72 kB / 301.5 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1513, allocations: 2.281 kB / 301.5 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1513, allocations: 1.719 kB / 301.6 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.152, allocations: 0.5183 MB / 302.1 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003627/0.1523, allocations: 218.9 kB / 302.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.1525, allocations: 12.22 kB / 302.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.1529, allocations: 93.95 kB / 302.4 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.1531, allocations: 94.45 kB / 302.5 MB, free: 23.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.1532, allocations: 12.64 kB / 302.5 MB, free: 23.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001052/0.1542, allocations: 0.8996 MB / 303.4 MB, free: 23.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1542, allocations: 0 / 303.4 MB, free: 23.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006971/0.1549, allocations: 319 kB / 303.7 MB, free: 23.16 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.001536/0.1564, allocations: 0.5997 MB / 304.3 MB, free: 22.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003773/0.1568, allocations: 247.9 kB / 304.5 MB, free: 22.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.782e-05/0.1568, allocations: 23.88 kB / 304.6 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.157, allocations: 122.1 kB / 304.7 MB, free: 22.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008466/0.1578, allocations: 293.7 kB / 305 MB, free: 22.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.1611, allocations: 2.741 MB / 307.7 MB, free: 21.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.1614, allocations: 367.3 kB / 308.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004393/0.1618, allocations: 181.3 kB / 308.2 MB, free: 20.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007067/0.1625, allocations: 367.3 kB / 308.6 MB, free: 20.65 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1625, allocations: 0 / 308.6 MB, free: 20.65 MB / 266.7 MB Notification: Performance of Templates: time 0.02421/0.1867, allocations: 21.89 MB / 330.5 MB, free: 15.14 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 -s gbode -gbm=radauIIA3 -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.3800445990636945]