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.001825/0.001825, allocations: 80.95 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001912/0.001912, allocations: 146.5 kB / 23.94 MB, free: 4.16 MB / 14.72 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.464/1.464, allocations: 173.4 MB / 200.4 MB, free: 12.85 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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.923e-06/1.923e-06, allocations: 0 / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.666e-05/2.858e-05, allocations: 2.281 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005911/0.00594, allocations: 5.354 MB / 324.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003888/0.009827, allocations: 2.027 MB / 326.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004276/0.01025, allocations: 20.12 kB / 326.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.01183, allocations: 0.6183 MB / 326.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009874/0.01281, allocations: 421.7 kB / 327.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009995/0.01381, allocations: 418.1 kB / 327.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001955/0.01577, allocations: 1.344 MB / 329.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006558/0.01642, allocations: 295.6 kB / 329.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.01761, allocations: 0.7154 MB / 330.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008785/0.01848, allocations: 0.512 MB / 330.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.01866, allocations: 119.1 kB / 330.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.01903, allocations: 176.4 kB / 330.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007695/0.0198, allocations: 0.6596 MB / 331.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009278/0.02073, allocations: 0.5278 MB / 332.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003457/0.02418, allocations: 2.579 MB / 334.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.02419, allocations: 0 / 334.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.02419, allocations: 1.125 kB / 334.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.48e-05/0.02427, allocations: 0 / 334.7 MB, free: 10.18 MB / 302.1 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.005782/0.03005, allocations: 2.34 MB / 337 MB, free: 8.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.0301, allocations: 9.297 kB / 337 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005015/0.03061, allocations: 229.3 kB / 337.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003234/0.03384, allocations: 1.621 MB / 338.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/0.03412, allocations: 187.6 kB / 339 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.03425, allocations: 64.41 kB / 339.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.03634, allocations: 1.178 MB / 340.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.03636, allocations: 3.984 kB / 340.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.03645, allocations: 28 kB / 340.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.03647, allocations: 16 kB / 340.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.03765, allocations: 0.5439 MB / 340.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007602/0.04525, allocations: 3.495 MB / 344.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.04668, allocations: 0.5071 MB / 344.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008396/0.04752, allocations: 341 kB / 345.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.04755, allocations: 4.281 kB / 345.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.304e-05/0.0476, allocations: 46.83 kB / 345.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.934e-06/0.0476, allocations: 0 / 345.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002783/0.05038, allocations: 0.8662 MB / 346.1 MB, free: 44 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/0.05056, allocations: 269 kB / 346.4 MB, free: 15.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005274/0.05584, allocations: 3.103 MB / 349.5 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.05596, allocations: 33.7 kB / 349.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009488/0.05691, allocations: 0.8766 MB / 350.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.05708, allocations: 123 kB / 350.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.05726, allocations: 94.14 kB / 350.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.05742, allocations: 322 kB / 350.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005309/0.05795, allocations: 208.9 kB / 351.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007728/0.05873, allocations: 0.585 MB / 351.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.0598, allocations: 0.5204 MB / 352.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.0598, allocations: 0 / 352.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002013/0.06182, allocations: 0.778 MB / 353 MB, free: 8.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.06184, allocations: 4 kB / 353 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.06185, allocations: 4 kB / 353 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000341/0.06219, allocations: 72.75 kB / 353.1 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.0627, allocations: 115.8 kB / 353.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.06472, allocations: 1.668 MB / 354.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007563/0.06548, allocations: 79.67 kB / 354.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.06551, allocations: 19.94 kB / 355 MB, free: 6.777 MB / 318.1 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.001092/0.0666, allocations: 0.6537 MB / 355.6 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.06695, allocations: 186.8 kB / 355.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.06731, allocations: 214 kB / 356 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.06731, allocations: 0 / 356 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.06732, allocations: 7.938 kB / 356 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.06732, allocations: 0 / 356 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.07086, allocations: 1.824 MB / 357.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.07086, allocations: 0 / 357.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.07131, allocations: 87.94 kB / 357.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.0715, allocations: 56.83 kB / 358 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.07153, allocations: 11.98 kB / 358 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/0.07333, allocations: 1.606 MB / 359.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.07333, allocations: 4.031 kB / 359.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.07545, allocations: 0.968 MB / 360.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007614/0.07622, allocations: 374.6 kB / 360.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.07638, allocations: 12 kB / 360.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.07697, allocations: 47.95 kB / 361 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.07709, allocations: 55.8 kB / 361 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.07712, allocations: 12 kB / 361.1 MB, free: 496 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003377/0.0805, allocations: 2.203 MB / 363.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0805, allocations: 0 / 363.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001071/0.08157, allocations: 259.6 kB / 363.5 MB, free: 14.01 MB / 334.1 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.00198/0.08355, allocations: 0.4981 MB / 364 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.08504, allocations: 0.5858 MB / 364.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.08505, allocations: 0 / 364.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007687/0.08582, allocations: 351.9 kB / 364.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.08719, allocations: 262.1 kB / 365.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.09403, allocations: 3.575 MB / 368.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.09524, allocations: 0.904 MB / 369.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007325/0.09597, allocations: 286.8 kB / 370 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.09624, allocations: 88.5 kB / 370 MB, free: 7.574 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.09624, allocations: 4 kB / 370 MB, free: 7.57 MB / 334.1 MB Notification: Performance of Templates: time 0.03823/0.1345, allocations: 19.1 MB / 389.1 MB, free: 4.645 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1305203549563885]