Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001393/0.001393, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001539/0.001539, allocations: 166.4 kB / 24.99 MB, free: 8.746 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 0.9758/0.9758, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.859e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006205/0.006233, allocations: 5.95 MB / 279 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.009831, allocations: 2.267 MB / 281.2 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.01034, allocations: 19.88 kB / 281.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.0117, allocations: 0.626 MB / 281.9 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008224/0.01252, allocations: 465.3 kB / 282.3 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.01328, allocations: 403.3 kB / 282.7 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.01459, allocations: 1.352 MB / 284.1 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004693/0.01506, allocations: 290.3 kB / 284.4 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008004/0.01586, allocations: 0.7212 MB / 285.1 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006483/0.01651, allocations: 0.5223 MB / 285.6 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.01665, allocations: 116 kB / 285.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.0169, allocations: 179.9 kB / 285.9 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003832/0.01729, allocations: 0.6662 MB / 286.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004493/0.01773, allocations: 0.5258 MB / 287.1 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.01907, allocations: 1.479 MB / 288.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01908, allocations: 0 / 288.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01908, allocations: 0 / 288.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.373e-05/0.01912, allocations: 0 / 288.6 MB, free: 2.246 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.1274/0.1466, allocations: 2.521 MB / 291.1 MB, free: 28.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1466, allocations: 9.719 kB / 291.1 MB, free: 28.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003506/0.147, allocations: 274.6 kB / 291.4 MB, free: 27.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.1487, allocations: 1.187 MB / 292.6 MB, free: 27.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.1488, allocations: 188.4 kB / 292.8 MB, free: 27.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.1489, allocations: 64.75 kB / 292.8 MB, free: 27.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/0.1499, allocations: 0.9646 MB / 293.8 MB, free: 26.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.1499, allocations: 0.9062 kB / 293.8 MB, free: 26.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/0.1499, allocations: 31.66 kB / 293.8 MB, free: 26.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.1499, allocations: 19.66 kB / 293.8 MB, free: 26.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000499/0.1504, allocations: 228.3 kB / 294.1 MB, free: 26.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004064/0.1545, allocations: 3.489 MB / 297.5 MB, free: 24.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006692/0.1552, allocations: 308.9 kB / 297.8 MB, free: 24.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003928/0.1556, allocations: 208 kB / 298 MB, free: 24.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.1556, allocations: 9.594 kB / 298.1 MB, free: 24.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1556, allocations: 41.98 kB / 298.1 MB, free: 24.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.535e-06/0.1556, allocations: 0 / 298.1 MB, free: 24.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001359/0.157, allocations: 0.5291 MB / 298.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.157, allocations: 266.5 kB / 298.9 MB, free: 23.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.1597, allocations: 2.186 MB / 301.1 MB, free: 22.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.1597, allocations: 35.33 kB / 301.1 MB, free: 22.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006553/0.1604, allocations: 1.076 MB / 302.2 MB, free: 21.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.111e-05/0.1604, allocations: 127.8 kB / 302.3 MB, free: 21.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.1605, allocations: 100.9 kB / 302.4 MB, free: 21.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.772e-05/0.1606, allocations: 0.4918 MB / 302.9 MB, free: 21.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.1608, allocations: 65.09 kB / 303 MB, free: 21.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.161, allocations: 0.4985 MB / 303.5 MB, free: 20.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.1613, allocations: 325.2 kB / 303.8 MB, free: 20.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1613, allocations: 3.938 kB / 303.8 MB, free: 20.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007492/0.1621, allocations: 0.5086 MB / 304.3 MB, free: 20.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1621, allocations: 6.875 kB / 304.3 MB, free: 20.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1621, allocations: 5.062 kB / 304.3 MB, free: 20.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/0.1623, allocations: 52.11 kB / 304.4 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.1626, allocations: 111.5 kB / 304.5 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009514/0.1635, allocations: 2.124 MB / 306.6 MB, free: 18.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.1639, allocations: 60.22 kB / 306.6 MB, free: 18.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.1639, allocations: 22.3 kB / 306.7 MB, free: 18.14 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.0002174/0.1641, allocations: 187.7 kB / 306.8 MB, free: 17.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.1643, allocations: 201.2 kB / 307 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.1644, allocations: 163.7 kB / 307.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1645, allocations: 3.406 kB / 307.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1645, allocations: 3.188 kB / 307.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1645, allocations: 1.969 kB / 307.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.1665, allocations: 1.839 MB / 309.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.1665, allocations: 7.922 kB / 309.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.1667, allocations: 77.67 kB / 309.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.1668, allocations: 33.92 kB / 309.2 MB, free: 16.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.1668, allocations: 15.45 kB / 309.2 MB, free: 16.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007164/0.1675, allocations: 2.09 MB / 311.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1675, allocations: 0.6562 kB / 311.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006481/0.1682, allocations: 0.6613 MB / 311.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.1685, allocations: 343.4 kB / 312.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.733e-05/0.1686, allocations: 16.3 kB / 312.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.1688, allocations: 43.97 kB / 312.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.1689, allocations: 35.94 kB / 312.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.1689, allocations: 19.98 kB / 312.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001078/0.17, allocations: 1.246 MB / 313.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.17, allocations: 4 kB / 313.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005755/0.1706, allocations: 257.4 kB / 313.9 MB, free: 12.15 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.0009495/0.1715, allocations: 455.1 kB / 314.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005577/0.1721, allocations: 443.5 kB / 314.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1721, allocations: 0 / 314.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.1723, allocations: 298.4 kB / 315.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.173, allocations: 249.9 kB / 315.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.1762, allocations: 2.848 MB / 318.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.1764, allocations: 415.3 kB / 318.6 MB, free: 7.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003515/0.1768, allocations: 190.7 kB / 318.7 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.1769, allocations: 96.48 kB / 318.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of SimCode: time 1.934e-06/0.1769, allocations: 0 / 318.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of Templates: time 0.02408/0.201, allocations: 19.14 MB / 338 MB, free: 4.363 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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.3872224800288677]