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.001676/0.001676, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001406/0.001406, allocations: 160.6 kB / 24.91 MB, free: 8.727 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 1.058/1.058, allocations: 177 MB / 205.2 MB, free: 5.469 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.693e-06/1.693e-06, allocations: 0 / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.275e-05/2.445e-05, allocations: 6.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005095/0.005119, allocations: 5.376 MB / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.007807, allocations: 1.885 MB / 280.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.008156, allocations: 15.88 kB / 280.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000832/0.008988, allocations: 0.5717 MB / 281.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000565/0.009553, allocations: 401.7 kB / 281.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.01013, allocations: 367.2 kB / 282 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000803/0.01093, allocations: 0.9196 MB / 282.9 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.01126, allocations: 219.3 kB / 283.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005714/0.01183, allocations: 0.5262 MB / 283.7 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004104/0.01224, allocations: 363.1 kB / 284 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.377e-05/0.01232, allocations: 76 kB / 284.1 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.01248, allocations: 119.9 kB / 284.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.0128, allocations: 0.5961 MB / 284.8 MB, free: 5.746 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003311/0.01313, allocations: 430.6 kB / 285.2 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.01421, allocations: 1.203 MB / 286.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.01421, allocations: 4 kB / 286.4 MB, free: 4.113 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.01421, allocations: 0 / 286.4 MB, free: 4.113 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.098e-05/0.01424, allocations: 0 / 286.4 MB, free: 4.113 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.001843/0.01609, allocations: 1.912 MB / 288.3 MB, free: 2.168 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.01612, allocations: 15.98 kB / 288.4 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.01631, allocations: 148.8 kB / 288.5 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009376/0.01725, allocations: 0.8103 MB / 289.3 MB, free: 1.168 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.643e-05/0.01734, allocations: 96.95 kB / 289.4 MB, free: 1.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/0.01739, allocations: 52.38 kB / 289.5 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005367/0.01793, allocations: 0.6953 MB / 290.2 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.01794, allocations: 0 / 290.2 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.01797, allocations: 24 kB / 290.2 MB, free: 180 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.01798, allocations: 12 kB / 290.2 MB, free: 168 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.01813, allocations: 118.9 kB / 290.3 MB, free: 48 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/0.1572, allocations: 1.875 MB / 292.2 MB, free: 23.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004144/0.1576, allocations: 183 kB / 292.4 MB, free: 23.63 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.1578, allocations: 85.67 kB / 292.4 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.1578, allocations: 3.5 kB / 292.5 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1578, allocations: 38.56 kB / 292.5 MB, free: 23.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/0.1578, allocations: 0 / 292.5 MB, free: 23.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007887/0.1586, allocations: 298 kB / 292.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.1587, allocations: 217.2 kB / 293 MB, free: 23.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002648/0.1613, allocations: 1.672 MB / 294.7 MB, free: 23.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.1613, allocations: 33.02 kB / 294.7 MB, free: 23.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.1617, allocations: 458.2 kB / 295.1 MB, free: 22.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.039e-05/0.1617, allocations: 75.77 kB / 295.2 MB, free: 22.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1618, allocations: 74.39 kB / 295.3 MB, free: 22.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.72e-05/0.1619, allocations: 321.4 kB / 295.6 MB, free: 22.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.022e-05/0.162, allocations: 29.83 kB / 295.6 MB, free: 22.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.1622, allocations: 345.9 kB / 296 MB, free: 22.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.1624, allocations: 213.3 kB / 296.2 MB, free: 22.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1624, allocations: 1.031 kB / 296.2 MB, free: 22.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005793/0.163, allocations: 289.1 kB / 296.5 MB, free: 21.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.163, allocations: 10.69 kB / 296.5 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.163, allocations: 5.375 kB / 296.5 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.1632, allocations: 33.83 kB / 296.5 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.1634, allocations: 73.47 kB / 296.6 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008846/0.1643, allocations: 1.41 MB / 298 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.1647, allocations: 47.06 kB / 298 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.1647, allocations: 13.22 kB / 298.1 MB, free: 20.69 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.0002944/0.165, allocations: 134.5 kB / 298.2 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.1651, allocations: 92.36 kB / 298.3 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005279/0.1657, allocations: 288.2 kB / 298.6 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1657, allocations: 8.5 kB / 298.6 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.1657, allocations: 0.7031 kB / 298.6 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.1657, allocations: 8.422 kB / 298.6 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.1671, allocations: 0.8382 MB / 299.4 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1671, allocations: 0.6094 kB / 299.4 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.1673, allocations: 41.33 kB / 299.5 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/0.1674, allocations: 28.25 kB / 299.5 MB, free: 20.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.1674, allocations: 5.719 kB / 299.5 MB, free: 20.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008037/0.1682, allocations: 1.368 MB / 300.9 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1682, allocations: 1.094 kB / 300.9 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.1688, allocations: 372.6 kB / 301.2 MB, free: 18.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.1691, allocations: 218.3 kB / 301.4 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.1692, allocations: 12.47 kB / 301.4 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.1695, allocations: 29.62 kB / 301.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.1696, allocations: 29.55 kB / 301.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1696, allocations: 7.266 kB / 301.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001362/0.1709, allocations: 0.9125 MB / 302.4 MB, free: 18.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1709, allocations: 0 / 302.4 MB, free: 18.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007485/0.1717, allocations: 210.4 kB / 302.6 MB, free: 18.63 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.001496/0.1732, allocations: 434.4 kB / 303.1 MB, free: 18.51 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005224/0.1737, allocations: 266.8 kB / 303.3 MB, free: 18.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.596e-05/0.1737, allocations: 19.5 kB / 303.3 MB, free: 18.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.174, allocations: 193.3 kB / 303.5 MB, free: 18.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008494/0.1748, allocations: 227.8 kB / 303.7 MB, free: 18.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.1793, allocations: 2.392 MB / 306.1 MB, free: 16.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1797, allocations: 349.4 kB / 306.5 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005382/0.1803, allocations: 154.3 kB / 306.6 MB, free: 16.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000579/0.1808, allocations: 253.5 kB / 306.9 MB, free: 16.71 MB / 266.7 MB Notification: Performance of SimCode: time 1.633e-06/0.1808, allocations: 0 / 306.9 MB, free: 16.71 MB / 266.7 MB Notification: Performance of Templates: time 0.02366/0.2045, allocations: 16.46 MB / 323.3 MB, free: 1.941 MB / 266.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 -s gbode -gbm=radauIIA3 -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.2409553369507194]