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.0009306/0.0009306, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009113/0.0009113, allocations: 145.7 kB / 24.89 MB, free: 8.727 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 1.013/1.013, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.313e-06/1.313e-06, allocations: 0 / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.195e-05, allocations: 10.25 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005141/0.005163, allocations: 5.828 MB / 274.3 MB, free: 136 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.00793, allocations: 2.162 MB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.008209, allocations: 23.88 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.009285, allocations: 0.6767 MB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005654/0.009851, allocations: 425.5 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005778/0.01043, allocations: 395.3 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.0115, allocations: 1.336 MB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.0119, allocations: 308.3 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006188/0.01252, allocations: 0.7211 MB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.013, allocations: 482.9 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.987e-05/0.0131, allocations: 116 kB / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.01328, allocations: 167.9 kB / 281.1 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003361/0.01362, allocations: 0.6584 MB / 281.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003828/0.014, allocations: 0.5258 MB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.0151, allocations: 1.464 MB / 283.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.0151, allocations: 0 / 283.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.01511, allocations: 4 kB / 283.7 MB, free: 6.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.01512, allocations: 0 / 283.7 MB, free: 6.66 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.001838/0.01696, allocations: 2.146 MB / 285.9 MB, free: 4.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.01699, allocations: 12.92 kB / 285.9 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.01717, allocations: 176.8 kB / 286.1 MB, free: 4.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008785/0.01805, allocations: 0.9019 MB / 287 MB, free: 3.336 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.01816, allocations: 186.4 kB / 287.2 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.567e-05/0.01822, allocations: 67.94 kB / 287.2 MB, free: 3.059 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006357/0.01886, allocations: 0.9033 MB / 288.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.01887, allocations: 3.984 kB / 288.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.01891, allocations: 28 kB / 288.2 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.01892, allocations: 16 kB / 288.2 MB, free: 1.965 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.01913, allocations: 149 kB / 288.3 MB, free: 1.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1159/0.135, allocations: 2.212 MB / 290.5 MB, free: 27.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.1355, allocations: 248.2 kB / 290.8 MB, free: 27.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.1358, allocations: 185 kB / 291 MB, free: 27.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.1358, allocations: 6.312 kB / 291 MB, free: 27.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.1359, allocations: 45.47 kB / 291 MB, free: 27.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.266e-06/0.1359, allocations: 0 / 291 MB, free: 27.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008841/0.1367, allocations: 369 kB / 291.4 MB, free: 27.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.1368, allocations: 265.4 kB / 291.6 MB, free: 27.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.1387, allocations: 1.806 MB / 293.4 MB, free: 26.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.1388, allocations: 32.8 kB / 293.5 MB, free: 26.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.1391, allocations: 0.4975 MB / 294 MB, free: 26.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.1391, allocations: 126.1 kB / 294.1 MB, free: 26.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1393, allocations: 89.19 kB / 294.2 MB, free: 26.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.1393, allocations: 329.2 kB / 294.5 MB, free: 26.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.679e-05/0.1394, allocations: 46.08 kB / 294.5 MB, free: 26.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1395, allocations: 431 kB / 295 MB, free: 26.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.1398, allocations: 254.6 kB / 295.2 MB, free: 25.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1398, allocations: 1.094 kB / 295.2 MB, free: 25.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004937/0.1403, allocations: 342.1 kB / 295.5 MB, free: 25.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1403, allocations: 6.719 kB / 295.6 MB, free: 25.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.1403, allocations: 4.609 kB / 295.6 MB, free: 25.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/0.1405, allocations: 44.97 kB / 295.6 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.1408, allocations: 126.1 kB / 295.7 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007547/0.1415, allocations: 1.438 MB / 297.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.1418, allocations: 64.52 kB / 297.2 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.1418, allocations: 14.97 kB / 297.2 MB, free: 24.53 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.0001875/0.142, allocations: 143.6 kB / 297.4 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.1421, allocations: 107 kB / 297.5 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.1423, allocations: 162.8 kB / 297.6 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1423, allocations: 4.906 kB / 297.7 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1423, allocations: 0 / 297.7 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1423, allocations: 7.5 kB / 297.7 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.1437, allocations: 1.019 MB / 298.7 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1437, allocations: 1.781 kB / 298.7 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.1439, allocations: 88.41 kB / 298.8 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.1441, allocations: 41.7 kB / 298.8 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.1441, allocations: 9.828 kB / 298.8 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006115/0.1447, allocations: 1.394 MB / 300.2 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1447, allocations: 2.906 kB / 300.2 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005175/0.1452, allocations: 470.9 kB / 300.7 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.1455, allocations: 250 kB / 300.9 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.1456, allocations: 10.14 kB / 300.9 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.1459, allocations: 43.11 kB / 301 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.146, allocations: 37.17 kB / 301 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.146, allocations: 15.31 kB / 301 MB, free: 22.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001211/0.1472, allocations: 0.989 MB / 302 MB, free: 22.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1472, allocations: 0 / 302 MB, free: 22.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005963/0.1478, allocations: 260.6 kB / 302.3 MB, free: 22.46 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.001263/0.1491, allocations: 0.5805 MB / 302.8 MB, free: 22.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004787/0.1496, allocations: 331 kB / 303.2 MB, free: 22.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.793e-05/0.1496, allocations: 19.97 kB / 303.2 MB, free: 22.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.1498, allocations: 223.2 kB / 303.4 MB, free: 22.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000621/0.1504, allocations: 262.8 kB / 303.7 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/0.1537, allocations: 2.798 MB / 306.5 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.154, allocations: 392.2 kB / 306.8 MB, free: 20.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.1543, allocations: 167.9 kB / 307 MB, free: 20.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004437/0.1548, allocations: 313.6 kB / 307.3 MB, free: 20.58 MB / 266.7 MB Notification: Performance of SimCode: time 1.603e-06/0.1548, allocations: 0 / 307.3 MB, free: 20.58 MB / 266.7 MB Notification: Performance of Templates: time 0.02298/0.1777, allocations: 20.41 MB / 327.7 MB, free: 1.785 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 -s gbode -gbm=radauIIA3 -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.130648058373481]