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.001637/0.001637, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002149/0.002149, allocations: 184.3 kB / 23.71 MB, free: 4.695 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.557/1.557, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.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 0.001519/0.001519, allocations: 47.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2961, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00841/0.3045, allocations: 6.071 MB / 429.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.3084, allocations: 2.174 MB / 431.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006748/0.3091, allocations: 27.75 kB / 431.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.3106, allocations: 0.6224 MB / 432 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008822/0.3115, allocations: 417.8 kB / 432.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009311/0.3124, allocations: 402.3 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001593/0.314, allocations: 1.309 MB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005444/0.3146, allocations: 306.3 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006037/0.3152, allocations: 0.4984 MB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007404/0.3159, allocations: 0.6111 MB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.3161, allocations: 116 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000321/0.3164, allocations: 168 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005582/0.317, allocations: 0.6661 MB / 436.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008632/0.3178, allocations: 0.8816 MB / 437.3 MB, free: 368 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002686/0.3205, allocations: 2.638 MB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3205, allocations: 4 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3205, allocations: 3.938 kB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.516e-05/0.3206, allocations: 0 / 440 MB, free: 13.7 MB / 350.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.004346/0.3249, allocations: 2.347 MB / 442.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.325, allocations: 15.97 kB / 442.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003366/0.3253, allocations: 219.5 kB / 442.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/0.3293, allocations: 1.636 MB / 444.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.3295, allocations: 108.7 kB / 444.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.3296, allocations: 60 kB / 444.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.3312, allocations: 0.8258 MB / 445.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.3312, allocations: 4 kB / 445.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.582e-05/0.3313, allocations: 31.98 kB / 445.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.3313, allocations: 16 kB / 445.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.3324, allocations: 0.5477 MB / 445.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00654/0.339, allocations: 3.934 MB / 449.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.3404, allocations: 0.5013 MB / 450.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008409/0.3413, allocations: 346.1 kB / 450.6 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.3413, allocations: 4.281 kB / 450.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.3414, allocations: 38.84 kB / 450.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.3414, allocations: 0 / 450.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00274/0.3441, allocations: 0.8778 MB / 451.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.3443, allocations: 268.9 kB / 451.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004614/0.3489, allocations: 3.148 MB / 454.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.874e-05/0.3489, allocations: 37.7 kB / 454.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009089/0.3499, allocations: 0.8653 MB / 455.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.35, allocations: 123 kB / 455.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.3502, allocations: 90.14 kB / 456 MB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3503, allocations: 330 kB / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.3508, allocations: 212.9 kB / 456.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006653/0.3515, allocations: 384.9 kB / 456.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.3526, allocations: 0.5206 MB / 457.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3526, allocations: 4 kB / 457.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00184/0.3544, allocations: 0.7817 MB / 458.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3544, allocations: 11.38 kB / 458.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3544, allocations: 8 kB / 458.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003482/0.3548, allocations: 64.81 kB / 458.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.3553, allocations: 120 kB / 458.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.3572, allocations: 1.683 MB / 460.1 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007969/0.358, allocations: 79.69 kB / 460.2 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.3581, allocations: 20 kB / 460.2 MB, free: 8.809 MB / 366.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.001018/0.3591, allocations: 0.6576 MB / 460.9 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/0.3594, allocations: 198.7 kB / 461 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003204/0.3597, allocations: 214.5 kB / 461.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3597, allocations: 11.88 kB / 461.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3597, allocations: 3.938 kB / 461.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3597, allocations: 7.984 kB / 461.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0038/0.3635, allocations: 2.111 MB / 463.4 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3635, allocations: 4.062 kB / 463.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.364, allocations: 84.06 kB / 463.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002129/0.3642, allocations: 68.69 kB / 463.5 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.3642, allocations: 8 kB / 463.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.3659, allocations: 1.641 MB / 465.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3659, allocations: 0 / 465.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.368, allocations: 0.9806 MB / 466.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.369, allocations: 378.6 kB / 466.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.3692, allocations: 8 kB / 466.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.3698, allocations: 51.95 kB / 466.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3699, allocations: 43.92 kB / 466.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.3699, allocations: 12 kB / 466.7 MB, free: 2.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003412/0.3733, allocations: 2.243 MB / 468.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3733, allocations: 0 / 468.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009716/0.3743, allocations: 263.6 kB / 469.2 MB, free: 15.61 MB / 382.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.001815/0.3761, allocations: 483.1 kB / 469.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.3777, allocations: 0.5901 MB / 470.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.3777, allocations: 0 / 470.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/0.3785, allocations: 355.1 kB / 470.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/0.3803, allocations: 286.9 kB / 470.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008507/0.3888, allocations: 3.695 MB / 474.5 MB, free: 10.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001879/0.3907, allocations: 1.488 MB / 476 MB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.3917, allocations: 303.1 kB / 476.3 MB, free: 8.512 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.392, allocations: 95.44 kB / 476.4 MB, free: 8.418 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.392, allocations: 4 kB / 476.4 MB, free: 8.414 MB / 382.1 MB Notification: Performance of Templates: time 0.03677/0.4287, allocations: 17.77 MB / 494.2 MB, free: 6.793 MB / 398.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.685514901764691]