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.00096/0.00096, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001116/0.001116, allocations: 170 kB / 24.82 MB, free: 9.273 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.011/1.011, allocations: 177.1 MB / 205.3 MB, free: 5.477 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 2.264e-06/2.264e-06, allocations: 0 / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.501e-05, allocations: 6.25 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005735/0.00576, allocations: 5.322 MB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002486/0.008246, allocations: 1.831 MB / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002497/0.008496, allocations: 19.88 kB / 280.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007768/0.009273, allocations: 0.5094 MB / 281.1 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004806/0.009754, allocations: 413.6 kB / 281.5 MB, free: 9.164 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.01021, allocations: 371.2 kB / 281.8 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006067/0.01081, allocations: 0.9196 MB / 282.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.0111, allocations: 221.3 kB / 283 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003766/0.01148, allocations: 0.5224 MB / 283.5 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.0118, allocations: 387 kB / 283.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.982e-05/0.01187, allocations: 76 kB / 283.9 MB, free: 6.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.01201, allocations: 123.9 kB / 284.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003154/0.01232, allocations: 0.5922 MB / 284.6 MB, free: 5.965 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002771/0.0126, allocations: 430.6 kB / 285.1 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008496/0.01345, allocations: 1.206 MB / 286.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.01345, allocations: 0 / 286.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.01345, allocations: 4 kB / 286.3 MB, free: 4.328 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.01346, allocations: 0 / 286.3 MB, free: 4.328 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.002033/0.0155, allocations: 2.191 MB / 288.5 MB, free: 2.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.01553, allocations: 12.03 kB / 288.5 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.0157, allocations: 227.7 kB / 288.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007905/0.01649, allocations: 0.9573 MB / 289.7 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.808e-05/0.01656, allocations: 96.91 kB / 289.8 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.01661, allocations: 55.94 kB / 289.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1294/0.146, allocations: 0.7022 MB / 290.5 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.146, allocations: 3.531 kB / 290.5 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.1461, allocations: 21.12 kB / 290.5 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.1461, allocations: 12.98 kB / 290.6 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.1464, allocations: 132.7 kB / 290.7 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003006/0.1494, allocations: 2.608 MB / 293.3 MB, free: 23.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.1498, allocations: 210.7 kB / 293.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1499, allocations: 89.34 kB / 293.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.15, allocations: 6.359 kB / 293.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.15, allocations: 40.95 kB / 293.6 MB, free: 22.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.864e-06/0.15, allocations: 0.9688 kB / 293.6 MB, free: 22.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000815/0.1508, allocations: 404.6 kB / 294 MB, free: 22.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.1509, allocations: 210.6 kB / 294.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.1531, allocations: 1.921 MB / 296.2 MB, free: 22.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.1531, allocations: 31.77 kB / 296.2 MB, free: 22.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005798/0.1537, allocations: 0.9883 MB / 297.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.1537, allocations: 84.22 kB / 297.3 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.1538, allocations: 79.14 kB / 297.3 MB, free: 21.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.467e-05/0.1538, allocations: 498.6 kB / 297.8 MB, free: 21.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.444e-05/0.1539, allocations: 32.56 kB / 297.8 MB, free: 21.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.1541, allocations: 407.8 kB / 298.2 MB, free: 20.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.1543, allocations: 259.4 kB / 298.5 MB, free: 20.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1543, allocations: 3.219 kB / 298.5 MB, free: 20.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004829/0.1547, allocations: 407.9 kB / 298.9 MB, free: 20.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1548, allocations: 8.078 kB / 298.9 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1548, allocations: 3.688 kB / 298.9 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.1549, allocations: 47.39 kB / 299 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.1551, allocations: 67.88 kB / 299 MB, free: 20.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008022/0.1559, allocations: 2.058 MB / 301.1 MB, free: 18.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.1562, allocations: 50.02 kB / 301.1 MB, free: 18.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.1562, allocations: 10.19 kB / 301.1 MB, free: 18.44 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.0001629/0.1563, allocations: 186.6 kB / 301.3 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.1565, allocations: 173.7 kB / 301.5 MB, free: 18.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003769/0.1568, allocations: 310.3 kB / 301.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1568, allocations: 2.438 kB / 301.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1568, allocations: 2.859 kB / 301.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1569, allocations: 1.406 kB / 301.8 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.1584, allocations: 1.145 MB / 302.9 MB, free: 17.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1584, allocations: 1.5 kB / 303 MB, free: 17.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1585, allocations: 38.17 kB / 303 MB, free: 17.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.523e-05/0.1586, allocations: 37.47 kB / 303 MB, free: 17.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.1586, allocations: 8.844 kB / 303 MB, free: 17.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007836/0.1594, allocations: 2.023 MB / 305.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1594, allocations: 1.469 kB / 305.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.1599, allocations: 0.5246 MB / 305.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.1601, allocations: 237.2 kB / 305.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.955e-05/0.1602, allocations: 7.656 kB / 305.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.1604, allocations: 29.75 kB / 305.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.1605, allocations: 40.28 kB / 305.9 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.1605, allocations: 4.906 kB / 305.9 MB, free: 15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001121/0.1616, allocations: 1.048 MB / 306.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1616, allocations: 0 / 306.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005957/0.1622, allocations: 210 kB / 307.1 MB, free: 14.68 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.0007559/0.163, allocations: 351 kB / 307.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004503/0.1634, allocations: 332.7 kB / 307.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1634, allocations: 1.438 kB / 307.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.1636, allocations: 252.2 kB / 308.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.1642, allocations: 216.2 kB / 308.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/0.1671, allocations: 2.373 MB / 310.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.1674, allocations: 343.5 kB / 311 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002531/0.1676, allocations: 160.1 kB / 311.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003321/0.1679, allocations: 294.1 kB / 311.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1679, allocations: 0 / 311.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of Templates: time 0.02032/0.1883, allocations: 16.47 MB / 327.9 MB, free: 13.21 MB / 282.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 -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: 3.031361692585051]