Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 159.4 kB / 24.9 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.996/0.996, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 0 / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.276e-05/1.374e-05, allocations: 5.266 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00533/0.005343, allocations: 5.641 MB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00385/0.009194, allocations: 2.768 MB / 281.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003703/0.009564, allocations: 27.81 kB / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.01075, allocations: 0.8163 MB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007516/0.0115, allocations: 0.5786 MB / 283.3 MB, free: 7.152 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007061/0.01221, allocations: 0.5068 MB / 283.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.01347, allocations: 1.652 MB / 285.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004171/0.01389, allocations: 387 kB / 285.8 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.01452, allocations: 0.8888 MB / 286.7 MB, free: 3.695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005188/0.01503, allocations: 0.6234 MB / 287.3 MB, free: 3.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.01515, allocations: 136 kB / 287.4 MB, free: 2.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.01539, allocations: 219.8 kB / 287.6 MB, free: 2.723 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000355/0.01575, allocations: 0.6582 MB / 288.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006278/0.01638, allocations: 0.5726 MB / 288.9 MB, free: 1.488 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1237/0.1401, allocations: 1.518 MB / 290.4 MB, free: 18.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1401, allocations: 0 / 290.4 MB, free: 18.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1401, allocations: 2.75 kB / 290.4 MB, free: 18.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.234e-05/0.1402, allocations: 1.734 kB / 290.4 MB, free: 18.67 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.003197/0.1434, allocations: 2.361 MB / 292.8 MB, free: 17.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1434, allocations: 9.906 kB / 292.8 MB, free: 17.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004536/0.1439, allocations: 208.4 kB / 293 MB, free: 17.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.1453, allocations: 0.9177 MB / 293.9 MB, free: 17.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.1454, allocations: 147 kB / 294 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.1455, allocations: 101.2 kB / 294.1 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.1466, allocations: 1.342 MB / 295.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1466, allocations: 5.094 kB / 295.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.1466, allocations: 42.2 kB / 295.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.1467, allocations: 25.06 kB / 295.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.1471, allocations: 219.6 kB / 295.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003781/0.1509, allocations: 3.087 MB / 298.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.1514, allocations: 329 kB / 299.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.1516, allocations: 158 kB / 299.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.485e-05/0.1517, allocations: 13.53 kB / 299.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.1517, allocations: 39.12 kB / 299.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.913e-06/0.1517, allocations: 1.188 kB / 299.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005847/0.1523, allocations: 306.6 kB / 299.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.1524, allocations: 427.2 kB / 300.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/0.1545, allocations: 1.731 MB / 301.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.1545, allocations: 40.23 kB / 301.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/0.1549, allocations: 0.5538 MB / 302.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.714e-05/0.155, allocations: 164.8 kB / 302.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.1551, allocations: 126.9 kB / 302.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.166e-05/0.1552, allocations: 333.1 kB / 303 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1553, allocations: 60.81 kB / 303.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.1556, allocations: 0.6813 MB / 303.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.1559, allocations: 348.9 kB / 304.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1559, allocations: 1.375 kB / 304.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006327/0.1566, allocations: 422 kB / 304.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.1566, allocations: 8.75 kB / 304.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.1566, allocations: 5.5 kB / 304.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1566, allocations: 10.34 kB / 304.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.1571, allocations: 171.8 kB / 304.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.1571, allocations: 14.97 kB / 304.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.1576, allocations: 111.6 kB / 304.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.1576, allocations: 27.53 kB / 304.9 MB, free: 11.82 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.0002177/0.1578, allocations: 160.5 kB / 305 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.158, allocations: 117.5 kB / 305.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004979/0.1585, allocations: 349.2 kB / 305.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1585, allocations: 4.469 kB / 305.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.1585, allocations: 1.812 kB / 305.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1585, allocations: 0 / 305.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.1601, allocations: 1.173 MB / 306.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.1601, allocations: 0.875 kB / 306.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.1604, allocations: 121.8 kB / 306.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1604, allocations: 1.594 kB / 306.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.1605, allocations: 14.38 kB / 306.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1605, allocations: 6.531 kB / 306.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1605, allocations: 6.375 kB / 306.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005052/0.161, allocations: 0.5155 MB / 307.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.1613, allocations: 217.6 kB / 307.5 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.1614, allocations: 18.75 kB / 307.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.1619, allocations: 93.45 kB / 307.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.162, allocations: 95.45 kB / 307.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.162, allocations: 11.72 kB / 307.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008548/0.1629, allocations: 0.9081 MB / 308.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1629, allocations: 0 / 308.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005918/0.1635, allocations: 314.1 kB / 309 MB, free: 10.85 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.001393/0.1649, allocations: 0.5862 MB / 309.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.1652, allocations: 251.9 kB / 309.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.13e-05/0.1653, allocations: 19.47 kB / 309.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.1654, allocations: 130 kB / 309.9 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008449/0.1663, allocations: 313 kB / 310.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.1698, allocations: 2.737 MB / 313 MB, free: 8.617 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.1701, allocations: 367.2 kB / 313.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.1706, allocations: 174.5 kB / 313.5 MB, free: 8.195 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/0.1713, allocations: 378.7 kB / 313.9 MB, free: 7.836 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1713, allocations: 0 / 313.9 MB, free: 7.836 MB / 266.7 MB Notification: Performance of Templates: time 0.02885/0.2001, allocations: 21.9 MB / 335.8 MB, free: 2.266 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.4841242330148816]