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.001076/0.001076, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0008881/0.0008881, allocations: 139.6 kB / 24.97 MB, free: 8.77 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 1.007/1.007, allocations: 173.3 MB / 201.5 MB, free: 9.32 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.753e-06/1.753e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.265e-05/2.441e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005481/0.005505, allocations: 5.666 MB / 273.7 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003488/0.008993, allocations: 2.532 MB / 276.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004102/0.009404, allocations: 31.81 kB / 276.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.01067, allocations: 0.7463 MB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007603/0.01143, allocations: 0.5357 MB / 277.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000838/0.01227, allocations: 0.5146 MB / 278.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.01368, allocations: 1.629 MB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006235/0.0143, allocations: 379 kB / 280.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.01533, allocations: 0.8965 MB / 281 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007402/0.01607, allocations: 0.6508 MB / 281.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.01622, allocations: 135.9 kB / 281.8 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002897/0.01651, allocations: 215.8 kB / 282 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003954/0.01691, allocations: 0.6466 MB / 282.6 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005381/0.01745, allocations: 0.5765 MB / 283.2 MB, free: 7.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.01879, allocations: 1.51 MB / 284.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.01879, allocations: 0 / 284.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01879, allocations: 0 / 284.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.509e-05/0.01884, allocations: 0 / 284.7 MB, free: 5.984 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.002908/0.02174, allocations: 2.66 MB / 287.4 MB, free: 3.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.02178, allocations: 8.922 kB / 287.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/0.02212, allocations: 307.4 kB / 287.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.0234, allocations: 1.169 MB / 288.8 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.02351, allocations: 155.7 kB / 289 MB, free: 1.598 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.966e-05/0.02361, allocations: 96.33 kB / 289.1 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1206/0.1442, allocations: 1.44 MB / 290.5 MB, free: 32.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.1442, allocations: 0 / 290.5 MB, free: 32.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.992e-05/0.1443, allocations: 39.09 kB / 290.6 MB, free: 32.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.1443, allocations: 21.41 kB / 290.6 MB, free: 32.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007774/0.1451, allocations: 309.3 kB / 290.9 MB, free: 32.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.1503, allocations: 4.208 MB / 295.1 MB, free: 29.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.1509, allocations: 328.7 kB / 295.4 MB, free: 29.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.1513, allocations: 199 kB / 295.6 MB, free: 29.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.1514, allocations: 9.344 kB / 295.6 MB, free: 29.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.1514, allocations: 51.77 kB / 295.7 MB, free: 29.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.104e-06/0.1514, allocations: 0 / 295.7 MB, free: 29.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008829/0.1523, allocations: 480.3 kB / 296.1 MB, free: 29.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006593/0.1529, allocations: 423.7 kB / 296.6 MB, free: 28.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/0.1554, allocations: 2.007 MB / 298.6 MB, free: 28.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.1554, allocations: 37.73 kB / 298.6 MB, free: 28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006745/0.1561, allocations: 1.054 MB / 299.7 MB, free: 27.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.773e-05/0.1562, allocations: 167.8 kB / 299.8 MB, free: 27.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.1564, allocations: 125.1 kB / 299.9 MB, free: 27.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.1564, allocations: 0.5 MB / 300.4 MB, free: 26.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.1566, allocations: 83.22 kB / 300.5 MB, free: 26.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.157, allocations: 0.8025 MB / 301.3 MB, free: 25.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000452/0.1574, allocations: 457.4 kB / 301.8 MB, free: 25.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1574, allocations: 2.188 kB / 301.8 MB, free: 25.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008877/0.1583, allocations: 0.5918 MB / 302.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1584, allocations: 11.09 kB / 302.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1584, allocations: 5.734 kB / 302.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.1584, allocations: 9.469 kB / 302.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.1588, allocations: 147.5 kB / 302.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.1588, allocations: 14.53 kB / 302.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/0.1594, allocations: 126.5 kB / 302.7 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.1594, allocations: 27.48 kB / 302.7 MB, free: 24.92 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.0002334/0.1596, allocations: 203.1 kB / 302.9 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.1599, allocations: 193.4 kB / 303.1 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006484/0.1605, allocations: 423.7 kB / 303.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1605, allocations: 5.125 kB / 303.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1605, allocations: 5.875 kB / 303.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1605, allocations: 7.172 kB / 303.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.1629, allocations: 1.749 MB / 305.3 MB, free: 23.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1629, allocations: 1.031 kB / 305.3 MB, free: 23.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.1632, allocations: 103 kB / 305.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.1632, allocations: 5.422 kB / 305.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.796e-05/0.1633, allocations: 8.312 kB / 305.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1633, allocations: 4.703 kB / 305.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1633, allocations: 1.5 kB / 305.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008138/0.1641, allocations: 0.6943 MB / 306.1 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004334/0.1645, allocations: 316.2 kB / 306.4 MB, free: 22.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.1647, allocations: 12.2 kB / 306.4 MB, free: 22.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.1652, allocations: 96.06 kB / 306.5 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.1654, allocations: 197.8 kB / 306.7 MB, free: 22.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.1655, allocations: 21.08 kB / 306.7 MB, free: 22.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001274/0.1667, allocations: 1.17 MB / 307.9 MB, free: 22.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1667, allocations: 0 / 307.9 MB, free: 22.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006412/0.1674, allocations: 322.8 kB / 308.2 MB, free: 22.14 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.1684, allocations: 457.6 kB / 308.6 MB, free: 21.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004958/0.1689, allocations: 311.8 kB / 308.9 MB, free: 21.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1689, allocations: 1.219 kB / 308.9 MB, free: 21.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.1691, allocations: 139.5 kB / 309.1 MB, free: 21.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009324/0.1701, allocations: 304.4 kB / 309.4 MB, free: 21.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.1733, allocations: 2.836 MB / 312.2 MB, free: 18.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.1736, allocations: 378.7 kB / 312.6 MB, free: 17.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.174, allocations: 206.4 kB / 312.8 MB, free: 17.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.1743, allocations: 104.5 kB / 312.9 MB, free: 17.58 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1743, allocations: 0 / 312.9 MB, free: 17.58 MB / 266.7 MB Notification: Performance of Templates: time 0.02184/0.1961, allocations: 21.37 MB / 334.3 MB, free: 12.45 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.6190104910638183]