Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001012/0.001012, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.0009394/0.0009394, allocations: 168.8 kB / 24.91 MB, free: 9.156 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 1.021/1.021, allocations: 177.1 MB / 205.3 MB, free: 5.48 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.237e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004984/0.005006, allocations: 5.377 MB / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002841/0.007847, allocations: 1.881 MB / 280.7 MB, free: 9.965 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002783/0.008126, allocations: 15.88 kB / 280.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008703/0.008996, allocations: 0.5717 MB / 281.3 MB, free: 9.375 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005444/0.00954, allocations: 401.7 kB / 281.7 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.0101, allocations: 375.3 kB / 282.1 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006668/0.01077, allocations: 0.9196 MB / 283 MB, free: 7.691 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.01106, allocations: 227.2 kB / 283.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003962/0.01146, allocations: 0.5263 MB / 283.7 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.01178, allocations: 351.1 kB / 284.1 MB, free: 6.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.01185, allocations: 76 kB / 284.2 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.012, allocations: 119.9 kB / 284.3 MB, free: 6.398 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003063/0.0123, allocations: 0.5961 MB / 284.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002648/0.01257, allocations: 434.7 kB / 285.3 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.01372, allocations: 1.214 MB / 286.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.01373, allocations: 0 / 286.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.01373, allocations: 0 / 286.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.712e-05/0.01378, allocations: 0 / 286.5 MB, free: 4.156 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.002513/0.01629, allocations: 1.908 MB / 288.4 MB, free: 2.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.01633, allocations: 8.031 kB / 288.4 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.01654, allocations: 144.8 kB / 288.6 MB, free: 2.066 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.01763, allocations: 0.8181 MB / 289.4 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.543e-05/0.01771, allocations: 88.97 kB / 289.5 MB, free: 1.117 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.01776, allocations: 59.88 kB / 289.5 MB, free: 1.059 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/0.01826, allocations: 0.6913 MB / 290.2 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.01827, allocations: 0 / 290.2 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.0183, allocations: 16 kB / 290.2 MB, free: 248 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.01831, allocations: 16 kB / 290.3 MB, free: 232 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.01845, allocations: 122.8 kB / 290.4 MB, free: 108 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1092/0.1276, allocations: 1.876 MB / 292.3 MB, free: 23.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.1279, allocations: 180.3 kB / 292.4 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.1281, allocations: 87.81 kB / 292.5 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.1281, allocations: 6.438 kB / 292.5 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.1281, allocations: 37.06 kB / 292.6 MB, free: 23.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.485e-06/0.1281, allocations: 2.109 kB / 292.6 MB, free: 23.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005378/0.1286, allocations: 289.5 kB / 292.8 MB, free: 23.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.1287, allocations: 213.5 kB / 293.1 MB, free: 23.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.1301, allocations: 1.676 MB / 294.7 MB, free: 23.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.1301, allocations: 31.39 kB / 294.8 MB, free: 23.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.1303, allocations: 464 kB / 295.2 MB, free: 22.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.1304, allocations: 74.73 kB / 295.3 MB, free: 22.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.1305, allocations: 68.56 kB / 295.4 MB, free: 22.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.355e-05/0.1305, allocations: 320.7 kB / 295.7 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.932e-05/0.1305, allocations: 29.34 kB / 295.7 MB, free: 22.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.1307, allocations: 347 kB / 296 MB, free: 22.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.1308, allocations: 213.8 kB / 296.2 MB, free: 22.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1308, allocations: 1.641 kB / 296.2 MB, free: 22.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003305/0.1311, allocations: 295.5 kB / 296.5 MB, free: 22.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1312, allocations: 8.188 kB / 296.5 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1312, allocations: 3.406 kB / 296.5 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001307/0.1313, allocations: 36.16 kB / 296.6 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.1314, allocations: 76.64 kB / 296.7 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006363/0.1321, allocations: 1.407 MB / 298.1 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.1323, allocations: 49.98 kB / 298.1 MB, free: 20.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1323, allocations: 12.19 kB / 298.1 MB, free: 20.72 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.0001409/0.1324, allocations: 143.3 kB / 298.3 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.1325, allocations: 92.28 kB / 298.4 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.1328, allocations: 281.5 kB / 298.6 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1329, allocations: 5.969 kB / 298.6 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.1329, allocations: 1.812 kB / 298.6 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1329, allocations: 2.469 kB / 298.6 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009067/0.1338, allocations: 0.8379 MB / 299.5 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1338, allocations: 0 / 299.5 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.1339, allocations: 42.53 kB / 299.5 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.091e-05/0.1339, allocations: 29.64 kB / 299.5 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.134, allocations: 6.766 kB / 299.5 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004807/0.1344, allocations: 1.371 MB / 300.9 MB, free: 19.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1344, allocations: 4.953 kB / 300.9 MB, free: 19.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.1348, allocations: 374.6 kB / 301.3 MB, free: 18.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/0.135, allocations: 222.8 kB / 301.5 MB, free: 18.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.478e-05/0.1351, allocations: 5.812 kB / 301.5 MB, free: 18.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1353, allocations: 32.58 kB / 301.5 MB, free: 18.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.1353, allocations: 37.73 kB / 301.6 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.1353, allocations: 7.922 kB / 301.6 MB, free: 18.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001151/0.1365, allocations: 0.9155 MB / 302.5 MB, free: 18.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1365, allocations: 0 / 302.5 MB, free: 18.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.137, allocations: 204.1 kB / 302.7 MB, free: 18.66 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.0008899/0.1379, allocations: 443.9 kB / 303.1 MB, free: 18.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003771/0.1382, allocations: 265 kB / 303.4 MB, free: 18.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.021e-05/0.1383, allocations: 21.69 kB / 303.4 MB, free: 18.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.1384, allocations: 188.8 kB / 303.6 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.0005937/0.139, allocations: 210.2 kB / 303.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.1416, allocations: 2.405 MB / 306.2 MB, free: 16.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.1418, allocations: 344.3 kB / 306.5 MB, free: 16.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.1421, allocations: 148.5 kB / 306.7 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.1424, allocations: 253.3 kB / 306.9 MB, free: 16.74 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1424, allocations: 3.281 kB / 306.9 MB, free: 16.74 MB / 266.7 MB Notification: Performance of Templates: time 0.01653/0.1589, allocations: 16.46 MB / 323.4 MB, free: 2.047 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 2.918340048752725]