Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.0008648/0.0008648, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001396/0.001396, allocations: 150.2 kB / 24.9 MB, free: 8.781 MB / 18.57 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 0.9033/0.9033, allocations: 173.4 MB / 201.5 MB, free: 8.258 MB / 186.7 MB " [Timeout remaining time 179] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/1.965e-05, allocations: 2.312 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005074/0.005094, allocations: 5.322 MB / 273.8 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.007035, allocations: 1.738 MB / 275.6 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.007235, allocations: 23.88 kB / 275.6 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007856/0.008021, allocations: 0.5679 MB / 276.2 MB, free: 2.125 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003928/0.008413, allocations: 361.9 kB / 276.5 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.008863, allocations: 375.2 kB / 276.9 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006059/0.009468, allocations: 0.9079 MB / 277.8 MB, free: 500 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.009748, allocations: 231.2 kB / 278 MB, free: 260 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.01013, allocations: 0.5147 MB / 278.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.01045, allocations: 355.1 kB / 278.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.021e-05/0.01052, allocations: 80 kB / 278.9 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.01065, allocations: 119.9 kB / 279.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003141/0.01096, allocations: 0.5922 MB / 279.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.01127, allocations: 434.6 kB / 280.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009491/0.01222, allocations: 1.199 MB / 281.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.01222, allocations: 4 kB / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01222, allocations: 0 / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.01224, allocations: 0 / 281.3 MB, free: 12.96 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001538/0.01377, allocations: 1.9 MB / 283.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.01381, allocations: 11.97 kB / 283.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.01395, allocations: 144.8 kB / 283.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00078/0.01473, allocations: 0.814 MB / 284.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.044e-05/0.01481, allocations: 92.91 kB / 284.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.01487, allocations: 59.89 kB / 284.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.01537, allocations: 0.6835 MB / 285 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.01539, allocations: 4 kB / 285 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.01541, allocations: 24 kB / 285 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.01542, allocations: 12 kB / 285 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.01557, allocations: 118.8 kB / 285.1 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.01723, allocations: 1.876 MB / 287 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.01753, allocations: 198.2 kB / 287.2 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.01765, allocations: 85.17 kB / 287.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.01767, allocations: 7.938 kB / 287.3 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.01769, allocations: 38.56 kB / 287.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.313e-06/0.01769, allocations: 0 / 287.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004931/0.01819, allocations: 284.2 kB / 287.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.01826, allocations: 217.6 kB / 287.8 MB, free: 6.082 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.01947, allocations: 1.663 MB / 289.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.01949, allocations: 33.7 kB / 289.5 MB, free: 4.328 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.01971, allocations: 452.1 kB / 290 MB, free: 3.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.01976, allocations: 83.25 kB / 290 MB, free: 3.801 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.731e-05/0.01984, allocations: 69.98 kB / 290.1 MB, free: 3.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.01992, allocations: 321.9 kB / 290.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.191e-05/0.01996, allocations: 28.64 kB / 290.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.02013, allocations: 341.9 kB / 290.8 MB, free: 2.938 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.0203, allocations: 223.9 kB / 291 MB, free: 2.668 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.0203, allocations: 4 kB / 291 MB, free: 2.664 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002853/0.02059, allocations: 278.2 kB / 291.3 MB, free: 2.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.0206, allocations: 11.98 kB / 291.3 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.02061, allocations: 7.938 kB / 291.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/0.02074, allocations: 36.83 kB / 291.3 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.02089, allocations: 71.91 kB / 291.4 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007682/0.02166, allocations: 1.415 MB / 292.8 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.02182, allocations: 43.77 kB / 292.9 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.02184, allocations: 16 kB / 292.9 MB, free: 0.6914 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0001555/0.02199, allocations: 140 kB / 293 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.961e-05/0.02208, allocations: 103.9 kB / 293.1 MB, free: 456 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000305/0.02239, allocations: 276.5 kB / 293.4 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.02239, allocations: 3.984 kB / 293.4 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.02239, allocations: 0 / 293.4 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.0224, allocations: 0 / 293.4 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008498/0.02324, allocations: 0.8401 MB / 294.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.02325, allocations: 0 / 294.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.02335, allocations: 35.98 kB / 294.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.054e-05/0.02342, allocations: 28.83 kB / 294.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.02343, allocations: 4 kB / 294.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006585/0.02409, allocations: 1.387 MB / 295.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.02409, allocations: 0 / 295.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.02441, allocations: 372.7 kB / 296.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002236/0.02464, allocations: 214.8 kB / 296.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.468e-05/0.02471, allocations: 11.98 kB / 296.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.02487, allocations: 23.98 kB / 296.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.02493, allocations: 35.88 kB / 296.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.02494, allocations: 8 kB / 296.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007754/0.02571, allocations: 0.906 MB / 297.2 MB, free: 12.13 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.02571, allocations: 4 kB / 297.3 MB, free: 12.13 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003805/0.02609, allocations: 211.5 kB / 297.5 MB, free: 11.92 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009399/0.02703, allocations: 440.9 kB / 297.9 MB, free: 11.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003288/0.02736, allocations: 267.1 kB / 298.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-05/0.02738, allocations: 20 kB / 298.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.02755, allocations: 198.7 kB / 298.4 MB, free: 11.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.02806, allocations: 209.9 kB / 298.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.03064, allocations: 2.411 MB / 301 MB, free: 8.504 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.03089, allocations: 342 kB / 301.3 MB, free: 8.145 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000231/0.03112, allocations: 146.2 kB / 301.5 MB, free: 7.996 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003537/0.03147, allocations: 261.3 kB / 301.7 MB, free: 7.738 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.03147, allocations: 0 / 301.7 MB, free: 7.738 MB / 282.7 MB Notification: Performance of Templates: time 0.01947/0.05094, allocations: 16.46 MB / 318.2 MB, free: 7.465 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.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: 2.764574490953237]