Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001857/0.001857, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001997/0.001997, allocations: 165.6 kB / 24.28 MB, free: 152 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.606/1.606, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.988e-05/3.193e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008887/0.008919, allocations: 5.413 MB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004187/0.01311, allocations: 1.831 MB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005836/0.01369, allocations: 19.88 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.01505, allocations: 0.5095 MB / 280.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.01611, allocations: 409.7 kB / 280.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009533/0.01706, allocations: 375.2 kB / 280.8 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.01831, allocations: 0.9157 MB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.01877, allocations: 221.3 kB / 282 MB, free: 8.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006938/0.01946, allocations: 0.5224 MB / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005792/0.02004, allocations: 383.1 kB / 282.9 MB, free: 7.234 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001308/0.02017, allocations: 80 kB / 282.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.02042, allocations: 127.8 kB / 283.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006181/0.02104, allocations: 0.5961 MB / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005527/0.02159, allocations: 434.6 kB / 284.1 MB, free: 6.008 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002615/0.02421, allocations: 2.068 MB / 286.2 MB, free: 3.934 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.02421, allocations: 4 kB / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.02421, allocations: 0 / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.02423, allocations: 0 / 286.2 MB, free: 3.93 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.0042/0.02843, allocations: 2.352 MB / 288.5 MB, free: 1.531 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.02848, allocations: 11.97 kB / 288.5 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003948/0.02887, allocations: 235.7 kB / 288.8 MB, free: 1.289 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.03111, allocations: 1.067 MB / 289.8 MB, free: 196 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.03125, allocations: 88.97 kB / 289.9 MB, free: 92 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-05/0.03135, allocations: 59.88 kB / 290 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1054/0.1367, allocations: 0.8714 MB / 290.8 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1368, allocations: 0 / 290.8 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.1368, allocations: 26.19 kB / 290.9 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.1368, allocations: 12.06 kB / 290.9 MB, free: 27.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006178/0.1374, allocations: 319.2 kB / 291.2 MB, free: 27.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004842/0.1423, allocations: 3.582 MB / 294.8 MB, free: 25.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008979/0.1432, allocations: 317.7 kB / 295.1 MB, free: 25.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.1436, allocations: 162.3 kB / 295.2 MB, free: 25.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.1436, allocations: 5.797 kB / 295.2 MB, free: 25.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.1437, allocations: 37.55 kB / 295.3 MB, free: 24.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.224e-06/0.1437, allocations: 0 / 295.3 MB, free: 24.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001536/0.1452, allocations: 0.5592 MB / 295.8 MB, free: 24.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1453, allocations: 209.2 kB / 296 MB, free: 24.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003174/0.1484, allocations: 2.389 MB / 298.4 MB, free: 23.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.1485, allocations: 32.11 kB / 298.5 MB, free: 23.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008215/0.1493, allocations: 1.064 MB / 299.5 MB, free: 22.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.1493, allocations: 84.58 kB / 299.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.1495, allocations: 91.55 kB / 299.7 MB, free: 22.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.768e-05/0.1495, allocations: 0.4967 MB / 300.2 MB, free: 22.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1498, allocations: 104.8 kB / 300.3 MB, free: 22.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003504/0.1502, allocations: 494.9 kB / 300.8 MB, free: 21.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005391/0.1507, allocations: 387.8 kB / 301.2 MB, free: 21.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1507, allocations: 1.938 kB / 301.2 MB, free: 21.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001016/0.1517, allocations: 0.5396 MB / 301.7 MB, free: 21.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1517, allocations: 14.3 kB / 301.7 MB, free: 21.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1517, allocations: 3.562 kB / 301.7 MB, free: 21.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/0.152, allocations: 57.38 kB / 301.8 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.1522, allocations: 68.81 kB / 301.8 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.1536, allocations: 2.192 MB / 304 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.154, allocations: 50.22 kB / 304.1 MB, free: 18.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.154, allocations: 17.14 kB / 304.1 MB, free: 18.89 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0003025/0.1543, allocations: 239.3 kB / 304.3 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.1545, allocations: 171.9 kB / 304.5 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009361/0.1555, allocations: 426.5 kB / 304.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1555, allocations: 1.719 kB / 304.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.1555, allocations: 0 / 304.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1555, allocations: 4.469 kB / 304.9 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.1584, allocations: 1.895 MB / 306.8 MB, free: 17.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1584, allocations: 0 / 306.8 MB, free: 17.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.1586, allocations: 38.84 kB / 306.9 MB, free: 17.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.1588, allocations: 43.88 kB / 306.9 MB, free: 17.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.1588, allocations: 6.406 kB / 306.9 MB, free: 17.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.1598, allocations: 2.146 MB / 309 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1598, allocations: 3.828 kB / 309.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.1609, allocations: 0.7085 MB / 309.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/0.1616, allocations: 289.6 kB / 310 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.1617, allocations: 11.38 kB / 310.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003384/0.162, allocations: 26.77 kB / 310.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.1621, allocations: 38.17 kB / 310.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1621, allocations: 12.44 kB / 310.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001547/0.1637, allocations: 1.298 MB / 311.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1637, allocations: 0 / 311.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006683/0.1644, allocations: 203.7 kB / 311.6 MB, free: 13.45 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002363/0.1667, allocations: 381.2 kB / 312 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008459/0.1676, allocations: 474.1 kB / 312.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1676, allocations: 0 / 312.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003786/0.1679, allocations: 316.8 kB / 312.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009041/0.1689, allocations: 217.9 kB / 313 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.1718, allocations: 2.433 MB / 315.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005927/0.1724, allocations: 0.7235 MB / 316.1 MB, free: 9.023 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.1727, allocations: 157.2 kB / 316.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.1729, allocations: 76.5 kB / 316.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1729, allocations: 3.938 kB / 316.4 MB, free: 8.789 MB / 266.7 MB Notification: Performance of Templates: time 0.0263/0.1992, allocations: 15.53 MB / 331.9 MB, free: 9.383 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.074169194907881]