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.00123/0.00123, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.0009344/0.0009344, allocations: 145.1 kB / 24.54 MB, free: 36 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 0.9382/0.9382, allocations: 173.3 MB / 201.1 MB, free: 9.312 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.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.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.[0-9,]+..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.503e-06/1.503e-06, allocations: 3.938 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.71e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01184/0.01187, allocations: 5.92 MB / 273.9 MB, free: 484 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009492/0.02136, allocations: 2.131 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008786/0.02224, allocations: 19.88 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.0236, allocations: 0.6065 MB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007509/0.02435, allocations: 417.6 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007383/0.02509, allocations: 403.2 kB / 277.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.02649, allocations: 1.344 MB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.02691, allocations: 298.3 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008148/0.02773, allocations: 0.7173 MB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005237/0.02825, allocations: 0.5145 MB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.02836, allocations: 112 kB / 280.4 MB, free: 9.902 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.0286, allocations: 171.9 kB / 280.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000312/0.02891, allocations: 0.67 MB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.0293, allocations: 0.518 MB / 281.8 MB, free: 8.543 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.0304, allocations: 1.456 MB / 283.2 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.0304, allocations: 4 kB / 283.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.0304, allocations: 0 / 283.2 MB, free: 7.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.03042, allocations: 3.938 kB / 283.3 MB, free: 7.074 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.002212/0.03263, allocations: 2.508 MB / 285.8 MB, free: 4.516 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.03266, allocations: 8.922 kB / 285.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.03292, allocations: 279.5 kB / 286 MB, free: 4.234 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.03404, allocations: 1.166 MB / 287.2 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.03414, allocations: 182.4 kB / 287.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.0342, allocations: 67.94 kB / 287.5 MB, free: 2.734 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007624/0.03496, allocations: 0.9695 MB / 288.4 MB, free: 1.605 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.03498, allocations: 0 / 288.4 MB, free: 1.605 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.03502, allocations: 31.98 kB / 288.5 MB, free: 1.574 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.03503, allocations: 19.94 kB / 288.5 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.03538, allocations: 231.6 kB / 288.7 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/0.1412, allocations: 3.474 MB / 292.2 MB, free: 26.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005611/0.1417, allocations: 305.4 kB / 292.5 MB, free: 26.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.1421, allocations: 206.8 kB / 292.7 MB, free: 26.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.1421, allocations: 6.938 kB / 292.7 MB, free: 26.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.1421, allocations: 41.31 kB / 292.7 MB, free: 26.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.1421, allocations: 0 / 292.7 MB, free: 26.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009325/0.143, allocations: 0.5264 MB / 293.2 MB, free: 26.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.1431, allocations: 270.9 kB / 293.5 MB, free: 26.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.1453, allocations: 2.172 MB / 295.7 MB, free: 25.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.1454, allocations: 39.58 kB / 295.7 MB, free: 25.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006061/0.146, allocations: 1.076 MB / 296.8 MB, free: 25.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.146, allocations: 124.6 kB / 296.9 MB, free: 25.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.1462, allocations: 100.3 kB / 297 MB, free: 25.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.911e-05/0.1462, allocations: 0.5002 MB / 297.5 MB, free: 24.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.1463, allocations: 64.28 kB / 297.6 MB, free: 24.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.1465, allocations: 0.5037 MB / 298.1 MB, free: 24.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.1468, allocations: 325 kB / 298.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1468, allocations: 1.844 kB / 298.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006843/0.1475, allocations: 0.5093 MB / 298.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1475, allocations: 5.812 kB / 298.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1475, allocations: 4.672 kB / 298.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/0.1478, allocations: 47.78 kB / 299 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.148, allocations: 114.9 kB / 299.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008634/0.1489, allocations: 2.123 MB / 301.2 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.1491, allocations: 62.2 kB / 301.3 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.1492, allocations: 14.34 kB / 301.3 MB, free: 21.48 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.000171/0.1493, allocations: 196.2 kB / 301.5 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.1495, allocations: 198.4 kB / 301.7 MB, free: 21.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.1496, allocations: 159.3 kB / 301.8 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1496, allocations: 3.625 kB / 301.8 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1496, allocations: 4.016 kB / 301.8 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1496, allocations: 2.734 kB / 301.8 MB, free: 21.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.1516, allocations: 1.836 MB / 303.7 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1516, allocations: 1 kB / 303.7 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.1518, allocations: 77.02 kB / 303.7 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.639e-05/0.1519, allocations: 40.33 kB / 303.8 MB, free: 20.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.1519, allocations: 12.88 kB / 303.8 MB, free: 20.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006088/0.1525, allocations: 2.077 MB / 305.9 MB, free: 18.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1525, allocations: 1.219 kB / 305.9 MB, free: 18.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006263/0.1531, allocations: 0.6682 MB / 306.5 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003302/0.1535, allocations: 339.5 kB / 306.9 MB, free: 17.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.81e-05/0.1536, allocations: 13.31 kB / 306.9 MB, free: 17.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.1538, allocations: 43.02 kB / 306.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.857e-05/0.1539, allocations: 40.98 kB / 307 MB, free: 17.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.1539, allocations: 17.61 kB / 307 MB, free: 17.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.1551, allocations: 1.247 MB / 308.2 MB, free: 17.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1551, allocations: 0 / 308.2 MB, free: 17.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.1556, allocations: 261.2 kB / 308.5 MB, free: 17.06 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.0008038/0.1564, allocations: 447.4 kB / 308.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.1568, allocations: 439.9 kB / 309.4 MB, free: 16.67 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1568, allocations: 0 / 309.4 MB, free: 16.67 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.1569, allocations: 305.4 kB / 309.7 MB, free: 16.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.1575, allocations: 258.5 kB / 309.9 MB, free: 16.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.16, allocations: 2.872 MB / 312.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.1602, allocations: 407.4 kB / 313.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002361/0.1605, allocations: 198.5 kB / 313.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.1606, allocations: 84.5 kB / 313.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of SimCode: time 8.41e-07/0.1606, allocations: 0 / 313.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Templates: time 0.01927/0.1799, allocations: 19.96 MB / 333.4 MB, free: 10.84 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] 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","",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.345231855288148]