Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001233/0.001233, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001153/0.001153, allocations: 153.5 kB / 24.81 MB, free: 9.285 MB / 18.57 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 1.056/1.056, allocations: 173.4 MB / 201.4 MB, free: 9.242 MB / 186.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_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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 268.4 MB, free: 6.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.554e-05, allocations: 2.312 kB / 268.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005801/0.005827, allocations: 5.778 MB / 274.2 MB, free: 448 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.009115, allocations: 2.096 MB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005831/0.009699, allocations: 27.75 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.01106, allocations: 0.6066 MB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009627/0.01203, allocations: 425.5 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007972/0.01282, allocations: 415.2 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.01419, allocations: 1.339 MB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004869/0.01468, allocations: 282.4 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.01568, allocations: 0.7173 MB / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006179/0.0163, allocations: 0.5144 MB / 280.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.01645, allocations: 112 kB / 280.7 MB, free: 9.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002997/0.01674, allocations: 179.8 kB / 280.8 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000366/0.01711, allocations: 0.6584 MB / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004936/0.0176, allocations: 0.5219 MB / 282 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.01889, allocations: 1.46 MB / 283.5 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.01889, allocations: 0 / 283.5 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.01889, allocations: 4 kB / 283.5 MB, free: 7.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.277e-05/0.01894, allocations: 0 / 283.5 MB, free: 7.07 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.002677/0.02162, allocations: 2.465 MB / 286 MB, free: 4.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.02166, allocations: 12.86 kB / 286 MB, free: 4.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002955/0.02196, allocations: 275.5 kB / 286.2 MB, free: 4.273 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.02315, allocations: 1.057 MB / 287.3 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.02327, allocations: 186.3 kB / 287.5 MB, free: 2.945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.462e-05/0.02334, allocations: 75.88 kB / 287.5 MB, free: 2.871 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.0241, allocations: 0.9186 MB / 288.5 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.02411, allocations: 0 / 288.5 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.02415, allocations: 28 kB / 288.5 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.02416, allocations: 20 kB / 288.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.02441, allocations: 188.9 kB / 288.7 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1224/0.1468, allocations: 3.028 MB / 291.7 MB, free: 26.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.1475, allocations: 285 kB / 292 MB, free: 26.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.1478, allocations: 194.2 kB / 292.2 MB, free: 26.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1478, allocations: 8.094 kB / 292.2 MB, free: 26.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.1478, allocations: 48.72 kB / 292.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/0.1478, allocations: 0 / 292.2 MB, free: 26.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001037/0.1489, allocations: 496.4 kB / 292.7 MB, free: 26.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.1489, allocations: 270.8 kB / 293 MB, free: 26.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002447/0.1514, allocations: 2.075 MB / 295.1 MB, free: 26.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.1514, allocations: 34.83 kB / 295.1 MB, free: 25.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006619/0.1521, allocations: 1.077 MB / 296.2 MB, free: 25.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.1522, allocations: 129.6 kB / 296.3 MB, free: 25.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.1523, allocations: 98.69 kB / 296.4 MB, free: 25.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.762e-05/0.1524, allocations: 0.4987 MB / 296.9 MB, free: 25.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.921e-05/0.1525, allocations: 51.62 kB / 297 MB, free: 25.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.1527, allocations: 490.5 kB / 297.4 MB, free: 24.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.1529, allocations: 297.5 kB / 297.7 MB, free: 24.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.153, allocations: 1.594 kB / 297.7 MB, free: 24.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000657/0.1536, allocations: 496.1 kB / 298.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.1536, allocations: 10.98 kB / 298.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1536, allocations: 7.344 kB / 298.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.1538, allocations: 44.61 kB / 298.3 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.1541, allocations: 108.1 kB / 298.4 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009225/0.155, allocations: 2.095 MB / 300.5 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.1553, allocations: 55.05 kB / 300.5 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.1554, allocations: 18.89 kB / 300.5 MB, free: 22.37 MB / 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.0002291/0.1556, allocations: 184.8 kB / 300.7 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.1558, allocations: 198.1 kB / 300.9 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.1559, allocations: 166.1 kB / 301.1 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1559, allocations: 2.469 kB / 301.1 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1559, allocations: 10.06 kB / 301.1 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1559, allocations: 1.547 kB / 301.1 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.1577, allocations: 1.392 MB / 302.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1577, allocations: 5.094 kB / 302.5 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.1579, allocations: 73.33 kB / 302.6 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.158, allocations: 39.55 kB / 302.6 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.1581, allocations: 8.734 kB / 302.6 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006633/0.1587, allocations: 2.057 MB / 304.7 MB, free: 19.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1587, allocations: 7.719 kB / 304.7 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.1594, allocations: 0.626 MB / 305.3 MB, free: 19.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.1597, allocations: 287.4 kB / 305.6 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.1598, allocations: 13.22 kB / 305.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.1601, allocations: 41.94 kB / 305.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.1601, allocations: 41.66 kB / 305.7 MB, free: 18.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.1602, allocations: 11.17 kB / 305.7 MB, free: 18.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001148/0.1613, allocations: 1.131 MB / 306.8 MB, free: 18.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1613, allocations: 0 / 306.8 MB, free: 18.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006785/0.162, allocations: 268.8 kB / 307.1 MB, free: 18.57 MB / 266.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.001091/0.1631, allocations: 450 kB / 307.5 MB, free: 18.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005078/0.1636, allocations: 401.7 kB / 307.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1636, allocations: 2.312 kB / 307.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.1638, allocations: 300 kB / 308.2 MB, free: 18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.1646, allocations: 252.5 kB / 308.5 MB, free: 17.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.1682, allocations: 2.848 MB / 311.3 MB, free: 16.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.1685, allocations: 411.5 kB / 311.7 MB, free: 16.29 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.1689, allocations: 171.8 kB / 311.9 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.1693, allocations: 351.5 kB / 312.2 MB, free: 16.19 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1693, allocations: 0 / 312.2 MB, free: 16.19 MB / 266.7 MB Notification: Performance of Templates: time 0.02475/0.1941, allocations: 20.3 MB / 332.5 MB, free: 12.68 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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.3893051091581583]