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.0007401/0.0007401, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00118/0.00192, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0008774/0.0008774, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001213/0.00209, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9774/0.9774, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08944/1.067, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.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 2.083e-06/2.083e-06, allocations: 0 / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.391e-05, allocations: 2.312 kB / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007894/0.007917, allocations: 5.864 MB / 245.4 MB, free: 13.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004299/0.01222, allocations: 2.177 MB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005791/0.0128, allocations: 19.88 kB / 247.6 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.0143, allocations: 0.6417 MB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.01532, allocations: 429.4 kB / 248.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009594/0.01628, allocations: 407.2 kB / 249.1 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001719/0.018, allocations: 1.34 MB / 250.4 MB, free: 8.293 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005776/0.01858, allocations: 300.3 kB / 250.7 MB, free: 7.973 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.01988, allocations: 0.8489 MB / 251.5 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008029/0.02069, allocations: 486.9 kB / 252 MB, free: 6.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002077/0.02089, allocations: 112 kB / 252.1 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.02125, allocations: 171.8 kB / 252.3 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004804/0.02173, allocations: 0.6117 MB / 252.9 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006597/0.02239, allocations: 418.8 kB / 253.3 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.02418, allocations: 1.413 MB / 254.7 MB, free: 3.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-05/0.02419, allocations: 3.938 kB / 254.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.02419, allocations: 0 / 254.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.605e-05/0.02425, allocations: 3.938 kB / 254.7 MB, free: 3.922 MB / 250.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.003979/0.02823, allocations: 2.442 MB / 257.2 MB, free: 1.441 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.02827, allocations: 12.03 kB / 257.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.02863, allocations: 176.8 kB / 257.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.03023, allocations: 0.8902 MB / 258.2 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.03039, allocations: 182.4 kB / 258.4 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.0305, allocations: 75.94 kB / 258.5 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.03153, allocations: 0.8994 MB / 259.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.03155, allocations: 0 / 259.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.706e-05/0.03161, allocations: 28 kB / 259.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.03163, allocations: 20 kB / 259.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.03198, allocations: 149 kB / 259.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003789/0.03577, allocations: 2.219 MB / 261.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005753/0.03634, allocations: 250.3 kB / 262.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.0367, allocations: 185.3 kB / 262.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.03672, allocations: 4.281 kB / 262.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.03676, allocations: 42.78 kB / 262.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.395e-06/0.03676, allocations: 0 / 262.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001036/0.0378, allocations: 376.2 kB / 262.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.03783, allocations: 67.39 kB / 262.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.03931, allocations: 1.805 MB / 264.5 MB, free: 9.707 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.03934, allocations: 37.7 kB / 264.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.03959, allocations: 0.4898 MB / 265 MB, free: 9.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.055e-05/0.03966, allocations: 122.9 kB / 265.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.613e-05/0.03976, allocations: 94.09 kB / 265.3 MB, free: 8.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.708e-05/0.03984, allocations: 329.9 kB / 265.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.446e-05/0.0399, allocations: 40.98 kB / 265.6 MB, free: 8.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.04011, allocations: 433.9 kB / 266 MB, free: 8.023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.04031, allocations: 259.8 kB / 266.3 MB, free: 7.719 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.04032, allocations: 0 / 266.3 MB, free: 7.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003753/0.04069, allocations: 346 kB / 266.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.04071, allocations: 4 kB / 266.6 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.04072, allocations: 4 kB / 266.6 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.04086, allocations: 40.83 kB / 266.7 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.04117, allocations: 132 kB / 266.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008335/0.042, allocations: 1.434 MB / 268.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.04223, allocations: 59.61 kB / 268.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.163e-05/0.04225, allocations: 19.94 kB / 268.3 MB, free: 5.594 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001921/0.04244, allocations: 148.6 kB / 268.5 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.04255, allocations: 107.9 kB / 268.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.04268, allocations: 162 kB / 268.7 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.04269, allocations: 0 / 268.7 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.04269, allocations: 4 kB / 268.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.04269, allocations: 0 / 268.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.0438, allocations: 1.018 MB / 269.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.0438, allocations: 0 / 269.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.04403, allocations: 95.86 kB / 269.8 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.0443, allocations: 242.6 kB / 270.1 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.521e-05/0.04438, allocations: 36.89 kB / 270.1 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.0444, allocations: 8 kB / 270.1 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006869/0.04509, allocations: 1.41 MB / 271.5 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.04509, allocations: 3.984 kB / 271.5 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004378/0.04553, allocations: 467 kB / 272 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-05/0.04562, allocations: 12 kB / 272 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.04582, allocations: 39.91 kB / 272 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/0.04588, allocations: 43.92 kB / 272.1 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.0459, allocations: 12 kB / 272.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007866/0.04668, allocations: 0.9897 MB / 273.1 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.04668, allocations: 0 / 273.1 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000515/0.0472, allocations: 267.5 kB / 273.4 MB, free: 376 kB / 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.001503/0.0487, allocations: 0.6478 MB / 274 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.102/0.1507, allocations: 319 kB / 274.3 MB, free: 25.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.668e-05/0.1508, allocations: 23.56 kB / 274.3 MB, free: 25.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.151, allocations: 220.5 kB / 274.5 MB, free: 25.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.1522, allocations: 316.7 kB / 274.9 MB, free: 25.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009473/0.1617, allocations: 2.822 MB / 277.7 MB, free: 24.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.1622, allocations: 397.4 kB / 278.1 MB, free: 24.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005522/0.1627, allocations: 174.2 kB / 278.2 MB, free: 24.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000659/0.1634, allocations: 313 kB / 278.5 MB, free: 24.49 MB / 266.7 MB Notification: Performance of SimCode: time 2.154e-06/0.1634, allocations: 4.781 kB / 278.5 MB, free: 24.49 MB / 266.7 MB Notification: Performance of Templates: time 0.0272/0.1906, allocations: 21.15 MB / 299.7 MB, free: 11.64 MB / 266.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 -ignoreHideResult -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.0952039025723934]