Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001857/0.001857, allocations: 92.62 kB / 20.96 MB, free: 3.477 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.00215/0.00215, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 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.542/1.542, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.538e-05/2.723e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008289/0.008316, allocations: 5.372 MB / 272.7 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003998/0.01231, allocations: 2.041 MB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/0.0127, allocations: 23.88 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.01419, allocations: 0.6104 MB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000833/0.01502, allocations: 421.6 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008957/0.01592, allocations: 407.2 kB / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001944/0.01786, allocations: 1.351 MB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005568/0.01842, allocations: 290.3 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001006/0.01942, allocations: 0.7096 MB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007538/0.02018, allocations: 0.5105 MB / 279 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.02035, allocations: 116 kB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.02068, allocations: 179.8 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006387/0.02132, allocations: 0.6662 MB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006491/0.02197, allocations: 0.5297 MB / 280.5 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002927/0.02489, allocations: 2.578 MB / 283.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.0249, allocations: 0 / 283.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0249, allocations: 0 / 283.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.681e-05/0.02493, allocations: 0 / 283.1 MB, free: 6.898 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004729/0.02966, allocations: 2.335 MB / 285.4 MB, free: 4.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.02972, allocations: 12.92 kB / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004919/0.03021, allocations: 271.5 kB / 285.7 MB, free: 4.242 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002875/0.03308, allocations: 1.644 MB / 287.3 MB, free: 2.543 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.03332, allocations: 186.3 kB / 287.5 MB, free: 2.328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.03345, allocations: 75.94 kB / 287.6 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.03544, allocations: 1.173 MB / 288.8 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.03546, allocations: 0 / 288.8 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.688e-05/0.03554, allocations: 28 kB / 288.8 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.03555, allocations: 16 kB / 288.8 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.03675, allocations: 0.5516 MB / 289.4 MB, free: 356 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1207/0.1575, allocations: 3.532 MB / 292.9 MB, free: 30.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.1587, allocations: 0.4974 MB / 293.4 MB, free: 30.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007165/0.1594, allocations: 345.5 kB / 293.7 MB, free: 30 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.1595, allocations: 6.281 kB / 293.7 MB, free: 30 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.1595, allocations: 39.12 kB / 293.8 MB, free: 29.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.944e-06/0.1595, allocations: 0 / 293.8 MB, free: 29.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.002222/0.1617, allocations: 0.8761 MB / 294.6 MB, free: 29.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.1618, allocations: 266.8 kB / 294.9 MB, free: 29.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003535/0.1653, allocations: 3.093 MB / 298 MB, free: 28.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.1653, allocations: 40.38 kB / 298 MB, free: 28.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006103/0.1659, allocations: 0.8755 MB / 298.9 MB, free: 27.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.484e-05/0.166, allocations: 122.6 kB / 299 MB, free: 27.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.1662, allocations: 96.28 kB / 299.1 MB, free: 27.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.729e-05/0.1662, allocations: 320.1 kB / 299.4 MB, free: 27.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/0.1667, allocations: 215.5 kB / 299.6 MB, free: 27.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.1672, allocations: 0.5855 MB / 300.2 MB, free: 26.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008484/0.1681, allocations: 0.5139 MB / 300.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1681, allocations: 3.438 kB / 300.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001412/0.1695, allocations: 0.8065 MB / 301.6 MB, free: 25.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1695, allocations: 6.656 kB / 301.6 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1695, allocations: 3.688 kB / 301.6 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.1698, allocations: 62.7 kB / 301.6 MB, free: 25.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.1702, allocations: 120.5 kB / 301.7 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.1715, allocations: 1.669 MB / 303.4 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.1721, allocations: 75.3 kB / 303.5 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.1721, allocations: 20.66 kB / 303.5 MB, free: 24.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006934/0.1728, allocations: 0.6497 MB / 304.2 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002092/0.173, allocations: 197.1 kB / 304.3 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002098/0.1732, allocations: 219.2 kB / 304.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1732, allocations: 3.25 kB / 304.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1732, allocations: 0 / 304.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1732, allocations: 1.969 kB / 304.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002723/0.1759, allocations: 1.832 MB / 306.4 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1759, allocations: 0 / 306.4 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.1763, allocations: 80.02 kB / 306.5 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001715/0.1765, allocations: 60.75 kB / 306.5 MB, free: 22.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.1765, allocations: 12.81 kB / 306.5 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.1775, allocations: 1.618 MB / 308.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1775, allocations: 0 / 308.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.179, allocations: 0.9759 MB / 309.1 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.1796, allocations: 377.4 kB / 309.5 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.1797, allocations: 15.55 kB / 309.5 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.1802, allocations: 51.95 kB / 309.6 MB, free: 19.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.1803, allocations: 36.5 kB / 309.6 MB, free: 19.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.1803, allocations: 15.98 kB / 309.6 MB, free: 19.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002062/0.1824, allocations: 2.203 MB / 311.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1824, allocations: 0 / 311.8 MB, free: 17.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007837/0.1832, allocations: 266.3 kB / 312.1 MB, free: 16.96 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002154/0.1853, allocations: 0.4985 MB / 312.6 MB, free: 16.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.1865, allocations: 0.5862 MB / 313.2 MB, free: 16.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1865, allocations: 0 / 313.2 MB, free: 16.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.1871, allocations: 358.4 kB / 313.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.1881, allocations: 260.5 kB / 313.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004868/0.193, allocations: 3.638 MB / 317.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007711/0.1938, allocations: 0.904 MB / 318.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006299/0.1944, allocations: 298.8 kB / 318.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.1946, allocations: 88.5 kB / 318.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of SimCode: time 1.633e-06/0.1946, allocations: 4 kB / 318.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of Templates: time 0.03324/0.2279, allocations: 19.17 MB / 337.9 MB, free: 7.539 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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: 5.173866920988075]