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.0009395/0.0009395, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.0009953/0.0009953, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9867/0.9867, allocations: 177 MB / 205.2 MB, free: 5.574 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.573e-06/1.573e-06, allocations: 0 / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.781e-05/2.939e-05, allocations: 2.312 kB / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008217/0.008246, allocations: 5.436 MB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002308/0.01055, allocations: 1.835 MB / 280.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.01086, allocations: 19.88 kB / 280.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008511/0.01172, allocations: 0.5172 MB / 280.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006358/0.01235, allocations: 405.6 kB / 281.2 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.01296, allocations: 371.3 kB / 281.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008388/0.0138, allocations: 0.9196 MB / 282.5 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.01415, allocations: 225.2 kB / 282.7 MB, free: 7.996 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005322/0.01468, allocations: 0.5185 MB / 283.2 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.01508, allocations: 395 kB / 283.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.996e-05/0.01515, allocations: 76 kB / 283.7 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.0153, allocations: 119.9 kB / 283.8 MB, free: 6.898 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003108/0.01561, allocations: 0.6 MB / 284.4 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.01591, allocations: 430.7 kB / 284.8 MB, free: 5.875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009442/0.01685, allocations: 1.21 MB / 286 MB, free: 4.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.01686, allocations: 0 / 286 MB, free: 4.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.01686, allocations: 0 / 286 MB, free: 4.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.01687, allocations: 0 / 286 MB, free: 4.66 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.001958/0.01883, allocations: 2.219 MB / 288.2 MB, free: 2.395 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.01887, allocations: 15.98 kB / 288.2 MB, free: 2.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002252/0.01909, allocations: 231.7 kB / 288.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.0202, allocations: 1.055 MB / 289.5 MB, free: 1.066 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.596e-05/0.0203, allocations: 88.97 kB / 289.6 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.919e-05/0.02036, allocations: 56.31 kB / 289.7 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.02107, allocations: 0.7365 MB / 290.4 MB, free: 48 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.02108, allocations: 0 / 290.4 MB, free: 48 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.02112, allocations: 24 kB / 290.4 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.02113, allocations: 12 kB / 290.4 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1262/0.1474, allocations: 168.1 kB / 290.6 MB, free: 28.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003742/0.1511, allocations: 3.001 MB / 293.6 MB, free: 26.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005392/0.1516, allocations: 223.9 kB / 293.8 MB, free: 26.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.1519, allocations: 104 kB / 293.9 MB, free: 26.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1519, allocations: 3.312 kB / 293.9 MB, free: 26.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1519, allocations: 41.59 kB / 294 MB, free: 26.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.1519, allocations: 0.5469 kB / 294 MB, free: 26.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009881/0.1529, allocations: 421.5 kB / 294.4 MB, free: 26.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.153, allocations: 210.8 kB / 294.6 MB, free: 26.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.1556, allocations: 2.025 MB / 296.6 MB, free: 25.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.1557, allocations: 32.08 kB / 296.6 MB, free: 25.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007273/0.1564, allocations: 0.9705 MB / 297.6 MB, free: 24.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.495e-05/0.1564, allocations: 83.16 kB / 297.7 MB, free: 24.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.97e-05/0.1565, allocations: 76.42 kB / 297.8 MB, free: 24.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.1566, allocations: 0.4889 MB / 298.3 MB, free: 24.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.1567, allocations: 46.05 kB / 298.3 MB, free: 24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1569, allocations: 416.1 kB / 298.7 MB, free: 23.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.1572, allocations: 276.4 kB / 299 MB, free: 23.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1572, allocations: 1.406 kB / 299 MB, free: 23.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000696/0.1579, allocations: 424.5 kB / 299.4 MB, free: 23.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1579, allocations: 7.344 kB / 299.4 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1579, allocations: 5.562 kB / 299.4 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/0.1581, allocations: 50.75 kB / 299.5 MB, free: 23.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1583, allocations: 63.72 kB / 299.5 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.1593, allocations: 2.093 MB / 301.6 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1596, allocations: 45.08 kB / 301.7 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.1597, allocations: 15.56 kB / 301.7 MB, free: 21 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.000192/0.1599, allocations: 182.2 kB / 301.9 MB, free: 20.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.16, allocations: 180 kB / 302 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005186/0.1605, allocations: 320 kB / 302.3 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1605, allocations: 2 kB / 302.3 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1606, allocations: 4.547 kB / 302.3 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1606, allocations: 4.703 kB / 302.4 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.1627, allocations: 1.528 MB / 303.9 MB, free: 19.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1627, allocations: 1.922 kB / 303.9 MB, free: 19.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.1628, allocations: 38.86 kB / 303.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.1629, allocations: 35.73 kB / 304 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.163, allocations: 6.625 kB / 304 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007868/0.1637, allocations: 2.04 MB / 306 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1637, allocations: 1.062 kB / 306 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/0.1644, allocations: 0.5435 MB / 306.5 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003967/0.1648, allocations: 280.6 kB / 306.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.1649, allocations: 7.594 kB / 306.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.1651, allocations: 33.12 kB / 306.9 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.875e-05/0.1652, allocations: 31.25 kB / 306.9 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.1652, allocations: 9.156 kB / 306.9 MB, free: 17.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.1668, allocations: 1.158 MB / 308.1 MB, free: 16.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1668, allocations: 0 / 308.1 MB, free: 16.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006792/0.1674, allocations: 213.8 kB / 308.3 MB, free: 16.77 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.0008531/0.1683, allocations: 337.4 kB / 308.6 MB, free: 16.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.1688, allocations: 358.3 kB / 308.9 MB, free: 16.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1688, allocations: 0 / 308.9 MB, free: 16.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.169, allocations: 257.6 kB / 309.2 MB, free: 16.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000743/0.1698, allocations: 216.5 kB / 309.4 MB, free: 16.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.1729, allocations: 2.398 MB / 311.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1732, allocations: 342 kB / 312.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002909/0.1735, allocations: 160.3 kB / 312.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.1737, allocations: 80.5 kB / 312.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1737, allocations: 0 / 312.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of Templates: time 0.02111/0.1948, allocations: 15.58 MB / 328 MB, free: 14.53 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.1983178448863328]