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.001104/0.001104, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001748/0.002852, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001082/0.001082, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001444/0.002526, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9562/0.9562, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08711/1.043, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.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.402e-06/1.402e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.047e-05/1.187e-05, allocations: 5.969 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006412/0.006424, allocations: 5.911 MB / 250.6 MB, free: 8.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.009047, allocations: 2.341 MB / 253 MB, free: 5.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/0.009287, allocations: 19.88 kB / 253 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008553/0.01014, allocations: 0.6455 MB / 253.6 MB, free: 5.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004758/0.01062, allocations: 461.3 kB / 254.1 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.01108, allocations: 415.1 kB / 254.5 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009798/0.01206, allocations: 1.34 MB / 255.8 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003222/0.01239, allocations: 300.4 kB / 256.1 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006873/0.01307, allocations: 0.8566 MB / 257 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005373/0.01361, allocations: 490.8 kB / 257.4 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.01372, allocations: 116 kB / 257.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.01391, allocations: 167.9 kB / 257.7 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.0142, allocations: 0.6078 MB / 258.3 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002893/0.01449, allocations: 426.8 kB / 258.7 MB, free: 108 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009636/0.01545, allocations: 1.421 MB / 260.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.01546, allocations: 0 / 260.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.01546, allocations: 4 kB / 260.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.01548, allocations: 0 / 260.2 MB, free: 14.68 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.002093/0.01757, allocations: 2.446 MB / 262.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.0176, allocations: 12.03 kB / 262.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.01778, allocations: 176.8 kB / 262.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008481/0.01862, allocations: 0.8982 MB / 263.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.01873, allocations: 182.4 kB / 263.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.01881, allocations: 71.92 kB / 263.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.01947, allocations: 0.9071 MB / 264.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.01949, allocations: 4 kB / 264.9 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/0.01953, allocations: 28 kB / 264.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.01954, allocations: 12 kB / 264.9 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.01975, allocations: 161 kB / 265.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.02181, allocations: 2.234 MB / 267.3 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.02217, allocations: 247.5 kB / 267.5 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.02239, allocations: 175.7 kB / 267.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.02241, allocations: 4.281 kB / 267.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.02244, allocations: 50.78 kB / 267.8 MB, free: 6.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.323e-06/0.02244, allocations: 3.938 kB / 267.8 MB, free: 6.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0005835/0.02302, allocations: 372 kB / 268.1 MB, free: 6.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.02305, allocations: 55.41 kB / 268.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/0.02453, allocations: 1.814 MB / 270 MB, free: 4.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.02456, allocations: 33.7 kB / 270 MB, free: 4.395 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.0248, allocations: 0.4938 MB / 270.5 MB, free: 3.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.3e-05/0.02488, allocations: 126.9 kB / 270.6 MB, free: 3.762 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.02497, allocations: 94.11 kB / 270.7 MB, free: 3.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/0.02505, allocations: 325.9 kB / 271 MB, free: 3.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.02512, allocations: 48.91 kB / 271.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.02535, allocations: 422 kB / 271.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.02556, allocations: 263.9 kB / 271.8 MB, free: 2.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.02557, allocations: 4 kB / 271.8 MB, free: 2.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003433/0.02591, allocations: 345.5 kB / 272.1 MB, free: 2.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.02592, allocations: 8 kB / 272.1 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.02593, allocations: 4 kB / 272.1 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/0.02607, allocations: 45.3 kB / 272.2 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.02642, allocations: 131.8 kB / 272.3 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008386/0.02726, allocations: 1.453 MB / 273.7 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.02746, allocations: 59.66 kB / 273.8 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.02748, allocations: 15.94 kB / 273.8 MB, free: 304 kB / 266.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.0001797/0.02766, allocations: 144.3 kB / 274 MB, free: 152 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.02777, allocations: 111.9 kB / 274.1 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.02791, allocations: 162.1 kB / 274.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.02791, allocations: 4 kB / 274.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.02791, allocations: 4.062 kB / 274.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.02792, allocations: 0 / 274.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.029, allocations: 1.01 MB / 275.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.029, allocations: 4.062 kB / 275.3 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.02924, allocations: 95.98 kB / 275.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.0295, allocations: 246.6 kB / 275.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.743e-05/0.02958, allocations: 32.83 kB / 275.6 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.0296, allocations: 8 kB / 275.6 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009275/0.03053, allocations: 1.41 MB / 277 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.03053, allocations: 0 / 277 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.03096, allocations: 467.9 kB / 277.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.745e-05/0.03104, allocations: 15.94 kB / 277.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.03125, allocations: 35.97 kB / 277.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.03132, allocations: 39.92 kB / 277.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.03133, allocations: 12.17 kB / 277.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007773/0.03211, allocations: 1.002 MB / 278.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03211, allocations: 4 kB / 278.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000443/0.03255, allocations: 267.5 kB / 278.9 MB, free: 11.07 MB / 282.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.001493/0.03405, allocations: 0.6367 MB / 279.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004052/0.03445, allocations: 330.6 kB / 279.8 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-05/0.03448, allocations: 28 kB / 279.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.03467, allocations: 247.8 kB / 280.1 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.03583, allocations: 1.979 MB / 282.1 MB, free: 7.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006629/0.04246, allocations: 2.79 MB / 284.9 MB, free: 4.969 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.04275, allocations: 399.4 kB / 285.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002804/0.04303, allocations: 174.8 kB / 285.4 MB, free: 4.379 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004426/0.04347, allocations: 321.2 kB / 285.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.04347, allocations: 0 / 285.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of Templates: time 0.1228/0.1663, allocations: 21.35 MB / 307.1 MB, free: 29.34 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.159476292319596]