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.0009505/0.0009505, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001057/0.001057, allocations: 168.1 kB / 24.82 MB, free: 8.871 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.9988/0.9988, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.402e-06/1.402e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/2.138e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005182/0.005203, allocations: 5.809 MB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.00803, allocations: 2.255 MB / 281.4 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003545/0.008385, allocations: 27.81 kB / 281.5 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.009432, allocations: 0.6144 MB / 282.1 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006085/0.01004, allocations: 469.3 kB / 282.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.01061, allocations: 411.2 kB / 282.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.01163, allocations: 1.34 MB / 284.3 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.012, allocations: 290.4 kB / 284.6 MB, free: 6.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005699/0.01257, allocations: 0.7212 MB / 285.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004304/0.013, allocations: 0.5067 MB / 285.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.754e-05/0.0131, allocations: 116 kB / 285.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.01332, allocations: 175.9 kB / 286.1 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.01364, allocations: 0.6622 MB / 286.7 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.01399, allocations: 0.5258 MB / 287.3 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.01506, allocations: 1.464 MB / 288.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.01506, allocations: 0 / 288.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.01506, allocations: 4 kB / 288.7 MB, free: 1.852 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.01508, allocations: 0 / 288.7 MB, free: 1.852 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.1232/0.1382, allocations: 2.472 MB / 291.2 MB, free: 23.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1383, allocations: 12.03 kB / 291.2 MB, free: 23.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/0.1386, allocations: 273.9 kB / 291.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.1399, allocations: 1.072 MB / 292.6 MB, free: 22.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.14, allocations: 185.2 kB / 292.7 MB, free: 22.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.485e-05/0.14, allocations: 70.83 kB / 292.8 MB, free: 22.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.1408, allocations: 0.9265 MB / 293.7 MB, free: 21.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1408, allocations: 0 / 293.7 MB, free: 21.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.1408, allocations: 30.28 kB / 293.8 MB, free: 21.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.1408, allocations: 16.5 kB / 293.8 MB, free: 21.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002801/0.1411, allocations: 178.8 kB / 294 MB, free: 21.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/0.1441, allocations: 3.038 MB / 297 MB, free: 20.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004269/0.1445, allocations: 291.3 kB / 297.3 MB, free: 20.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.1448, allocations: 191.5 kB / 297.5 MB, free: 20.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.1448, allocations: 5.719 kB / 297.5 MB, free: 20.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.1448, allocations: 42.5 kB / 297.5 MB, free: 20.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.192e-06/0.1448, allocations: 1.062 kB / 297.5 MB, free: 20.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008618/0.1457, allocations: 0.5011 MB / 298 MB, free: 20.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.1457, allocations: 263.7 kB / 298.3 MB, free: 20.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.1478, allocations: 2.082 MB / 300.4 MB, free: 19.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.1478, allocations: 33.7 kB / 300.4 MB, free: 19.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006173/0.1485, allocations: 1.078 MB / 301.5 MB, free: 19.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.912e-05/0.1485, allocations: 125 kB / 301.6 MB, free: 18.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1486, allocations: 104.1 kB / 301.7 MB, free: 18.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.1487, allocations: 0.4954 MB / 302.2 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.378e-05/0.1488, allocations: 49.11 kB / 302.2 MB, free: 18.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.1489, allocations: 0.4895 MB / 302.7 MB, free: 17.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.1492, allocations: 302.2 kB / 303 MB, free: 17.67 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1492, allocations: 1.281 kB / 303 MB, free: 17.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005686/0.1498, allocations: 491.7 kB / 303.5 MB, free: 17.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1498, allocations: 12.3 kB / 303.5 MB, free: 17.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1498, allocations: 3.562 kB / 303.5 MB, free: 17.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001441/0.1499, allocations: 44.09 kB / 303.6 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.1501, allocations: 103 kB / 303.7 MB, free: 17.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007519/0.1509, allocations: 2.096 MB / 305.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.1512, allocations: 59.73 kB / 305.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.1512, allocations: 14.52 kB / 305.8 MB, free: 15.41 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.0001908/0.1514, allocations: 188.6 kB / 306 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.1516, allocations: 195.8 kB / 306.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.1518, allocations: 165.4 kB / 306.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1518, allocations: 7.219 kB / 306.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1518, allocations: 1.156 kB / 306.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1518, allocations: 3.484 kB / 306.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.1537, allocations: 1.403 MB / 307.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1537, allocations: 1.375 kB / 307.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.1539, allocations: 73.38 kB / 307.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.154, allocations: 46.97 kB / 307.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.1541, allocations: 12.47 kB / 307.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006938/0.1548, allocations: 2.051 MB / 310 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1548, allocations: 1.188 kB / 310 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007425/0.1555, allocations: 0.6348 MB / 310.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.1559, allocations: 298.4 kB / 310.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.156, allocations: 13.36 kB / 310.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.1564, allocations: 38.25 kB / 310.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.1564, allocations: 40.11 kB / 311 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.1565, allocations: 5.953 kB / 311 MB, free: 11.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001308/0.1578, allocations: 1.139 MB / 312.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1578, allocations: 0 / 312.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007606/0.1585, allocations: 273.3 kB / 312.4 MB, free: 11.44 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.00111/0.1596, allocations: 452.2 kB / 312.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004728/0.1601, allocations: 400.8 kB / 313.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1601, allocations: 0 / 313.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.1603, allocations: 294.8 kB / 313.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008041/0.1611, allocations: 269.4 kB / 313.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.1645, allocations: 2.809 MB / 316.6 MB, free: 8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1648, allocations: 415.4 kB / 317 MB, free: 7.566 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.1652, allocations: 174.8 kB / 317.2 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/0.1657, allocations: 354 kB / 317.5 MB, free: 7.043 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.1657, allocations: 0 / 317.5 MB, free: 7.043 MB / 266.7 MB Notification: Performance of Templates: time 0.02968/0.1954, allocations: 20.29 MB / 337.8 MB, free: 2.996 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.2485250872559845]