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.001956/0.001956, allocations: 114.9 kB / 17.73 MB, free: 5.316 MB / 14.72 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.002206/0.002206, allocations: 185.3 kB / 20.67 MB, free: 2.383 MB / 14.72 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.536/1.536, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|battery2.capacitor.2..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.1..v|battery2.capacitor.2..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 0.001957/0.001957, allocations: 51.92 kB / 358 MB, free: 8.363 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1286, allocations: 49.43 MB / 407.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007994/0.1366, allocations: 5.798 MB / 413.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005823/0.1425, allocations: 2.567 MB / 415.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001391/0.1439, allocations: 27.88 kB / 415.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.1461, allocations: 0.77 MB / 416.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001555/0.1476, allocations: 0.5049 MB / 417.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.149, allocations: 0.5056 MB / 417.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002398/0.1514, allocations: 1.59 MB / 419.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008469/0.1522, allocations: 0.6039 MB / 419.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008615/0.1531, allocations: 0.6073 MB / 420.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009745/0.1541, allocations: 0.7393 MB / 421.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.1543, allocations: 136 kB / 421.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004559/0.1548, allocations: 211.9 kB / 421.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005996/0.1554, allocations: 0.6271 MB / 422.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009389/0.1563, allocations: 0.9283 MB / 423 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00274/0.1591, allocations: 2.494 MB / 425.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1591, allocations: 0 / 425.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1591, allocations: 0 / 425.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.08e-05/0.1592, allocations: 0 / 425.5 MB, free: 4.695 MB / 350.1 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.005176/0.1643, allocations: 2.636 MB / 428.2 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1644, allocations: 8.031 kB / 428.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/0.1648, allocations: 235.4 kB / 428.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002671/0.1675, allocations: 1.548 MB / 429.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.1676, allocations: 100.2 kB / 430 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2405/0.4082, allocations: 82.52 kB / 430.1 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.4103, allocations: 1.099 MB / 431.2 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.4103, allocations: 2.156 kB / 431.2 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.4104, allocations: 40.44 kB / 431.3 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.4104, allocations: 19.66 kB / 431.3 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.4117, allocations: 0.724 MB / 432 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007812/0.4195, allocations: 4.591 MB / 436.6 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.4209, allocations: 0.9432 MB / 437.5 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007671/0.4217, allocations: 384.7 kB / 437.9 MB, free: 19.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.411e-05/0.4218, allocations: 7.641 kB / 437.9 MB, free: 19.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4218, allocations: 44.59 kB / 438 MB, free: 19.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.645e-06/0.4218, allocations: 0 / 438 MB, free: 19.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002186/0.424, allocations: 0.8373 MB / 438.8 MB, free: 19.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.4241, allocations: 420 kB / 439.2 MB, free: 19.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004364/0.4285, allocations: 2.74 MB / 441.9 MB, free: 19.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.4286, allocations: 38.92 kB / 442 MB, free: 19.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.4294, allocations: 0.887 MB / 442.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.4295, allocations: 161.3 kB / 443 MB, free: 18.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.4297, allocations: 125.7 kB / 443.2 MB, free: 18.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.4298, allocations: 331.4 kB / 443.5 MB, free: 18.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000553/0.4304, allocations: 253.4 kB / 443.7 MB, free: 18.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.431, allocations: 0.5398 MB / 444.3 MB, free: 17.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.4321, allocations: 0.6119 MB / 444.9 MB, free: 17.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4321, allocations: 1.438 kB / 444.9 MB, free: 17.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001881/0.434, allocations: 0.8561 MB / 445.7 MB, free: 17.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.434, allocations: 9.125 kB / 445.7 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.434, allocations: 6.797 kB / 445.7 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.434, allocations: 18.34 kB / 445.8 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006259/0.4347, allocations: 162 kB / 445.9 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.157e-05/0.4347, allocations: 10.14 kB / 445.9 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.436, allocations: 170.4 kB / 446.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.436, allocations: 27.12 kB / 446.1 MB, free: 16.95 MB / 350.1 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.001053/0.4371, allocations: 0.5575 MB / 446.7 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.4374, allocations: 189.5 kB / 446.9 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.4389, allocations: 0.6974 MB / 447.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4389, allocations: 9.438 kB / 447.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.4389, allocations: 0 / 447.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.4389, allocations: 2.719 kB / 447.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/0.4426, allocations: 2.117 MB / 449.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4426, allocations: 1.062 kB / 449.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004801/0.4431, allocations: 107.3 kB / 449.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.4431, allocations: 4.516 kB / 449.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.4432, allocations: 9.797 kB / 449.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.4432, allocations: 11.27 kB / 449.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4432, allocations: 3.156 kB / 449.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.4449, allocations: 1.05 MB / 450.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005767/0.4455, allocations: 414.7 kB / 451.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.4457, allocations: 22.7 kB / 451.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009867/0.4467, allocations: 137 kB / 451.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.447, allocations: 160.1 kB / 451.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/0.4471, allocations: 19.2 kB / 451.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002362/0.4494, allocations: 1.945 MB / 453.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4494, allocations: 0.6562 kB / 453.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009757/0.4504, allocations: 316.9 kB / 453.9 MB, free: 13.61 MB / 350.1 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.001721/0.4522, allocations: 483.2 kB / 454.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.4534, allocations: 0.5871 MB / 454.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4535, allocations: 3.906 kB / 454.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005404/0.454, allocations: 344.9 kB / 455.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.4555, allocations: 323 kB / 455.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.4604, allocations: 3.537 MB / 459.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.4613, allocations: 1.435 MB / 460.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007299/0.462, allocations: 292.1 kB / 460.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.4623, allocations: 103.4 kB / 460.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4623, allocations: 3.938 kB / 460.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Templates: time 0.03794/0.5003, allocations: 21.39 MB / 482.3 MB, free: 4.387 MB / 366.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.116185011342168]