Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.0009959/0.0009959, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001202/0.001202, allocations: 171 kB / 25.61 MB, free: 8.582 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.936/0.936, allocations: 177.1 MB / 206 MB, free: 4.477 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.638e-05, allocations: 2.312 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005656/0.005682, allocations: 5.814 MB / 280 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.008705, allocations: 2.252 MB / 282.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003354/0.009041, allocations: 19.88 kB / 282.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009662/0.01001, allocations: 0.6221 MB / 282.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006099/0.01062, allocations: 465.3 kB / 283.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005523/0.01117, allocations: 411.2 kB / 283.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008844/0.01205, allocations: 1.336 MB / 285.1 MB, free: 9.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.01237, allocations: 290.3 kB / 285.4 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004995/0.01287, allocations: 0.7251 MB / 286.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003894/0.01326, allocations: 0.5067 MB / 286.6 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.977e-05/0.01335, allocations: 116 kB / 286.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.01352, allocations: 171.9 kB / 286.9 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003067/0.01382, allocations: 0.67 MB / 287.5 MB, free: 7.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.01417, allocations: 0.5219 MB / 288.1 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.01535, allocations: 1.464 MB / 289.5 MB, free: 5.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.01535, allocations: 0 / 289.5 MB, free: 5.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.01535, allocations: 0 / 289.5 MB, free: 5.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.01537, allocations: 4 kB / 289.5 MB, free: 5.016 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001897/0.01726, allocations: 2.48 MB / 292 MB, free: 2.484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.211e-05/0.01728, allocations: 8.031 kB / 292 MB, free: 2.477 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.0175, allocations: 275.5 kB / 292.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008866/0.01839, allocations: 1.079 MB / 293.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.01847, allocations: 182.4 kB / 293.5 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.01854, allocations: 67.94 kB / 293.6 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006527/0.01919, allocations: 0.9254 MB / 294.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.0192, allocations: 7.938 kB / 294.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.646e-05/0.01924, allocations: 24 kB / 294.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.01925, allocations: 20 kB / 294.6 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.01948, allocations: 181 kB / 294.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.0222, allocations: 3.036 MB / 297.8 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.02259, allocations: 284.8 kB / 298.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.02284, allocations: 196.1 kB / 298.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.02285, allocations: 4.281 kB / 298.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.02287, allocations: 45.61 kB / 298.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 1.143e-06/0.02288, allocations: 4 kB / 298.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006987/0.02357, allocations: 497.2 kB / 298.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/0.02365, allocations: 261 kB / 299.1 MB, free: 10.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.02532, allocations: 2.093 MB / 301.1 MB, free: 8.848 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.02535, allocations: 33.7 kB / 301.2 MB, free: 8.809 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000662/0.02601, allocations: 1.077 MB / 302.3 MB, free: 7.723 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.02608, allocations: 126.9 kB / 302.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003812/0.02646, allocations: 99.77 kB / 302.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.02657, allocations: 0.5003 MB / 303 MB, free: 6.984 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.802e-05/0.02665, allocations: 52.89 kB / 303 MB, free: 6.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.02689, allocations: 495 kB / 303.5 MB, free: 6.297 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.02713, allocations: 302.5 kB / 303.8 MB, free: 5.934 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.02713, allocations: 7.984 kB / 303.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004654/0.0276, allocations: 483.7 kB / 304.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.02761, allocations: 8 kB / 304.3 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.02762, allocations: 8 kB / 304.3 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001211/0.02774, allocations: 43.66 kB / 304.3 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.02797, allocations: 107.8 kB / 304.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009315/0.0289, allocations: 2.091 MB / 306.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.02913, allocations: 63.61 kB / 306.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.02916, allocations: 19.94 kB / 306.6 MB, free: 2.988 MB / 282.7 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 (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 (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.0001957/0.02935, allocations: 188.5 kB / 306.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.0295, allocations: 194.8 kB / 307 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.02964, allocations: 162.2 kB / 307.2 MB, free: 2.441 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.02964, allocations: 4 kB / 307.2 MB, free: 2.438 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.02964, allocations: 0 / 307.2 MB, free: 2.438 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.02965, allocations: 0 / 307.2 MB, free: 2.438 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.03109, allocations: 1.412 MB / 308.6 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.0311, allocations: 4 kB / 308.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.03128, allocations: 75.89 kB / 308.7 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.771e-05/0.03136, allocations: 39.66 kB / 308.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.03137, allocations: 8 kB / 308.7 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.0326, allocations: 2.052 MB / 310.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.0326, allocations: 0 / 310.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005632/0.03316, allocations: 0.6378 MB / 311.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.03348, allocations: 290.6 kB / 311.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.273e-05/0.03357, allocations: 15.98 kB / 311.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.0338, allocations: 36.16 kB / 311.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.03387, allocations: 35.94 kB / 311.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.03389, allocations: 16 kB / 311.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009693/0.03486, allocations: 1.137 MB / 312.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03486, allocations: 7.938 kB / 312.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005168/0.03538, allocations: 259.6 kB / 313.2 MB, free: 12.21 MB / 298.7 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.0009233/0.0363, allocations: 446.4 kB / 313.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004262/0.03673, allocations: 416 kB / 314 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.03673, allocations: 0 / 314 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.03695, allocations: 289.3 kB / 314.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/0.03758, allocations: 264.9 kB / 314.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.04083, allocations: 2.821 MB / 317.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.04111, allocations: 411.4 kB / 317.8 MB, free: 7.641 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.04139, allocations: 170.8 kB / 317.9 MB, free: 7.469 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/0.04184, allocations: 350.1 kB / 318.3 MB, free: 7.125 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.04184, allocations: 0 / 318.3 MB, free: 7.125 MB / 298.7 MB Notification: Performance of Templates: time 0.02367/0.06551, allocations: 20.74 MB / 339 MB, free: 2.582 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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: 3.1399915642105043]