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.0007873/0.0007873, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001103/0.001891, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006257/0.0006257, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009425/0.001568, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8397/0.8397, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1509/0.9905, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.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.021e-06/1.021e-06, allocations: 0 / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.086e-05, allocations: 2.312 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004798/0.004819, allocations: 5.368 MB / 245.1 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.006599, allocations: 1.733 MB / 246.8 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.006789, allocations: 19.88 kB / 246.9 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006354/0.007425, allocations: 0.5336 MB / 247.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000325/0.00775, allocations: 371.7 kB / 247.7 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.008138, allocations: 373.6 kB / 248.1 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005738/0.008712, allocations: 0.9118 MB / 249 MB, free: 13.06 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.008973, allocations: 224 kB / 249.2 MB, free: 12.83 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004278/0.009401, allocations: 0.6093 MB / 249.9 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.009688, allocations: 369 kB / 250.2 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.403e-05/0.009752, allocations: 76 kB / 250.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.009881, allocations: 115.9 kB / 250.4 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.01014, allocations: 0.5572 MB / 251 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.01036, allocations: 332.4 kB / 251.3 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007301/0.01109, allocations: 1.171 MB / 252.5 MB, free: 9.617 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.467e-06/0.0111, allocations: 0 / 252.5 MB, free: 9.617 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.0111, allocations: 0 / 252.5 MB, free: 9.617 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.01112, allocations: 0.625 kB / 252.5 MB, free: 9.617 MB / 250.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.001593/0.01271, allocations: 2.157 MB / 254.6 MB, free: 7.426 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.01274, allocations: 8.031 kB / 254.6 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.01287, allocations: 140.8 kB / 254.8 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.01358, allocations: 0.8127 MB / 255.6 MB, free: 6.441 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.848e-05/0.01365, allocations: 89.47 kB / 255.7 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.0137, allocations: 64.73 kB / 255.7 MB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/0.01415, allocations: 0.6929 MB / 256.4 MB, free: 5.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.01417, allocations: 0 / 256.4 MB, free: 5.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.0142, allocations: 20 kB / 256.4 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.01421, allocations: 16 kB / 256.4 MB, free: 5.445 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.01434, allocations: 118.9 kB / 256.6 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.01588, allocations: 1.876 MB / 258.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.01617, allocations: 186.4 kB / 258.6 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.01629, allocations: 93.17 kB / 258.7 MB, free: 3.094 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.01632, allocations: 11.88 kB / 258.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.01634, allocations: 38.55 kB / 258.8 MB, free: 3.035 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.01634, allocations: 0 / 258.8 MB, free: 3.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.000457/0.01679, allocations: 284.2 kB / 259 MB, free: 2.75 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.01682, allocations: 55.41 kB / 259.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.01794, allocations: 1.682 MB / 260.8 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.01796, allocations: 29.7 kB / 260.8 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.01816, allocations: 448.1 kB / 261.2 MB, free: 480 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.0182, allocations: 83.31 kB / 261.3 MB, free: 396 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.01826, allocations: 66 kB / 261.4 MB, free: 324 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.01834, allocations: 325.9 kB / 261.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.01838, allocations: 24.66 kB / 261.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.01853, allocations: 349.9 kB / 262.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/0.01868, allocations: 222.5 kB / 262.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01869, allocations: 0 / 262.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002652/0.01895, allocations: 286.2 kB / 262.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.01896, allocations: 11.94 kB / 262.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.01897, allocations: 4 kB / 262.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001227/0.01909, allocations: 36.83 kB / 262.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.01924, allocations: 75.89 kB / 262.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007197/0.01996, allocations: 1.422 MB / 264.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.02014, allocations: 51.72 kB / 264.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.02015, allocations: 11.94 kB / 264.2 MB, free: 13.26 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.0001563/0.02031, allocations: 152.2 kB / 264.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.02039, allocations: 83.89 kB / 264.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003018/0.02069, allocations: 292.5 kB / 264.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.02069, allocations: 4 kB / 264.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.0207, allocations: 0 / 264.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.0207, allocations: 3.984 kB / 264.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008119/0.02151, allocations: 0.8246 MB / 265.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.02151, allocations: 0 / 265.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.02162, allocations: 47.92 kB / 265.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.02183, allocations: 214.7 kB / 265.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.469e-05/0.02191, allocations: 28.84 kB / 265.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.02192, allocations: 7.984 kB / 265.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006569/0.02258, allocations: 1.379 MB / 267.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.02258, allocations: 3.938 kB / 267.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.02289, allocations: 372 kB / 267.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.02295, allocations: 4 kB / 267.6 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.02312, allocations: 31.97 kB / 267.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.417e-05/0.02317, allocations: 39.83 kB / 267.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-06/0.02318, allocations: 4 kB / 267.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006687/0.02385, allocations: 0.9099 MB / 268.6 MB, free: 8.688 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02385, allocations: 0 / 268.6 MB, free: 8.688 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003675/0.02421, allocations: 215.6 kB / 268.8 MB, free: 8.477 MB / 266.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.0009721/0.02519, allocations: 480.7 kB / 269.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.02549, allocations: 271.1 kB / 269.5 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/0.0255, allocations: 20 kB / 269.5 MB, free: 7.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.02565, allocations: 202.4 kB / 269.7 MB, free: 7.723 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008594/0.02651, allocations: 1.375 MB / 271.1 MB, free: 6.145 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.03125, allocations: 2.407 MB / 273.5 MB, free: 3.684 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.03148, allocations: 346 kB / 273.8 MB, free: 3.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000217/0.0317, allocations: 150.1 kB / 274 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.03204, allocations: 257.3 kB / 274.2 MB, free: 2.918 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.03204, allocations: 0 / 274.2 MB, free: 2.918 MB / 266.7 MB Notification: Performance of Templates: time 0.01882/0.05087, allocations: 16.91 MB / 291.1 MB, free: 2.176 MB / 282.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.78206714335829]