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.004266/0.004266, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001331/0.001331, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.03/1.03, allocations: 177.1 MB / 205 MB, free: 5.605 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.973e-06/1.973e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.763e-05/2.961e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005936/0.005965, allocations: 5.456 MB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.008837, allocations: 1.843 MB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004907/0.009328, allocations: 19.88 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009819/0.01031, allocations: 0.5172 MB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009013/0.01121, allocations: 405.7 kB / 281.2 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008351/0.01205, allocations: 371.2 kB / 281.6 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009904/0.01304, allocations: 0.9235 MB / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003576/0.01339, allocations: 221.3 kB / 282.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000604/0.014, allocations: 0.5262 MB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.01444, allocations: 383.1 kB / 283.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.737e-05/0.01452, allocations: 76 kB / 283.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.01469, allocations: 119.9 kB / 283.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.01503, allocations: 0.6 MB / 284.4 MB, free: 6.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.01539, allocations: 434.6 kB / 284.8 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.01644, allocations: 1.199 MB / 286 MB, free: 4.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.01645, allocations: 0 / 286 MB, free: 4.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01645, allocations: 0 / 286 MB, free: 4.434 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.872e-05/0.01649, allocations: 0 / 286 MB, free: 4.434 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.002326/0.01881, allocations: 2.215 MB / 288.2 MB, free: 2.172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.01886, allocations: 8.031 kB / 288.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.0191, allocations: 231.7 kB / 288.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.02021, allocations: 1.051 MB / 289.5 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-05/0.02031, allocations: 96.89 kB / 289.6 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.02036, allocations: 55.94 kB / 289.7 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1323/0.1527, allocations: 0.7337 MB / 290.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.1527, allocations: 6.656 kB / 290.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.1527, allocations: 20.88 kB / 290.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1527, allocations: 11.33 kB / 290.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003505/0.1531, allocations: 169.2 kB / 290.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.1561, allocations: 3 MB / 293.6 MB, free: 22.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.1566, allocations: 222.6 kB / 293.8 MB, free: 22.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002021/0.1568, allocations: 100.1 kB / 293.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.1568, allocations: 4.188 kB / 293.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.1568, allocations: 41.02 kB / 294 MB, free: 22.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.943e-06/0.1568, allocations: 1.312 kB / 294 MB, free: 22.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007698/0.1576, allocations: 427.8 kB / 294.4 MB, free: 22.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.1577, allocations: 209.8 kB / 294.6 MB, free: 22.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.1597, allocations: 2.02 MB / 296.6 MB, free: 22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1597, allocations: 31.86 kB / 296.6 MB, free: 21.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005267/0.1603, allocations: 0.9745 MB / 297.6 MB, free: 21.26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.1603, allocations: 74.78 kB / 297.7 MB, free: 21.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.023e-05/0.1604, allocations: 78.98 kB / 297.8 MB, free: 21.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.1604, allocations: 0.4893 MB / 298.2 MB, free: 20.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.38e-05/0.1605, allocations: 40.47 kB / 298.3 MB, free: 20.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.1607, allocations: 422.7 kB / 298.7 MB, free: 20.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.1609, allocations: 271.8 kB / 299 MB, free: 19.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1609, allocations: 2.75 kB / 299 MB, free: 19.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005502/0.1614, allocations: 431.1 kB / 299.4 MB, free: 19.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1615, allocations: 7.031 kB / 299.4 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1615, allocations: 7.234 kB / 299.4 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.1617, allocations: 44.72 kB / 299.4 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1619, allocations: 67.19 kB / 299.5 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008703/0.1627, allocations: 2.083 MB / 301.6 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.1629, allocations: 54.11 kB / 301.6 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.163, allocations: 16.09 kB / 301.7 MB, free: 17.71 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 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * 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.0001513/0.1631, allocations: 182.4 kB / 301.8 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1633, allocations: 176.2 kB / 302 MB, free: 17.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004206/0.1637, allocations: 323.7 kB / 302.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1637, allocations: 3.969 kB / 302.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.1637, allocations: 0.9375 kB / 302.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1637, allocations: 1.078 kB / 302.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.1653, allocations: 1.525 MB / 303.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1653, allocations: 0 / 303.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1654, allocations: 35.25 kB / 303.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.859e-05/0.1655, allocations: 37.78 kB / 303.9 MB, free: 16.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.1655, allocations: 11.62 kB / 303.9 MB, free: 16.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005885/0.1661, allocations: 2.049 MB / 306 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1661, allocations: 4.656 kB / 306 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.1666, allocations: 0.5448 MB / 306.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.1669, allocations: 290 kB / 306.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.601e-05/0.167, allocations: 6.906 kB / 306.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.1672, allocations: 25.83 kB / 306.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.1672, allocations: 32.47 kB / 306.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1673, allocations: 9.281 kB / 306.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001226/0.1685, allocations: 1.153 MB / 308 MB, free: 13.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1685, allocations: 4 kB / 308.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004891/0.169, allocations: 211.5 kB / 308.3 MB, free: 13.5 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.0007959/0.1698, allocations: 342.4 kB / 308.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004327/0.1702, allocations: 354.5 kB / 308.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1702, allocations: 0 / 308.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.1704, allocations: 260.1 kB / 309.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006131/0.171, allocations: 217.8 kB / 309.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.1735, allocations: 2.385 MB / 311.8 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.1737, allocations: 343.9 kB / 312.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.1739, allocations: 156.8 kB / 312.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.1741, allocations: 76.88 kB / 312.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1741, allocations: 0 / 312.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of Templates: time 0.0172/0.1913, allocations: 16.22 MB / 328.6 MB, free: 11.77 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.1829113219864666]