Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.0007794/0.0007794, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002057/0.002836, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001181/0.001181, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001683/0.002864, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.004/1.004, allocations: 177.2 MB / 189.8 MB, free: 5.27 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09657/1.1, allocations: 53.67 MB / 243.4 MB, free: 15.52 MB / 250.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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 244.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.652e-05/2.806e-05, allocations: 6.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01593/0.01596, allocations: 10.74 MB / 255.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005647/0.0216, allocations: 3.96 MB / 259.4 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.02264, allocations: 39.75 kB / 259.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003137/0.02577, allocations: 2.45 MB / 261.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.02713, allocations: 488.2 kB / 262.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009221/0.02805, allocations: 0.5147 MB / 262.9 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00743/0.03548, allocations: 9.878 MB / 272.8 MB, free: 2.094 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.125/0.1605, allocations: 2.703 MB / 275.5 MB, free: 6.434 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009556/0.1701, allocations: 6.878 MB / 282.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007505/0.1776, allocations: 3.926 MB / 286.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003834/0.1814, allocations: 0.9117 MB / 287.2 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003863/0.1853, allocations: 0.973 MB / 288.1 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004418/0.1897, allocations: 5.335 MB / 293.5 MB, free: 5.707 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008321/0.198, allocations: 3.418 MB / 296.9 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/0.2131, allocations: 15.45 MB / 312.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.661e-05/0.2132, allocations: 0 / 312.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2132, allocations: 0 / 312.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0006192/0.2138, allocations: 0 / 312.3 MB, free: 6.141 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03287/0.2467, allocations: 19.36 MB / 331.7 MB, free: 3.625 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2467, allocations: 8.75 kB / 331.7 MB, free: 3.617 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003684/0.2504, allocations: 1.306 MB / 333 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02141/0.2718, allocations: 12.12 MB / 345.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/0.2724, allocations: 0.8613 MB / 346 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.2735, allocations: 437.4 kB / 346.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00709/0.2806, allocations: 5.858 MB / 352.3 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.665e-05/0.2806, allocations: 2.906 kB / 352.3 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004253/0.2811, allocations: 176 kB / 352.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.554e-05/0.2811, allocations: 100 kB / 352.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002168/0.2833, allocations: 0.9166 MB / 353.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/0.3139, allocations: 15.33 MB / 368.8 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001994/0.3159, allocations: 1.5 MB / 370.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.3174, allocations: 1.158 MB / 371.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.861e-05/0.3175, allocations: 37.98 kB / 371.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.3176, allocations: 80.44 kB / 371.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 4.619e-06/0.3176, allocations: 0 / 371.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=201): time 0.007567/0.3252, allocations: 2.767 MB / 374.3 MB, free: 9.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/0.3253, allocations: 81.84 kB / 374.4 MB, free: 8.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03377/0.3591, allocations: 18.32 MB / 392.7 MB, free: 6.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006872/0.3597, allocations: 73.7 kB / 392.8 MB, free: 6.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004209/0.3639, allocations: 3.353 MB / 396.2 MB, free: 3.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009458/0.3649, allocations: 0.7242 MB / 396.9 MB, free: 2.797 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006848/0.3656, allocations: 477 kB / 397.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.172e-05/0.3657, allocations: 309.1 kB / 397.7 MB, free: 2.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005308/0.3662, allocations: 248.8 kB / 397.9 MB, free: 1.773 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.3675, allocations: 2.426 MB / 400.3 MB, free: 14.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3689, allocations: 1.287 MB / 401.6 MB, free: 13.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3689, allocations: 4 kB / 401.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.004368/0.3733, allocations: 1.995 MB / 403.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.3733, allocations: 15.94 kB / 403.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.3734, allocations: 15.19 kB / 403.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006057/0.374, allocations: 252 kB / 403.9 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.3756, allocations: 0.7113 MB / 404.6 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003022/0.3787, allocations: 3.246 MB / 407.8 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/0.3825, allocations: 310.7 kB / 408.2 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/0.3828, allocations: 68 kB / 408.2 MB, free: 6.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].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 (272): * Single equations (assignments): 271 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.004786/0.3876, allocations: 306.5 kB / 408.5 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002736/0.3903, allocations: 0.8778 MB / 409.4 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004447/0.3948, allocations: 1.378 MB / 410.8 MB, free: 4.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.3948, allocations: 20 kB / 410.8 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3948, allocations: 7.984 kB / 410.8 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.3948, allocations: 11.97 kB / 410.8 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1607/0.5555, allocations: 6.543 MB / 417.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.5555, allocations: 3.656 kB / 417.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.5572, allocations: 0.5589 MB / 417.9 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005268/0.5625, allocations: 1.907 MB / 419.8 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005757/0.5631, allocations: 183 kB / 420 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.5632, allocations: 68.95 kB / 420.1 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.5657, allocations: 2.751 MB / 422.8 MB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5657, allocations: 0 / 422.8 MB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005982/0.5716, allocations: 2.478 MB / 425.3 MB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004072/0.5757, allocations: 80.23 kB / 425.4 MB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004758/0.5805, allocations: 225.8 kB / 425.6 MB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007022/0.5812, allocations: 226.6 kB / 425.8 MB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/0.5813, allocations: 41.69 kB / 425.9 MB, free: 99.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.02411/0.6055, allocations: 9.825 MB / 435.7 MB, free: 98.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6055, allocations: 0 / 435.7 MB, free: 98.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006886/0.6123, allocations: 1.876 MB / 437.6 MB, free: 98.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (171): * Single equations (assignments): 170 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001938/0.6143, allocations: 0.7383 MB / 438.3 MB, free: 98.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002353/0.6166, allocations: 1.512 MB / 439.8 MB, free: 97.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002936/0.6169, allocations: 195.9 kB / 440 MB, free: 97.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.6181, allocations: 1.009 MB / 441 MB, free: 97.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01592/0.6341, allocations: 17.46 MB / 458.5 MB, free: 82.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07434/0.7084, allocations: 29.09 MB / 487.6 MB, free: 55.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006273/0.7147, allocations: 3.583 MB / 491.1 MB, free: 51.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006469/0.7211, allocations: 1.605 MB / 492.7 MB, free: 49.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006461/0.7276, allocations: 2.158 MB / 494.9 MB, free: 47.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.7276, allocations: 0 / 494.9 MB, free: 47.72 MB / 378.7 MB Notification: Performance of Templates: time 0.42/1.148, allocations: 152 MB / 0.6317 GB, free: 83.9 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.870932413265109]