Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001107/0.001107, 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.001204/0.001204, allocations: 167.3 kB / 24.91 MB, free: 9.109 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.9786/0.9786, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.161e-05/2.303e-05, allocations: 2.312 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006352/0.006375, allocations: 5.657 MB / 279.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004509/0.01088, allocations: 2.761 MB / 281.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007227/0.01161, allocations: 27.81 kB / 281.9 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.01321, allocations: 0.8203 MB / 282.7 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.01436, allocations: 0.5707 MB / 283.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009949/0.01535, allocations: 0.5146 MB / 283.8 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.01704, allocations: 1.644 MB / 285.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005765/0.01761, allocations: 387 kB / 285.8 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.0188, allocations: 0.8965 MB / 286.7 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008608/0.01966, allocations: 0.6234 MB / 287.4 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002164/0.01987, allocations: 132 kB / 287.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000407/0.02028, allocations: 211.8 kB / 287.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004873/0.02077, allocations: 0.6582 MB / 288.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006133/0.02138, allocations: 0.5804 MB / 288.9 MB, free: 1.727 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.02295, allocations: 1.518 MB / 290.5 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.02295, allocations: 0 / 290.5 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.02295, allocations: 0 / 290.5 MB, free: 208 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.407e-05/0.023, allocations: 0 / 290.5 MB, free: 208 kB / 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.1153/0.1383, allocations: 2.365 MB / 292.8 MB, free: 24.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1383, allocations: 10.72 kB / 292.8 MB, free: 24.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004334/0.1388, allocations: 204.5 kB / 293 MB, free: 24.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.1402, allocations: 0.9211 MB / 294 MB, free: 23.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.1403, allocations: 144.8 kB / 294.1 MB, free: 23.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.1404, allocations: 96.98 kB / 294.2 MB, free: 23.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009965/0.1414, allocations: 1.343 MB / 295.5 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1414, allocations: 4.156 kB / 295.5 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.1415, allocations: 42.69 kB / 295.6 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.1415, allocations: 20.91 kB / 295.6 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004023/0.1419, allocations: 221.1 kB / 295.8 MB, free: 22.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/0.1455, allocations: 3.091 MB / 298.9 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.1459, allocations: 330.9 kB / 299.2 MB, free: 21.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.1462, allocations: 165.6 kB / 299.4 MB, free: 21.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.632e-05/0.1462, allocations: 9.812 kB / 299.4 MB, free: 21.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1462, allocations: 42.41 kB / 299.4 MB, free: 21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.336e-06/0.1462, allocations: 0 / 299.4 MB, free: 21 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006231/0.1469, allocations: 305.1 kB / 299.7 MB, free: 20.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1469, allocations: 423.1 kB / 300.2 MB, free: 20.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.1488, allocations: 1.729 MB / 301.9 MB, free: 20.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.1489, allocations: 39.55 kB / 301.9 MB, free: 20.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/0.1492, allocations: 0.5553 MB / 302.5 MB, free: 19.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.438e-05/0.1493, allocations: 167.3 kB / 302.6 MB, free: 19.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.1495, allocations: 121.8 kB / 302.8 MB, free: 19.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.017e-05/0.1495, allocations: 336.6 kB / 303.1 MB, free: 19.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1496, allocations: 62.67 kB / 303.2 MB, free: 19.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.1499, allocations: 0.6771 MB / 303.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1502, allocations: 356.1 kB / 304.2 MB, free: 18.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1502, allocations: 3.906 kB / 304.2 MB, free: 18.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005525/0.1507, allocations: 412 kB / 304.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1508, allocations: 6.875 kB / 304.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.1508, allocations: 5.5 kB / 304.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.1508, allocations: 13.23 kB / 304.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.1512, allocations: 166.5 kB / 304.8 MB, free: 18.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1512, allocations: 14.56 kB / 304.8 MB, free: 18.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/0.1517, allocations: 112.7 kB / 304.9 MB, free: 18.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.1517, allocations: 25.44 kB / 304.9 MB, free: 18.31 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.0002152/0.1519, allocations: 169.7 kB / 305.1 MB, free: 18.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.1521, allocations: 118 kB / 305.2 MB, free: 18.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004178/0.1525, allocations: 355.3 kB / 305.5 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1525, allocations: 5.031 kB / 305.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.1525, allocations: 3.844 kB / 305.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-06/0.1525, allocations: 2.25 kB / 305.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.1539, allocations: 1.165 MB / 306.7 MB, free: 17.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1539, allocations: 0.9688 kB / 306.7 MB, free: 17.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.1542, allocations: 119.8 kB / 306.8 MB, free: 17.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1542, allocations: 13.88 kB / 306.9 MB, free: 17.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.1542, allocations: 14 kB / 306.9 MB, free: 17.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.1542, allocations: 3.938 kB / 306.9 MB, free: 17.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1542, allocations: 0 / 306.9 MB, free: 17.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004436/0.1547, allocations: 0.5168 MB / 307.4 MB, free: 17.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.155, allocations: 221.9 kB / 307.6 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.1551, allocations: 21.08 kB / 307.6 MB, free: 17.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/0.1554, allocations: 93.2 kB / 307.7 MB, free: 17.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1555, allocations: 89.88 kB / 307.8 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.1556, allocations: 14.28 kB / 307.8 MB, free: 17.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006729/0.1562, allocations: 0.9017 MB / 308.7 MB, free: 16.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1562, allocations: 0 / 308.7 MB, free: 16.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000549/0.1568, allocations: 325.8 kB / 309 MB, free: 16.53 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.001213/0.158, allocations: 0.5949 MB / 309.6 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00032/0.1583, allocations: 252.2 kB / 309.9 MB, free: 16.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.199e-05/0.1583, allocations: 21.62 kB / 309.9 MB, free: 16.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.1584, allocations: 121.2 kB / 310 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.1591, allocations: 314.7 kB / 310.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/0.1618, allocations: 2.735 MB / 313.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.162, allocations: 367.2 kB / 313.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003562/0.1623, allocations: 182.5 kB / 313.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.1629, allocations: 381 kB / 314 MB, free: 11.88 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1629, allocations: 0 / 314 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Templates: time 0.02548/0.1883, allocations: 21.88 MB / 335.8 MB, free: 6.309 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.3573117149062455]