Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.0009143/0.0009143, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009602/0.0009602, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.8724/0.8724, allocations: 177.1 MB / 205.3 MB, free: 4.488 MB / 186.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 273.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132e-05/1.248e-05, allocations: 4.281 kB / 273.4 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004753/0.004765, allocations: 5.33 MB / 278.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.006863, allocations: 1.886 MB / 280.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.007089, allocations: 19.88 kB / 280.7 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006865/0.007775, allocations: 0.5172 MB / 281.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004735/0.008249, allocations: 409.6 kB / 281.6 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.008696, allocations: 371.3 kB / 281.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.00932, allocations: 0.9157 MB / 282.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.009584, allocations: 235.2 kB / 283.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.009969, allocations: 0.5185 MB / 283.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002989/0.01027, allocations: 355.1 kB / 284 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.01033, allocations: 80 kB / 284 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.01045, allocations: 119.9 kB / 284.2 MB, free: 9.691 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000279/0.01073, allocations: 0.5922 MB / 284.7 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002652/0.011, allocations: 442.6 kB / 285.2 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007766/0.01177, allocations: 1.199 MB / 286.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.01178, allocations: 0 / 286.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.01178, allocations: 0 / 286.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.01179, allocations: 4 kB / 286.4 MB, free: 7.457 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.001505/0.01329, allocations: 1.904 MB / 288.3 MB, free: 5.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.01332, allocations: 12.03 kB / 288.3 MB, free: 5.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.01346, allocations: 140.8 kB / 288.4 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/0.01419, allocations: 0.8297 MB / 289.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.267e-05/0.01426, allocations: 96.91 kB / 289.4 MB, free: 4.402 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.01431, allocations: 55.94 kB / 289.4 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004673/0.01478, allocations: 0.6835 MB / 290.1 MB, free: 3.555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.01479, allocations: 3.984 kB / 290.1 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.01481, allocations: 20 kB / 290.1 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01482, allocations: 16 kB / 290.1 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.01496, allocations: 114.8 kB / 290.2 MB, free: 3.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.01657, allocations: 1.876 MB / 292.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.01685, allocations: 190.4 kB / 292.3 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.01698, allocations: 89.17 kB / 292.4 MB, free: 1.168 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.017, allocations: 7.938 kB / 292.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.01702, allocations: 34.56 kB / 292.4 MB, free: 1.117 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.01702, allocations: 0 / 292.4 MB, free: 1.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004787/0.0175, allocations: 292.2 kB / 292.7 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.01756, allocations: 209.6 kB / 292.9 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.01875, allocations: 1.675 MB / 294.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.01877, allocations: 33.7 kB / 294.6 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.01899, allocations: 456.3 kB / 295.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.01904, allocations: 83.25 kB / 295.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.708e-05/0.0191, allocations: 65.95 kB / 295.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.258e-05/0.01918, allocations: 325.9 kB / 295.5 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.171e-05/0.01922, allocations: 28.64 kB / 295.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.01938, allocations: 349.9 kB / 295.9 MB, free: 13.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.01954, allocations: 215.8 kB / 296.1 MB, free: 13.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.01954, allocations: 0 / 296.1 MB, free: 13.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002792/0.01982, allocations: 290.4 kB / 296.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.01983, allocations: 8 kB / 296.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01984, allocations: 4 kB / 296.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.01996, allocations: 32.84 kB / 296.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.02009, allocations: 63.91 kB / 296.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007326/0.02082, allocations: 1.422 MB / 297.9 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.02099, allocations: 43.77 kB / 298 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.02101, allocations: 12 kB / 298 MB, free: 11.18 MB / 282.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.0001549/0.02116, allocations: 136.5 kB / 298.1 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.02125, allocations: 99.81 kB / 298.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.02156, allocations: 281.5 kB / 298.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.02156, allocations: 4 kB / 298.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.02156, allocations: 0 / 298.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.02156, allocations: 0 / 298.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008512/0.02242, allocations: 0.8402 MB / 299.3 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.02242, allocations: 0 / 299.3 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.523e-05/0.02251, allocations: 35.97 kB / 299.4 MB, free: 9.734 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.366e-05/0.02259, allocations: 32.83 kB / 299.4 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.0226, allocations: 0 / 299.4 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000616/0.02321, allocations: 1.379 MB / 300.8 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.02321, allocations: 0 / 300.8 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003174/0.02353, allocations: 372.7 kB / 301.2 MB, free: 7.848 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.02376, allocations: 218.8 kB / 301.4 MB, free: 7.633 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.192e-05/0.02383, allocations: 8.062 kB / 301.4 MB, free: 7.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.02399, allocations: 23.98 kB / 301.4 MB, free: 7.602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.836e-05/0.02404, allocations: 39.88 kB / 301.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.02405, allocations: 4 kB / 301.4 MB, free: 7.559 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007128/0.02477, allocations: 0.9182 MB / 302.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02477, allocations: 0 / 302.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000386/0.02515, allocations: 211.5 kB / 302.6 MB, free: 6.402 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.0008577/0.02601, allocations: 457.9 kB / 303 MB, free: 6.148 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003059/0.02632, allocations: 269.7 kB / 303.3 MB, free: 5.875 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/0.02633, allocations: 20 kB / 303.3 MB, free: 5.855 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.02647, allocations: 195.3 kB / 303.5 MB, free: 5.648 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.02693, allocations: 194.7 kB / 303.7 MB, free: 5.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.02936, allocations: 2.391 MB / 306.1 MB, free: 3.012 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.0296, allocations: 346 kB / 306.4 MB, free: 2.648 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002152/0.02981, allocations: 154.1 kB / 306.6 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.03014, allocations: 257.3 kB / 306.8 MB, free: 2.238 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.03014, allocations: 0 / 306.8 MB, free: 2.238 MB / 282.7 MB Notification: Performance of Templates: time 0.01889/0.04904, allocations: 16.46 MB / 323.3 MB, free: 1.957 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.839475970249623]