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.00108/0.00108, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001153/0.001153, allocations: 165 kB / 24.56 MB, free: 16 kB / 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 1/1, allocations: 177.1 MB / 205 MB, free: 5.645 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.773e-06/1.773e-06, allocations: 0 / 273 MB, free: 1.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.115e-05, allocations: 2.312 kB / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006582/0.006613, allocations: 5.74 MB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00388/0.01049, allocations: 2.695 MB / 281.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004892/0.01098, allocations: 31.81 kB / 281.4 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.01234, allocations: 0.7502 MB / 282.2 MB, free: 8.324 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001116/0.01346, allocations: 0.5863 MB / 282.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008657/0.01432, allocations: 0.5068 MB / 283.3 MB, free: 7.227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001704/0.01603, allocations: 1.648 MB / 284.9 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004671/0.01649, allocations: 379 kB / 285.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.01759, allocations: 0.8966 MB / 286.2 MB, free: 4.277 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007381/0.01832, allocations: 0.6546 MB / 286.8 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.01848, allocations: 136 kB / 287 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003077/0.01878, allocations: 211.8 kB / 287.2 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.01915, allocations: 0.6622 MB / 287.8 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004645/0.01962, allocations: 0.5725 MB / 288.4 MB, free: 2.043 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.02089, allocations: 1.518 MB / 289.9 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.0209, allocations: 4 kB / 289.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0209, allocations: 0 / 289.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.807e-05/0.02094, allocations: 0 / 289.9 MB, free: 0.5156 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.1262/0.1471, allocations: 2.671 MB / 292.6 MB, free: 24.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1472, allocations: 9.625 kB / 292.6 MB, free: 24.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003824/0.1475, allocations: 303.6 kB / 292.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.149, allocations: 1.187 MB / 294.1 MB, free: 23.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.1491, allocations: 154.1 kB / 294.2 MB, free: 23.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1492, allocations: 91.91 kB / 294.3 MB, free: 23.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.1504, allocations: 1.437 MB / 295.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1504, allocations: 1.062 kB / 295.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.1504, allocations: 45.33 kB / 295.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.1505, allocations: 20.97 kB / 295.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006592/0.1511, allocations: 310 kB / 296.1 MB, free: 22.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003978/0.1551, allocations: 4.203 MB / 300.3 MB, free: 19.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.1556, allocations: 347.3 kB / 300.7 MB, free: 19.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.156, allocations: 191.6 kB / 300.9 MB, free: 19.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.156, allocations: 9.125 kB / 300.9 MB, free: 19.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.156, allocations: 47.62 kB / 300.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.823e-06/0.156, allocations: 4 kB / 300.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007218/0.1568, allocations: 478.6 kB / 301.4 MB, free: 19.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.1568, allocations: 424.1 kB / 301.8 MB, free: 19.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.1588, allocations: 2.023 MB / 303.8 MB, free: 18.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.1589, allocations: 39.95 kB / 303.9 MB, free: 18.24 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005288/0.1594, allocations: 1.06 MB / 304.9 MB, free: 17.42 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.1595, allocations: 162.9 kB / 305.1 MB, free: 17.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.1596, allocations: 134.5 kB / 305.2 MB, free: 17.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.1597, allocations: 0.5017 MB / 305.7 MB, free: 16.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1598, allocations: 85.64 kB / 305.8 MB, free: 16.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.1601, allocations: 0.8046 MB / 306.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004031/0.1605, allocations: 460.6 kB / 307.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1605, allocations: 1.719 kB / 307.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000735/0.1613, allocations: 0.5881 MB / 307.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.1613, allocations: 7.875 kB / 307.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1613, allocations: 5.938 kB / 307.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.1613, allocations: 11.72 kB / 307.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.1617, allocations: 152 kB / 307.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.1617, allocations: 17.2 kB / 307.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.1621, allocations: 116 kB / 308 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.1621, allocations: 27.41 kB / 308 MB, free: 15.12 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.0001927/0.1623, allocations: 211.2 kB / 308.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.1624, allocations: 198.5 kB / 308.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.1629, allocations: 430.2 kB / 308.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1629, allocations: 4.844 kB / 308.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1629, allocations: 0 / 308.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1629, allocations: 5.234 kB / 308.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.1646, allocations: 1.742 MB / 310.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1646, allocations: 3.281 kB / 310.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.1648, allocations: 105 kB / 310.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1648, allocations: 4 kB / 310.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.1648, allocations: 11.94 kB / 310.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1648, allocations: 4 kB / 310.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1648, allocations: 3.75 kB / 310.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.1654, allocations: 0.7025 MB / 311.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.1657, allocations: 314.6 kB / 311.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.1659, allocations: 23.94 kB / 311.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.1662, allocations: 91.91 kB / 311.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.1664, allocations: 199.5 kB / 312 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.1664, allocations: 20 kB / 312 MB, free: 12.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009371/0.1674, allocations: 1.189 MB / 313.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1674, allocations: 0 / 313.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004836/0.1678, allocations: 311.3 kB / 313.5 MB, free: 10.82 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.001024/0.1689, allocations: 457 kB / 314 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003899/0.1693, allocations: 309.9 kB / 314.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1693, allocations: 5.625 kB / 314.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.1694, allocations: 134.5 kB / 314.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007098/0.1701, allocations: 307.8 kB / 314.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.1727, allocations: 2.852 MB / 317.6 MB, free: 6.988 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.1729, allocations: 375.1 kB / 317.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000299/0.1732, allocations: 198.4 kB / 318.1 MB, free: 6.398 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.1734, allocations: 112.2 kB / 318.2 MB, free: 6.293 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1734, allocations: 0 / 318.2 MB, free: 6.293 MB / 266.7 MB Notification: Performance of Templates: time 0.02384/0.1972, allocations: 22.51 MB / 340.7 MB, free: 56 kB / 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 -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.6239291122183204]