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.001471/0.001471, allocations: 81.86 kB / 21.42 MB, free: 3.074 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.001292/0.001292, allocations: 168.3 kB / 24.82 MB, free: 8.773 MB / 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.089/1.089, allocations: 177.1 MB / 205.3 MB, free: 5.516 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.393e-06/1.393e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.511e-05/1.65e-05, allocations: 6.25 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005382/0.005399, allocations: 5.592 MB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003734/0.009132, allocations: 2.672 MB / 281.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006198/0.009752, allocations: 27.81 kB / 281.7 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.01115, allocations: 0.7619 MB / 282.4 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000873/0.01203, allocations: 0.5824 MB / 283 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008647/0.01289, allocations: 0.5146 MB / 283.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001304/0.01419, allocations: 1.636 MB / 285.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007022/0.0149, allocations: 383 kB / 285.5 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007943/0.01569, allocations: 0.9004 MB / 286.4 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000618/0.01631, allocations: 0.6469 MB / 287.1 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.01646, allocations: 132 kB / 287.2 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.01676, allocations: 203.8 kB / 287.4 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003661/0.01712, allocations: 0.666 MB / 288.1 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.01752, allocations: 0.5765 MB / 288.7 MB, free: 1.957 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.01857, allocations: 1.518 MB / 290.2 MB, free: 444 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.01858, allocations: 3.984 kB / 290.2 MB, free: 440 kB / 266.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.01858, allocations: 0 / 290.2 MB, free: 440 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.01859, allocations: 0 / 290.2 MB, free: 440 kB / 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.1318/0.1504, allocations: 2.644 MB / 292.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1505, allocations: 10.59 kB / 292.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.1508, allocations: 303.9 kB / 293.1 MB, free: 24.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.1521, allocations: 1.092 MB / 294.2 MB, free: 23.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.1522, allocations: 152 kB / 294.4 MB, free: 23.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1524, allocations: 97 kB / 294.5 MB, free: 23.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1534, allocations: 1.38 MB / 295.8 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1534, allocations: 1.922 kB / 295.8 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.1535, allocations: 45.12 kB / 295.9 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.1535, allocations: 21.12 kB / 295.9 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.1539, allocations: 242.2 kB / 296.1 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004576/0.1585, allocations: 4.19 MB / 300.3 MB, free: 20.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/0.1591, allocations: 323.5 kB / 300.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.1594, allocations: 173.7 kB / 300.8 MB, free: 20.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.613e-05/0.1594, allocations: 12.59 kB / 300.8 MB, free: 20.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1595, allocations: 48.61 kB / 300.9 MB, free: 20.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.1595, allocations: 0 / 300.9 MB, free: 20.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006925/0.1602, allocations: 434.9 kB / 301.3 MB, free: 19.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.1602, allocations: 426.9 kB / 301.7 MB, free: 19.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/0.1626, allocations: 1.956 MB / 303.7 MB, free: 18.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.1627, allocations: 39.2 kB / 303.7 MB, free: 18.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005826/0.1632, allocations: 1.078 MB / 304.8 MB, free: 18.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.028e-05/0.1633, allocations: 162.6 kB / 305 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.1635, allocations: 133.6 kB / 305.1 MB, free: 17.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.525e-05/0.1636, allocations: 0.5074 MB / 305.6 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1637, allocations: 67.72 kB / 305.7 MB, free: 17.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.164, allocations: 0.7857 MB / 306.4 MB, free: 16.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.1643, allocations: 430.8 kB / 306.9 MB, free: 16.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.1643, allocations: 1.281 kB / 306.9 MB, free: 16.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007466/0.1651, allocations: 0.5495 MB / 307.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.1651, allocations: 7.094 kB / 307.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.1651, allocations: 7.031 kB / 307.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.1651, allocations: 10.44 kB / 307.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.1655, allocations: 146.5 kB / 307.6 MB, free: 16.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1655, allocations: 15.81 kB / 307.6 MB, free: 16.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.1659, allocations: 120.4 kB / 307.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1659, allocations: 20.78 kB / 307.7 MB, free: 15.96 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.0002015/0.1661, allocations: 211.6 kB / 307.9 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.1663, allocations: 196.3 kB / 308.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004609/0.1668, allocations: 402.3 kB / 308.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.1668, allocations: 4.438 kB / 308.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1668, allocations: 0 / 308.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1668, allocations: 4.281 kB / 308.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.1683, allocations: 1.351 MB / 309.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1683, allocations: 2.719 kB / 309.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.1686, allocations: 100.7 kB / 310 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.535e-06/0.1686, allocations: 3.312 kB / 310 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.1686, allocations: 13.64 kB / 310 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1686, allocations: 7.328 kB / 310 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1686, allocations: 3.719 kB / 310 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.1692, allocations: 0.653 MB / 310.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/0.1696, allocations: 283.6 kB / 310.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.1697, allocations: 19.86 kB / 311 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.17, allocations: 97.84 kB / 311.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.1702, allocations: 91.14 kB / 311.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.1702, allocations: 17.34 kB / 311.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007902/0.171, allocations: 1.047 MB / 312.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.171, allocations: 0 / 312.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006304/0.1716, allocations: 319.3 kB / 312.5 MB, free: 12.78 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.001052/0.1727, allocations: 455 kB / 313 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.173, allocations: 277.5 kB / 313.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.173, allocations: 5.625 kB / 313.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.1731, allocations: 119.5 kB / 313.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/0.1739, allocations: 314.1 kB / 313.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.1766, allocations: 2.823 MB / 316.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.1769, allocations: 375.1 kB / 316.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003135/0.1772, allocations: 174.5 kB / 317 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005341/0.1777, allocations: 427.1 kB / 317.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.1777, allocations: 0 / 317.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of Templates: time 0.02826/0.206, allocations: 22.72 MB / 340.2 MB, free: 1.586 MB / 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.7603728510439396]