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.0009046/0.0009046, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009442/0.0009442, allocations: 148.2 kB / 24.9 MB, free: 9.156 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 0.9135/0.9135, allocations: 173.3 MB / 201.5 MB, free: 9.227 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.282e-06/1.282e-06, allocations: 0 / 268.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.415e-05/2.543e-05, allocations: 2.312 kB / 268.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005015/0.005041, allocations: 5.571 MB / 274 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.00869, allocations: 2.586 MB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005025/0.009193, allocations: 27.81 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.01045, allocations: 0.7695 MB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008191/0.01127, allocations: 0.528 MB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008136/0.01208, allocations: 0.5068 MB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.01345, allocations: 1.632 MB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.01393, allocations: 391 kB / 280.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008776/0.0148, allocations: 0.8926 MB / 281.4 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006416/0.01544, allocations: 0.6118 MB / 282 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004123/0.01586, allocations: 132 kB / 282.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.01614, allocations: 215.8 kB / 282.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004664/0.01661, allocations: 0.6543 MB / 283 MB, free: 7.637 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004174/0.01703, allocations: 0.5765 MB / 283.5 MB, free: 7.059 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.01812, allocations: 1.506 MB / 285 MB, free: 5.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.01813, allocations: 0 / 285 MB, free: 5.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01813, allocations: 0 / 285 MB, free: 5.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.01814, allocations: 4 kB / 285 MB, free: 5.543 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.00222/0.02037, allocations: 2.352 MB / 287.4 MB, free: 3.156 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.0204, allocations: 8.922 kB / 287.4 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000216/0.02062, allocations: 208.7 kB / 287.6 MB, free: 2.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.02183, allocations: 0.9099 MB / 288.5 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.02195, allocations: 155.7 kB / 288.7 MB, free: 1.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.02204, allocations: 92.38 kB / 288.8 MB, free: 1.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.02316, allocations: 1.354 MB / 290.1 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.02317, allocations: 0 / 290.1 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/0.02323, allocations: 40 kB / 290.2 MB, free: 124 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.02324, allocations: 20 kB / 290.2 MB, free: 104 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1068/0.13, allocations: 214.3 kB / 290.4 MB, free: 27.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003645/0.1337, allocations: 3.09 MB / 293.5 MB, free: 26.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004517/0.1341, allocations: 326 kB / 293.8 MB, free: 26.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.1344, allocations: 163.7 kB / 294 MB, free: 26.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.261e-05/0.1344, allocations: 11.77 kB / 294 MB, free: 26.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.1344, allocations: 44.59 kB / 294 MB, free: 26.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.126e-06/0.1344, allocations: 1.078 kB / 294 MB, free: 26.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005629/0.135, allocations: 304.4 kB / 294.3 MB, free: 26.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.1351, allocations: 424.2 kB / 294.7 MB, free: 25.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.1369, allocations: 1.704 MB / 296.4 MB, free: 25.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.1369, allocations: 38.17 kB / 296.5 MB, free: 25.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.1372, allocations: 0.5568 MB / 297 MB, free: 25.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.747e-05/0.1373, allocations: 163 kB / 297.2 MB, free: 25.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.1374, allocations: 124.9 kB / 297.3 MB, free: 25.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.1374, allocations: 334.7 kB / 297.6 MB, free: 25.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.1375, allocations: 59.38 kB / 297.7 MB, free: 25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.1378, allocations: 0.677 MB / 298.4 MB, free: 24.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.138, allocations: 355.2 kB / 298.7 MB, free: 24.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.138, allocations: 5.125 kB / 298.7 MB, free: 24.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005209/0.1386, allocations: 408.5 kB / 299.1 MB, free: 24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1386, allocations: 9.922 kB / 299.1 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1386, allocations: 6.766 kB / 299.1 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.1386, allocations: 8.406 kB / 299.1 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.1389, allocations: 145.3 kB / 299.3 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.1389, allocations: 17.83 kB / 299.3 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.1393, allocations: 115.3 kB / 299.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.1394, allocations: 20.61 kB / 299.4 MB, free: 23.98 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.0002055/0.1396, allocations: 168.6 kB / 299.6 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.1397, allocations: 111.7 kB / 299.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004215/0.1401, allocations: 351.6 kB / 300 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1402, allocations: 9.141 kB / 300.1 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1402, allocations: 5.594 kB / 300.1 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1402, allocations: 2.766 kB / 300.1 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.1416, allocations: 1.167 MB / 301.2 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1416, allocations: 2.859 kB / 301.2 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1418, allocations: 98.72 kB / 301.3 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1418, allocations: 2.469 kB / 301.3 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.1418, allocations: 10.92 kB / 301.3 MB, free: 23.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1418, allocations: 10.81 kB / 301.4 MB, free: 23.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1419, allocations: 1.75 kB / 301.4 MB, free: 23.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005073/0.1424, allocations: 0.5164 MB / 301.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.1427, allocations: 218.7 kB / 302.1 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.1428, allocations: 12.69 kB / 302.1 MB, free: 23.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.1431, allocations: 102.9 kB / 302.2 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1432, allocations: 88.36 kB / 302.3 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.1433, allocations: 13.19 kB / 302.3 MB, free: 23.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008958/0.1442, allocations: 0.8975 MB / 303.2 MB, free: 23.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1442, allocations: 4.562 kB / 303.2 MB, free: 23.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005835/0.1447, allocations: 318 kB / 303.5 MB, free: 23.05 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.001231/0.146, allocations: 0.5944 MB / 304.1 MB, free: 22.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.1463, allocations: 250.3 kB / 304.3 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.712e-05/0.1464, allocations: 21.25 kB / 304.4 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.1465, allocations: 122.9 kB / 304.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/0.1471, allocations: 298.2 kB / 304.8 MB, free: 22.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.1499, allocations: 2.74 MB / 307.5 MB, free: 21.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.1501, allocations: 361.4 kB / 307.9 MB, free: 21.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003301/0.1504, allocations: 182.6 kB / 308 MB, free: 21.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005168/0.1509, allocations: 370.7 kB / 308.4 MB, free: 20.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.282e-06/0.1509, allocations: 0 / 308.4 MB, free: 20.9 MB / 266.7 MB Notification: Performance of Templates: time 0.02262/0.1736, allocations: 21.78 MB / 330.2 MB, free: 15.54 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.302879275288433]