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.00172/0.00172, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001928/0.001928, allocations: 189.2 kB / 24.47 MB, free: 4.168 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.46/1.46, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001661/0.001661, allocations: 51.92 kB / 371.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.238, allocations: 52.17 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008193/0.2462, allocations: 6.088 MB / 430 MB, free: 8.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.25, allocations: 2.159 MB / 432.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005856/0.2506, allocations: 19.88 kB / 432.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.2521, allocations: 0.6263 MB / 432.8 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.2532, allocations: 417.8 kB / 433.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009518/0.2541, allocations: 410.3 kB / 433.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.2559, allocations: 1.308 MB / 434.9 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006812/0.2566, allocations: 311.9 kB / 435.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008099/0.2574, allocations: 0.4945 MB / 435.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009813/0.2584, allocations: 0.6073 MB / 436.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.2585, allocations: 119.9 kB / 436.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003312/0.2589, allocations: 175.9 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005821/0.2594, allocations: 0.6544 MB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008761/0.2603, allocations: 0.8855 MB / 438.1 MB, free: 384 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002828/0.2632, allocations: 2.638 MB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2632, allocations: 0 / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2632, allocations: 4 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.598e-05/0.2632, allocations: 0 / 440.8 MB, free: 13.72 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.004288/0.2675, allocations: 2.358 MB / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2675, allocations: 8.031 kB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.2679, allocations: 223.5 kB / 443.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.2708, allocations: 1.64 MB / 445 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.271, allocations: 181.8 kB / 445.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.2711, allocations: 60 kB / 445.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.2726, allocations: 0.8293 MB / 446 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.2726, allocations: 0 / 446 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.73e-05/0.2727, allocations: 32 kB / 446.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.2727, allocations: 12 kB / 446.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.2739, allocations: 0.5516 MB / 446.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.2799, allocations: 3.942 MB / 450.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2812, allocations: 0.5 MB / 451.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007572/0.282, allocations: 338.1 kB / 451.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.282, allocations: 4.281 kB / 451.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.282, allocations: 46.78 kB / 451.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.523e-06/0.282, allocations: 0 / 451.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002319/0.2844, allocations: 0.8739 MB / 452.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.2845, allocations: 269 kB / 452.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004139/0.2887, allocations: 3.144 MB / 455.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.826e-05/0.2887, allocations: 37.7 kB / 455.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008878/0.2896, allocations: 0.8692 MB / 456.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2897, allocations: 119 kB / 456.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.2899, allocations: 94.14 kB / 456.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.29, allocations: 326 kB / 457.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/0.2905, allocations: 208.9 kB / 457.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006383/0.2912, allocations: 396.9 kB / 457.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009922/0.2922, allocations: 0.5168 MB / 458.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2922, allocations: 0 / 458.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001608/0.2938, allocations: 0.7817 MB / 459.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2938, allocations: 8 kB / 459.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.2938, allocations: 7.938 kB / 459.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/0.2941, allocations: 72.8 kB / 459.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/0.2946, allocations: 116 kB / 459.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.2965, allocations: 1.695 MB / 461 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006655/0.2972, allocations: 79.81 kB / 461 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.2972, allocations: 20 kB / 461.1 MB, free: 8.719 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.0009635/0.2982, allocations: 0.6537 MB / 461.7 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.2984, allocations: 194.7 kB / 461.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003123/0.2988, allocations: 218.5 kB / 462.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2988, allocations: 4 kB / 462.1 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2988, allocations: 0 / 462.1 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2988, allocations: 3.984 kB / 462.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003783/0.3026, allocations: 2.115 MB / 464.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3026, allocations: 4 kB / 464.2 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.303, allocations: 83.94 kB / 464.3 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/0.3032, allocations: 64.75 kB / 464.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.3032, allocations: 8 kB / 464.4 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001753/0.305, allocations: 1.645 MB / 466 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.305, allocations: 4.156 kB / 466 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.307, allocations: 0.9805 MB / 467 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008522/0.3078, allocations: 370.6 kB / 467.4 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.308, allocations: 12 kB / 467.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/0.3085, allocations: 55.95 kB / 467.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3087, allocations: 39.92 kB / 467.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.3087, allocations: 12 kB / 467.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003285/0.312, allocations: 2.243 MB / 469.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.312, allocations: 4 kB / 469.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009307/0.3129, allocations: 259.6 kB / 470 MB, free: 15.54 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.00177/0.3147, allocations: 480.5 kB / 470.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.3161, allocations: 0.5979 MB / 471.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3161, allocations: 4 kB / 471.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006983/0.3168, allocations: 355.1 kB / 471.4 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.3182, allocations: 278.2 kB / 471.7 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006926/0.3251, allocations: 3.787 MB / 475.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.3265, allocations: 1.488 MB / 477 MB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.327, allocations: 95.42 kB / 477.1 MB, free: 8.547 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.327, allocations: 0 / 477.1 MB, free: 8.547 MB / 382.1 MB Notification: Performance of Templates: time 0.04417/0.3712, allocations: 29.63 MB / 0.4948 GB, free: 10.97 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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: 9.566944292047992]