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.001069/0.001069, 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.001093/0.001093, allocations: 145.1 kB / 24.54 MB, free: 32 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 1.021/1.021, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.744e-06/1.744e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.266e-05/3.441e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006523/0.006558, allocations: 5.685 MB / 273.7 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00398/0.01054, allocations: 2.536 MB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009083/0.01145, allocations: 31.81 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.01304, allocations: 0.7463 MB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.01433, allocations: 0.5357 MB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.01543, allocations: 0.5107 MB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001735/0.01716, allocations: 1.639 MB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005823/0.01774, allocations: 375 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.01912, allocations: 0.8965 MB / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008316/0.01995, allocations: 0.6546 MB / 281.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.02015, allocations: 132 kB / 281.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004035/0.02056, allocations: 211.8 kB / 281.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003933/0.02095, allocations: 0.6544 MB / 282.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005854/0.02154, allocations: 0.5765 MB / 283.1 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001615/0.02315, allocations: 1.506 MB / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.02316, allocations: 0 / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.02316, allocations: 0 / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.177e-05/0.02321, allocations: 0 / 284.7 MB, free: 5.668 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.003309/0.02652, allocations: 2.664 MB / 287.3 MB, free: 2.957 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.02656, allocations: 8.922 kB / 287.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003277/0.02689, allocations: 307.4 kB / 287.6 MB, free: 2.648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.02858, allocations: 1.173 MB / 288.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.0287, allocations: 147.7 kB / 288.9 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.0288, allocations: 100.3 kB / 289 MB, free: 1.184 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1371/0.1659, allocations: 1.437 MB / 290.5 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.1659, allocations: 0 / 290.5 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.54e-05/0.166, allocations: 39.44 kB / 290.5 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.166, allocations: 20.5 kB / 290.5 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007385/0.1668, allocations: 315.1 kB / 290.8 MB, free: 27.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00562/0.1724, allocations: 4.193 MB / 295 MB, free: 25.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008019/0.1732, allocations: 334.8 kB / 295.4 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/0.1736, allocations: 204.7 kB / 295.6 MB, free: 25.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.081e-05/0.1737, allocations: 9.781 kB / 295.6 MB, free: 25.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.1737, allocations: 50.05 kB / 295.6 MB, free: 25.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.726e-06/0.1738, allocations: 0 / 295.6 MB, free: 25.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001017/0.1748, allocations: 479.9 kB / 296.1 MB, free: 25.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.665e-05/0.1749, allocations: 427.6 kB / 296.5 MB, free: 25.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.1775, allocations: 2.009 MB / 298.5 MB, free: 24.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.1776, allocations: 37.48 kB / 298.6 MB, free: 24.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007512/0.1783, allocations: 1.046 MB / 299.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.1785, allocations: 166.5 kB / 299.8 MB, free: 23.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.1786, allocations: 125 kB / 299.9 MB, free: 23.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.548e-05/0.1787, allocations: 0.5005 MB / 300.4 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.1789, allocations: 82.97 kB / 300.5 MB, free: 23.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.1793, allocations: 0.8057 MB / 301.3 MB, free: 22.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.1798, allocations: 457.3 kB / 301.7 MB, free: 21.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1798, allocations: 1.594 kB / 301.7 MB, free: 21.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000939/0.1807, allocations: 0.589 MB / 302.3 MB, free: 21.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.1807, allocations: 11.22 kB / 302.3 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.1807, allocations: 5.984 kB / 302.3 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.369e-05/0.1808, allocations: 8.312 kB / 302.3 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.1812, allocations: 156.3 kB / 302.5 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/0.1812, allocations: 12.28 kB / 302.5 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006151/0.1818, allocations: 123.6 kB / 302.6 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.1819, allocations: 27.78 kB / 302.6 MB, free: 21.46 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.0002819/0.1822, allocations: 207.6 kB / 302.9 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.1823, allocations: 193.3 kB / 303 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006014/0.1829, allocations: 422.1 kB / 303.5 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.1829, allocations: 3.469 kB / 303.5 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1829, allocations: 5.812 kB / 303.5 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1829, allocations: 2.203 kB / 303.5 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.1856, allocations: 1.762 MB / 305.2 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.1856, allocations: 0 / 305.2 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003356/0.1859, allocations: 106 kB / 305.3 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.1859, allocations: 2.438 kB / 305.3 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.186, allocations: 7.344 kB / 305.3 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.186, allocations: 3.031 kB / 305.3 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.186, allocations: 6.406 kB / 305.3 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008786/0.1868, allocations: 0.6976 MB / 306 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004704/0.1873, allocations: 313.2 kB / 306.3 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.1875, allocations: 7.844 kB / 306.4 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005042/0.188, allocations: 97.84 kB / 306.5 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/0.1883, allocations: 198.1 kB / 306.6 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.1884, allocations: 18.72 kB / 306.7 MB, free: 19.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001525/0.1899, allocations: 1.172 MB / 307.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1899, allocations: 3.188 kB / 307.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009039/0.1908, allocations: 320.6 kB / 308.2 MB, free: 19.04 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.001339/0.1921, allocations: 457 kB / 308.6 MB, free: 18.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.1927, allocations: 308.8 kB / 308.9 MB, free: 18.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.1927, allocations: 6.594 kB / 308.9 MB, free: 18.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.193, allocations: 136.5 kB / 309 MB, free: 18.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009636/0.1939, allocations: 300.3 kB / 309.3 MB, free: 18.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.1977, allocations: 2.826 MB / 312.2 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.198, allocations: 375.1 kB / 312.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004537/0.1984, allocations: 202.4 kB / 312.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.1987, allocations: 108.5 kB / 312.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of SimCode: time 1.493e-06/0.1987, allocations: 0 / 312.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of Templates: time 0.03032/0.229, allocations: 21.38 MB / 334.2 MB, free: 10.34 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.9190834281034768]