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.00106/0.00106, allocations: 83.69 kB / 21.7 MB, free: 2.848 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.001227/0.001227, allocations: 160.5 kB / 24.99 MB, free: 8.801 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 1.011/1.011, allocations: 177 MB / 205.2 MB, free: 5.578 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 1.743e-06/1.743e-06, allocations: 0 / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/3.115e-05, allocations: 2.312 kB / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006454/0.006486, allocations: 5.708 MB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003962/0.01045, allocations: 2.699 MB / 281.4 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006437/0.01109, allocations: 27.81 kB / 281.4 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.01247, allocations: 0.7502 MB / 282.2 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.01376, allocations: 0.5863 MB / 282.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.01478, allocations: 0.5107 MB / 283.3 MB, free: 7.414 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.0164, allocations: 1.644 MB / 284.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005379/0.01694, allocations: 379.1 kB / 285.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.01799, allocations: 0.8965 MB / 286.2 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007403/0.01873, allocations: 0.6546 MB / 286.8 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.0189, allocations: 136 kB / 287 MB, free: 3.684 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003277/0.01923, allocations: 211.8 kB / 287.2 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004004/0.01963, allocations: 0.6543 MB / 287.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005362/0.02016, allocations: 0.5765 MB / 288.4 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001562/0.02173, allocations: 1.522 MB / 289.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.02173, allocations: 0 / 289.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.02173, allocations: 0 / 289.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.02175, allocations: 0 / 289.9 MB, free: 0.7148 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.1264/0.1482, allocations: 2.668 MB / 292.6 MB, free: 28.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1482, allocations: 9.531 kB / 292.6 MB, free: 28.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005483/0.1488, allocations: 307 kB / 292.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.1507, allocations: 1.193 MB / 294.1 MB, free: 27.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.1508, allocations: 145.8 kB / 294.2 MB, free: 27.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.1509, allocations: 97.05 kB / 294.3 MB, free: 27.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1522, allocations: 1.435 MB / 295.8 MB, free: 26.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1522, allocations: 1.344 kB / 295.8 MB, free: 26.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.436e-05/0.1523, allocations: 39.33 kB / 295.8 MB, free: 26.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.48e-05/0.1523, allocations: 28.12 kB / 295.8 MB, free: 26.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007364/0.153, allocations: 311.8 kB / 296.1 MB, free: 26.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004938/0.158, allocations: 4.197 MB / 300.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/0.1586, allocations: 345.1 kB / 300.7 MB, free: 23.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003739/0.159, allocations: 196.2 kB / 300.9 MB, free: 23.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.1591, allocations: 9.156 kB / 300.9 MB, free: 23.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1591, allocations: 44.06 kB / 300.9 MB, free: 23.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.595e-06/0.1591, allocations: 0 / 300.9 MB, free: 23.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001011/0.1601, allocations: 484.1 kB / 301.4 MB, free: 23.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.835e-05/0.1602, allocations: 421 kB / 301.8 MB, free: 22.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002634/0.1628, allocations: 2.027 MB / 303.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.282e-05/0.1629, allocations: 34.67 kB / 303.9 MB, free: 21.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006037/0.1635, allocations: 1.065 MB / 304.9 MB, free: 20.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.979e-05/0.1636, allocations: 161.7 kB / 305.1 MB, free: 20.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1637, allocations: 131.5 kB / 305.2 MB, free: 20.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.317e-05/0.1638, allocations: 0.4996 MB / 305.7 MB, free: 20.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.164, allocations: 83.94 kB / 305.8 MB, free: 20.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000352/0.1643, allocations: 0.8035 MB / 306.6 MB, free: 19.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.1648, allocations: 458.1 kB / 307 MB, free: 18.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1648, allocations: 1.875 kB / 307 MB, free: 18.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009459/0.1657, allocations: 0.5939 MB / 307.6 MB, free: 18.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.1657, allocations: 7.062 kB / 307.6 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1658, allocations: 6.031 kB / 307.7 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.1658, allocations: 9.188 kB / 307.7 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.1661, allocations: 157.9 kB / 307.8 MB, free: 18.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1662, allocations: 14.97 kB / 307.8 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.1667, allocations: 122.2 kB / 307.9 MB, free: 18.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.1667, allocations: 27.75 kB / 308 MB, free: 18.52 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.0002578/0.167, allocations: 204.2 kB / 308.2 MB, free: 18.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.1671, allocations: 199.6 kB / 308.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005294/0.1677, allocations: 426.5 kB / 308.8 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1677, allocations: 4 kB / 308.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1677, allocations: 0 / 308.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1677, allocations: 3.984 kB / 308.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.1696, allocations: 1.76 MB / 310.6 MB, free: 16.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1696, allocations: 0 / 310.6 MB, free: 16.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.1699, allocations: 95.88 kB / 310.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.1699, allocations: 4 kB / 310.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1699, allocations: 15.98 kB / 310.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.1699, allocations: 7.938 kB / 310.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1699, allocations: 3.938 kB / 310.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006497/0.1706, allocations: 0.6892 MB / 311.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.1709, allocations: 310.6 kB / 311.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.171, allocations: 15.98 kB / 311.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003992/0.1714, allocations: 99.84 kB / 311.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.1717, allocations: 203.6 kB / 312 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.1717, allocations: 12 kB / 312 MB, free: 14.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001065/0.1727, allocations: 1.185 MB / 313.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1727, allocations: 0 / 313.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006159/0.1734, allocations: 319.3 kB / 313.5 MB, free: 13.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.001016/0.1744, allocations: 458.1 kB / 313.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.1749, allocations: 307.8 kB / 314.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.1749, allocations: 4 kB / 314.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.175, allocations: 140.9 kB / 314.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.1758, allocations: 308.6 kB / 314.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.1792, allocations: 2.845 MB / 317.5 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.1794, allocations: 379.1 kB / 317.9 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003962/0.1798, allocations: 206.4 kB / 318.1 MB, free: 8.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.18, allocations: 100.5 kB / 318.2 MB, free: 8.473 MB / 266.7 MB Notification: Performance of SimCode: time 1.633e-06/0.18, allocations: 0 / 318.2 MB, free: 8.473 MB / 266.7 MB Notification: Performance of Templates: time 0.02852/0.2085, allocations: 21.38 MB / 339.6 MB, free: 3.281 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 -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.6767034460790455]