Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 161 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9566/0.9566, allocations: 177 MB / 205.2 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.745e-06/2.745e-06, allocations: 3.984 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.989e-05, allocations: 2.312 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004895/0.004915, allocations: 5.333 MB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.00734, allocations: 1.885 MB / 280.6 MB, free: 10 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002209/0.007561, allocations: 19.88 kB / 280.6 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006524/0.008213, allocations: 0.5171 MB / 281.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005036/0.008717, allocations: 397.8 kB / 281.5 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.009223, allocations: 371.2 kB / 281.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006762/0.009899, allocations: 0.9235 MB / 282.8 MB, free: 7.785 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.01016, allocations: 223.3 kB / 283 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004171/0.01058, allocations: 0.5223 MB / 283.5 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004487/0.01103, allocations: 359.1 kB / 283.9 MB, free: 6.684 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.01109, allocations: 80 kB / 284 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.01121, allocations: 123.9 kB / 284.1 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.0115, allocations: 0.5922 MB / 284.7 MB, free: 5.891 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.01176, allocations: 430.7 kB / 285.1 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.01255, allocations: 1.203 MB / 286.3 MB, free: 4.262 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.01255, allocations: 4 kB / 286.3 MB, free: 4.258 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01255, allocations: 0 / 286.3 MB, free: 4.258 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.01257, allocations: 3.938 kB / 286.3 MB, free: 4.254 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.001577/0.01415, allocations: 1.912 MB / 288.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.01417, allocations: 15.98 kB / 288.2 MB, free: 2.293 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.01432, allocations: 136.8 kB / 288.4 MB, free: 2.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007502/0.01507, allocations: 0.8181 MB / 289.2 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.726e-05/0.01514, allocations: 92.97 kB / 289.3 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.01518, allocations: 52.38 kB / 289.3 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.01565, allocations: 0.7031 MB / 290 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.01566, allocations: 0 / 290 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.01568, allocations: 20 kB / 290 MB, free: 328 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.01569, allocations: 12 kB / 290.1 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.01584, allocations: 122.8 kB / 290.2 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/0.1286, allocations: 1.869 MB / 292 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.129, allocations: 178.1 kB / 292.2 MB, free: 23.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.1291, allocations: 90.28 kB / 292.3 MB, free: 23.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.1291, allocations: 5.109 kB / 292.3 MB, free: 23.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.1291, allocations: 42.06 kB / 292.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.1292, allocations: 1.812 kB / 292.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005474/0.1297, allocations: 290.3 kB / 292.6 MB, free: 23.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.1297, allocations: 213.9 kB / 292.9 MB, free: 23.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001436/0.1312, allocations: 1.679 MB / 294.5 MB, free: 23.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.1312, allocations: 29.92 kB / 294.6 MB, free: 23.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.1314, allocations: 453.8 kB / 295 MB, free: 22.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.1315, allocations: 79.31 kB / 295.1 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.151e-05/0.1315, allocations: 72.84 kB / 295.2 MB, free: 22.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.363e-05/0.1316, allocations: 316.9 kB / 295.5 MB, free: 22.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.976e-05/0.1316, allocations: 30.88 kB / 295.5 MB, free: 22.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.1317, allocations: 350.3 kB / 295.8 MB, free: 22.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.1319, allocations: 212.7 kB / 296 MB, free: 22.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1319, allocations: 1.531 kB / 296 MB, free: 22.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003417/0.1322, allocations: 291.1 kB / 296.3 MB, free: 21.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.1323, allocations: 8.469 kB / 296.3 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1323, allocations: 3.469 kB / 296.3 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/0.1324, allocations: 40.22 kB / 296.4 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.1325, allocations: 67.67 kB / 296.4 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006105/0.1331, allocations: 1.404 MB / 297.8 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.1333, allocations: 51.5 kB / 297.9 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.1333, allocations: 15.23 kB / 297.9 MB, free: 20.7 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.0001422/0.1335, allocations: 139.9 kB / 298 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.1336, allocations: 92.91 kB / 298.1 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.1339, allocations: 283.1 kB / 298.4 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1339, allocations: 2.844 kB / 298.4 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.1339, allocations: 3.938 kB / 298.4 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1339, allocations: 2.734 kB / 298.4 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009256/0.1349, allocations: 0.8364 MB / 299.3 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1349, allocations: 0 / 299.3 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.135, allocations: 47.2 kB / 299.3 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.237e-05/0.135, allocations: 27.97 kB / 299.3 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.1351, allocations: 5.969 kB / 299.3 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004626/0.1355, allocations: 1.364 MB / 300.7 MB, free: 19.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1355, allocations: 3.938 kB / 300.7 MB, free: 19.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003945/0.1359, allocations: 378.7 kB / 301.1 MB, free: 18.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.1361, allocations: 219 kB / 301.3 MB, free: 18.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.299e-05/0.1362, allocations: 10.75 kB / 301.3 MB, free: 18.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.1364, allocations: 25.92 kB / 301.3 MB, free: 18.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.1365, allocations: 35.45 kB / 301.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.1365, allocations: 6.938 kB / 301.4 MB, free: 18.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009154/0.1374, allocations: 0.9147 MB / 302.3 MB, free: 18.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1374, allocations: 1.125 kB / 302.3 MB, free: 18.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004427/0.1378, allocations: 202.9 kB / 302.5 MB, free: 18.64 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.0008608/0.1387, allocations: 434.9 kB / 302.9 MB, free: 18.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.139, allocations: 266.6 kB / 303.2 MB, free: 18.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-05/0.139, allocations: 21.94 kB / 303.2 MB, free: 18.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1392, allocations: 195.1 kB / 303.4 MB, free: 18.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.1397, allocations: 213.2 kB / 303.6 MB, free: 18.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.1423, allocations: 2.398 MB / 306 MB, free: 17.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.1426, allocations: 347.2 kB / 306.3 MB, free: 16.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.1428, allocations: 145.1 kB / 306.5 MB, free: 16.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/0.1431, allocations: 256.1 kB / 306.7 MB, free: 16.8 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1431, allocations: 4 kB / 306.7 MB, free: 16.8 MB / 266.7 MB Notification: Performance of Templates: time 0.01751/0.1606, allocations: 16.47 MB / 323.2 MB, free: 2.07 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.0424159369431436]