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.001163/0.001163, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001266/0.001266, allocations: 139.1 kB / 24.97 MB, free: 8.359 MB / 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.9581/0.9581, allocations: 173.4 MB / 201.5 MB, free: 9.336 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.282e-06/1.282e-06, allocations: 0 / 268.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.587e-05/1.715e-05, allocations: 6.25 kB / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005249/0.005266, allocations: 5.904 MB / 274 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.007638, allocations: 2.112 MB / 276.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.007862, allocations: 19.88 kB / 276.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009511/0.008813, allocations: 0.6143 MB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.009262, allocations: 425.5 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.009715, allocations: 399.3 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009032/0.01062, allocations: 1.348 MB / 278.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003784/0.011, allocations: 290.3 kB / 279.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004985/0.0115, allocations: 0.7173 MB / 279.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004345/0.01193, allocations: 0.5261 MB / 280.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.731e-05/0.01203, allocations: 116 kB / 280.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.01222, allocations: 175.9 kB / 280.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.01254, allocations: 0.6662 MB / 281.3 MB, free: 9.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.01288, allocations: 0.5297 MB / 281.9 MB, free: 8.867 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.01422, allocations: 1.46 MB / 283.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.01423, allocations: 0 / 283.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01423, allocations: 0 / 283.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.01424, allocations: 0 / 283.3 MB, free: 7.402 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.002228/0.01647, allocations: 2.535 MB / 285.9 MB, free: 4.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.01651, allocations: 8.922 kB / 285.9 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000236/0.01675, allocations: 275.5 kB / 286.1 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.01794, allocations: 1.174 MB / 287.3 MB, free: 3.309 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.01807, allocations: 190.4 kB / 287.5 MB, free: 3.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.895e-05/0.01813, allocations: 67.94 kB / 287.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007638/0.0189, allocations: 0.9655 MB / 288.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.01891, allocations: 0 / 288.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.01895, allocations: 28 kB / 288.6 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.01897, allocations: 15.94 kB / 288.6 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.01934, allocations: 231.7 kB / 288.8 MB, free: 1.629 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1072/0.1266, allocations: 3.485 MB / 292.3 MB, free: 30.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007383/0.1273, allocations: 299.2 kB / 292.6 MB, free: 30.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.1277, allocations: 211.9 kB / 292.8 MB, free: 30.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.1277, allocations: 8 kB / 292.8 MB, free: 30.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.1277, allocations: 43.95 kB / 292.8 MB, free: 30.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.023e-06/0.1277, allocations: 0 / 292.8 MB, free: 30.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.00101/0.1287, allocations: 0.5259 MB / 293.4 MB, free: 30.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.1288, allocations: 270.7 kB / 293.6 MB, free: 30.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002389/0.1312, allocations: 2.175 MB / 295.8 MB, free: 29.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.1312, allocations: 33.27 kB / 295.8 MB, free: 29.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006301/0.1318, allocations: 1.078 MB / 296.9 MB, free: 28.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.61e-05/0.1319, allocations: 122.5 kB / 297 MB, free: 28.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.132, allocations: 107.5 kB / 297.1 MB, free: 28.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.348e-05/0.1321, allocations: 0.4971 MB / 297.6 MB, free: 28.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1322, allocations: 62.94 kB / 297.7 MB, free: 28.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.1325, allocations: 0.4994 MB / 298.2 MB, free: 27.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.1327, allocations: 318.6 kB / 298.5 MB, free: 27.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1328, allocations: 1.219 kB / 298.5 MB, free: 27.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000645/0.1334, allocations: 0.5126 MB / 299 MB, free: 27.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1334, allocations: 10.31 kB / 299 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1334, allocations: 8.219 kB / 299 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.1336, allocations: 48.72 kB / 299.1 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1339, allocations: 109.6 kB / 299.2 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008651/0.1347, allocations: 2.126 MB / 301.3 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.135, allocations: 59.03 kB / 301.4 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.135, allocations: 16.83 kB / 301.4 MB, free: 24.93 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.0001772/0.1352, allocations: 193.5 kB / 301.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.1354, allocations: 200.6 kB / 301.8 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/0.1355, allocations: 158.8 kB / 301.9 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1355, allocations: 7.656 kB / 301.9 MB, free: 24.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1355, allocations: 0 / 301.9 MB, free: 24.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1355, allocations: 2.984 kB / 301.9 MB, free: 24.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.1376, allocations: 1.829 MB / 303.8 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1376, allocations: 0 / 303.8 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.1378, allocations: 77.94 kB / 303.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.1379, allocations: 42.56 kB / 303.9 MB, free: 23.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.1379, allocations: 12.55 kB / 303.9 MB, free: 23.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006567/0.1386, allocations: 2.08 MB / 306 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1386, allocations: 1.656 kB / 306 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.1393, allocations: 0.6651 MB / 306.6 MB, free: 21.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003458/0.1396, allocations: 337.7 kB / 307 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.592e-05/0.1397, allocations: 14.33 kB / 307 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.1399, allocations: 45.5 kB / 307 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.14, allocations: 45.22 kB / 307.1 MB, free: 20.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.14, allocations: 12.23 kB / 307.1 MB, free: 20.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001306/0.1414, allocations: 1.247 MB / 308.3 MB, free: 20.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1414, allocations: 0 / 308.3 MB, free: 20.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005156/0.1419, allocations: 263.1 kB / 308.6 MB, free: 20.5 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.0008269/0.1427, allocations: 447.1 kB / 309 MB, free: 20.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000473/0.1432, allocations: 425.2 kB / 309.4 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1432, allocations: 4 kB / 309.5 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.1434, allocations: 310.2 kB / 309.8 MB, free: 19.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.144, allocations: 258.5 kB / 310 MB, free: 19.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.1467, allocations: 2.86 MB / 312.9 MB, free: 17.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.1469, allocations: 416.7 kB / 313.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.1472, allocations: 201.2 kB / 313.5 MB, free: 17 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.1473, allocations: 88.5 kB / 313.6 MB, free: 16.91 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1473, allocations: 0 / 313.6 MB, free: 16.91 MB / 266.7 MB Notification: Performance of Templates: time 0.02626/0.1736, allocations: 19.12 MB / 332.7 MB, free: 13.98 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.3864215288776904]