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.000994/0.000994, allocations: 81.81 kB / 21.43 MB, free: 3.066 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.00104/0.00104, allocations: 163.8 kB / 24.82 MB, free: 8.867 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.9935/0.9935, allocations: 177 MB / 205.1 MB, free: 5.473 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 1.253e-06/1.253e-06, allocations: 0 / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/2.05e-05, allocations: 5.266 kB / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004662/0.004682, allocations: 5.328 MB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.007154, allocations: 1.831 MB / 280.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003547/0.007509, allocations: 15.94 kB / 280.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007698/0.008279, allocations: 0.5211 MB / 281 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005925/0.008871, allocations: 405.7 kB / 281.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.00946, allocations: 363.3 kB / 281.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008195/0.01028, allocations: 0.9235 MB / 282.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.01061, allocations: 233.2 kB / 282.9 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005778/0.01119, allocations: 0.5185 MB / 283.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.01161, allocations: 383.1 kB / 283.8 MB, free: 6.699 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-05/0.01169, allocations: 80 kB / 283.9 MB, free: 6.621 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.01187, allocations: 119.9 kB / 284 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003702/0.01224, allocations: 0.5922 MB / 284.6 MB, free: 5.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000524/0.01276, allocations: 434.7 kB / 285 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.01404, allocations: 1.199 MB / 286.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.01405, allocations: 0 / 286.2 MB, free: 4.281 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01405, allocations: 3.938 kB / 286.2 MB, free: 4.277 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.5e-05/0.0141, allocations: 8 kB / 286.2 MB, free: 4.27 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.00241/0.01651, allocations: 2.187 MB / 288.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.01655, allocations: 15.98 kB / 288.4 MB, free: 2.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.01677, allocations: 235.7 kB / 288.7 MB, free: 1.789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008769/0.01764, allocations: 0.9495 MB / 289.6 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.52e-05/0.01773, allocations: 88.97 kB / 289.7 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.01779, allocations: 56.38 kB / 289.7 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1161/0.1338, allocations: 0.7057 MB / 290.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.1339, allocations: 1.719 kB / 290.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.1339, allocations: 23.3 kB / 290.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1339, allocations: 10.31 kB / 290.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1353, allocations: 136.4 kB / 290.6 MB, free: 24.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003155/0.1385, allocations: 2.614 MB / 293.2 MB, free: 22.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.139, allocations: 209.5 kB / 293.4 MB, free: 22.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.1392, allocations: 97.92 kB / 293.5 MB, free: 22.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.1392, allocations: 4.469 kB / 293.5 MB, free: 22.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.1392, allocations: 42 kB / 293.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.164e-06/0.1392, allocations: 1.859 kB / 293.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001/0.1402, allocations: 393.1 kB / 294 MB, free: 22.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.1403, allocations: 215.7 kB / 294.2 MB, free: 22.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002944/0.1432, allocations: 1.918 MB / 296.1 MB, free: 22.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.1433, allocations: 34.16 kB / 296.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007924/0.1441, allocations: 0.9889 MB / 297.1 MB, free: 21.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.431e-05/0.1441, allocations: 82.31 kB / 297.2 MB, free: 21.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1442, allocations: 72.16 kB / 297.3 MB, free: 21.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.722e-05/0.1443, allocations: 498.8 kB / 297.8 MB, free: 21.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.146e-05/0.1444, allocations: 32.17 kB / 297.8 MB, free: 21.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.1446, allocations: 412.8 kB / 298.2 MB, free: 20.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.1448, allocations: 263.9 kB / 298.4 MB, free: 20.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1448, allocations: 1.406 kB / 298.4 MB, free: 20.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006429/0.1454, allocations: 400.5 kB / 298.8 MB, free: 20.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1455, allocations: 6.031 kB / 298.8 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.1455, allocations: 8.125 kB / 298.9 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.1456, allocations: 52.89 kB / 298.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002213/0.1459, allocations: 63.84 kB / 299 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009812/0.1469, allocations: 2.061 MB / 301 MB, free: 18.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004001/0.1473, allocations: 50.22 kB / 301.1 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.1473, allocations: 14.12 kB / 301.1 MB, free: 18.34 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.0002347/0.1475, allocations: 176.3 kB / 301.3 MB, free: 18.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.1477, allocations: 178.4 kB / 301.4 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005422/0.1482, allocations: 311.7 kB / 301.7 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1482, allocations: 2.875 kB / 301.7 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1482, allocations: 1.156 kB / 301.7 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1483, allocations: 1.969 kB / 301.7 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.1503, allocations: 1.15 MB / 302.9 MB, free: 17.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1503, allocations: 1.094 kB / 302.9 MB, free: 17.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.1505, allocations: 37.89 kB / 302.9 MB, free: 17.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.1506, allocations: 36.64 kB / 303 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.1506, allocations: 7.672 kB / 303 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007712/0.1514, allocations: 2.011 MB / 305 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1514, allocations: 1.375 kB / 305 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006379/0.152, allocations: 0.5275 MB / 305.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003729/0.1524, allocations: 238.8 kB / 305.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.1525, allocations: 7.406 kB / 305.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002666/0.1528, allocations: 33.25 kB / 305.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.1529, allocations: 27.2 kB / 305.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.1529, allocations: 8.547 kB / 305.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001527/0.1544, allocations: 1.059 MB / 306.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1544, allocations: 0 / 306.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008436/0.1553, allocations: 205.1 kB / 307.1 MB, free: 14.58 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.0009919/0.1562, allocations: 336 kB / 307.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004967/0.1567, allocations: 341.2 kB / 307.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1567, allocations: 1.094 kB / 307.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.157, allocations: 249 kB / 308 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008317/0.1578, allocations: 220.2 kB / 308.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003988/0.1618, allocations: 2.377 MB / 310.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1621, allocations: 341.4 kB / 310.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000424/0.1625, allocations: 150.1 kB / 311.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000489/0.163, allocations: 290 kB / 311.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.163, allocations: 3.094 kB / 311.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Templates: time 0.01963/0.1826, allocations: 16.47 MB / 327.8 MB, free: 13.07 MB / 282.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.0689868442714214]