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.00104/0.00104, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002825/0.003864, allocations: 449.7 kB / 10.37 MB, free: 332 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.0009191/0.0009191, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001401/0.00232, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9514/0.9514, allocations: 173.4 MB / 185.8 MB, free: 8.973 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08901/1.04, allocations: 52.49 MB / 238.3 MB, free: 4.418 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.062e-06/1.062e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.596e-05/1.702e-05, allocations: 2.312 kB / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005046/0.005063, allocations: 5.365 MB / 244.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.007725, allocations: 1.749 MB / 246.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004408/0.008166, allocations: 19.88 kB / 246.7 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.009205, allocations: 0.5251 MB / 247.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004631/0.009668, allocations: 369.8 kB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.01022, allocations: 375.2 kB / 247.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007924/0.01101, allocations: 0.9118 MB / 248.8 MB, free: 9.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002891/0.0113, allocations: 223.3 kB / 249 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000555/0.01186, allocations: 0.6171 MB / 249.7 MB, free: 8.996 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.01218, allocations: 359.1 kB / 250 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.656e-05/0.01225, allocations: 76 kB / 250.1 MB, free: 8.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.0124, allocations: 123.9 kB / 250.2 MB, free: 8.449 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003218/0.01272, allocations: 0.5572 MB / 250.8 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002825/0.01301, allocations: 330.9 kB / 251.1 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000866/0.01387, allocations: 1.171 MB / 252.3 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.334e-05/0.01389, allocations: 4 kB / 252.3 MB, free: 6.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.01389, allocations: 0 / 252.3 MB, free: 6.387 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.01391, allocations: 0 / 252.3 MB, free: 6.387 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.002028/0.01594, allocations: 2.15 MB / 254.4 MB, free: 4.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.661e-05/0.01597, allocations: 8.031 kB / 254.4 MB, free: 4.191 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.01614, allocations: 148.8 kB / 254.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.01703, allocations: 0.8101 MB / 255.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.0171, allocations: 88.97 kB / 255.5 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.01715, allocations: 59.89 kB / 255.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/0.01761, allocations: 0.6835 MB / 256.2 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.01762, allocations: 3.938 kB / 256.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.01765, allocations: 24 kB / 256.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.01766, allocations: 12 kB / 256.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.01779, allocations: 118.9 kB / 256.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.01951, allocations: 1.888 MB / 258.3 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.0198, allocations: 178.4 kB / 258.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.01993, allocations: 92.36 kB / 258.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.01995, allocations: 7.938 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.01997, allocations: 38.56 kB / 258.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.122e-06/0.01997, allocations: 0 / 258.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004848/0.02046, allocations: 294.2 kB / 258.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.145e-05/0.02048, allocations: 55.41 kB / 258.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.02176, allocations: 1.663 MB / 260.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.02178, allocations: 33.7 kB / 260.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.022, allocations: 448.1 kB / 261 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.345e-05/0.02204, allocations: 83.25 kB / 261.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.719e-05/0.02211, allocations: 73.94 kB / 261.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.825e-05/0.02218, allocations: 325.9 kB / 261.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.874e-05/0.02222, allocations: 28.64 kB / 261.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.02251, allocations: 350 kB / 261.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.02266, allocations: 220.4 kB / 262.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.02266, allocations: 8 kB / 262.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002778/0.02294, allocations: 277.9 kB / 262.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.02295, allocations: 8 kB / 262.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.02296, allocations: 4 kB / 262.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001202/0.02308, allocations: 32.84 kB / 262.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.02323, allocations: 88.27 kB / 262.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007929/0.02402, allocations: 1.402 MB / 263.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.02421, allocations: 47.75 kB / 263.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.02423, allocations: 16 kB / 264 MB, free: 10.05 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.0001789/0.0244, allocations: 140.6 kB / 264.1 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.038e-05/0.02449, allocations: 95.77 kB / 264.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.0248, allocations: 282.4 kB / 264.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.0248, allocations: 0 / 264.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.02e-07/0.0248, allocations: 0 / 264.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.0248, allocations: 0 / 264.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.02585, allocations: 0.8362 MB / 265.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.02585, allocations: 3.938 kB / 265.3 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.992e-05/0.02595, allocations: 39.97 kB / 265.4 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.02616, allocations: 222.7 kB / 265.6 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.978e-05/0.02623, allocations: 32.81 kB / 265.6 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.02624, allocations: 11.94 kB / 265.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005731/0.02682, allocations: 1.359 MB / 267 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.02682, allocations: 0 / 267 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003195/0.02714, allocations: 387.8 kB / 267.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.506e-05/0.0272, allocations: 4 kB / 267.4 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.02736, allocations: 31.97 kB / 267.4 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.02742, allocations: 27.95 kB / 267.4 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.02743, allocations: 11.98 kB / 267.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006989/0.02813, allocations: 0.91 MB / 268.3 MB, free: 5.477 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02813, allocations: 0 / 268.3 MB, free: 5.477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003875/0.02852, allocations: 203.6 kB / 268.5 MB, free: 5.277 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.001014/0.02953, allocations: 480.3 kB / 269 MB, free: 5.031 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.02982, allocations: 268.1 kB / 269.3 MB, free: 4.754 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.762e-05/0.02984, allocations: 20 kB / 269.3 MB, free: 4.734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.02997, allocations: 194.4 kB / 269.5 MB, free: 4.531 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.03047, allocations: 264.4 kB / 269.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004937/0.0354, allocations: 2.426 MB / 272.2 MB, free: 1.793 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.03565, allocations: 354 kB / 272.5 MB, free: 1.422 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003775/0.03602, allocations: 146.2 kB / 272.6 MB, free: 1.273 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.03635, allocations: 257.3 kB / 272.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.03635, allocations: 0 / 272.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of Templates: time 0.1297/0.166, allocations: 16.9 MB / 289.8 MB, free: 20.51 MB / 266.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0087633626535535]