Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001953/0.001953, allocations: 100.2 kB / 20.96 MB, free: 3.465 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.001874/0.001874, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 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.472/1.472, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_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.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.484e-06/2.484e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.559e-05/3.807e-05, allocations: 2.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009323/0.009361, allocations: 5.418 MB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004744/0.0141, allocations: 2.177 MB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006401/0.01475, allocations: 19.88 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.01663, allocations: 0.6222 MB / 280.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.01786, allocations: 465.3 kB / 280.9 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009838/0.01884, allocations: 407.2 kB / 281.3 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001989/0.02083, allocations: 1.348 MB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006344/0.02147, allocations: 298.3 kB / 282.9 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.02257, allocations: 0.7135 MB / 283.6 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007353/0.02331, allocations: 0.5027 MB / 284.1 MB, free: 5.812 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.02348, allocations: 119.9 kB / 284.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003561/0.02384, allocations: 183.9 kB / 284.4 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006281/0.02447, allocations: 0.6584 MB / 285.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006844/0.02515, allocations: 0.5297 MB / 285.6 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003385/0.02854, allocations: 2.594 MB / 288.2 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.02854, allocations: 0 / 288.2 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.02854, allocations: 0 / 288.2 MB, free: 1.723 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.955e-05/0.02858, allocations: 0 / 288.2 MB, free: 1.723 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.1093/0.1379, allocations: 2.34 MB / 290.5 MB, free: 27.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1379, allocations: 10.25 kB / 290.6 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/0.1383, allocations: 269.5 kB / 290.8 MB, free: 27.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00247/0.1408, allocations: 1.66 MB / 292.5 MB, free: 26.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.1409, allocations: 182.1 kB / 292.7 MB, free: 26.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.141, allocations: 73.03 kB / 292.7 MB, free: 26.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.1424, allocations: 1.178 MB / 293.9 MB, free: 25.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1424, allocations: 2.531 kB / 293.9 MB, free: 25.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.1425, allocations: 28 kB / 293.9 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.1425, allocations: 19.28 kB / 294 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009809/0.1435, allocations: 0.5518 MB / 294.5 MB, free: 25.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.1487, allocations: 3.532 MB / 298 MB, free: 23.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.15, allocations: 0.4968 MB / 298.5 MB, free: 23.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000734/0.1507, allocations: 346.8 kB / 298.9 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.1508, allocations: 9.906 kB / 298.9 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.1508, allocations: 38.92 kB / 298.9 MB, free: 23.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.803e-06/0.1508, allocations: 1.5 kB / 298.9 MB, free: 23.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.002385/0.1532, allocations: 0.8738 MB / 299.8 MB, free: 22.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.1532, allocations: 266.7 kB / 300.1 MB, free: 22.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003929/0.1572, allocations: 3.112 MB / 303.2 MB, free: 21.42 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.1572, allocations: 32.73 kB / 303.2 MB, free: 21.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006005/0.1578, allocations: 0.8758 MB / 304.1 MB, free: 20.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.774e-05/0.1579, allocations: 123.3 kB / 304.2 MB, free: 20.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.1581, allocations: 101.7 kB / 304.3 MB, free: 20.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.421e-05/0.1581, allocations: 325.7 kB / 304.6 MB, free: 20.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.1585, allocations: 206.4 kB / 304.8 MB, free: 20.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.159, allocations: 0.5927 MB / 305.4 MB, free: 19.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008194/0.1598, allocations: 0.5102 MB / 305.9 MB, free: 18.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1598, allocations: 7.938 kB / 305.9 MB, free: 18.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001676/0.1615, allocations: 0.7905 MB / 306.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1615, allocations: 8.031 kB / 306.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1615, allocations: 4 kB / 306.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/0.1619, allocations: 72.75 kB / 306.8 MB, free: 17.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/0.1623, allocations: 114.5 kB / 306.9 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1637, allocations: 1.667 MB / 308.6 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008384/0.1645, allocations: 67.66 kB / 308.6 MB, free: 16.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-05/0.1646, allocations: 24.09 kB / 308.7 MB, free: 16 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 (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 (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.0007804/0.1654, allocations: 0.6581 MB / 309.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/0.1657, allocations: 194.8 kB / 309.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002743/0.166, allocations: 214.1 kB / 309.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.166, allocations: 4 kB / 309.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.166, allocations: 0.7969 kB / 309.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.166, allocations: 7.922 kB / 309.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.169, allocations: 1.831 MB / 311.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.169, allocations: 0 / 311.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.1694, allocations: 83.89 kB / 311.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000215/0.1696, allocations: 65.8 kB / 311.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.1697, allocations: 8 kB / 311.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.1709, allocations: 1.616 MB / 313.3 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1709, allocations: 4.656 kB / 313.3 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.1727, allocations: 0.9834 MB / 314.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007521/0.1735, allocations: 370.7 kB / 314.7 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.1737, allocations: 8 kB / 314.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.1742, allocations: 55.88 kB / 314.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.1743, allocations: 39.94 kB / 314.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.1743, allocations: 19.98 kB / 314.8 MB, free: 9.691 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002438/0.1767, allocations: 2.211 MB / 317 MB, free: 7.461 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1767, allocations: 0 / 317 MB, free: 7.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009688/0.1777, allocations: 263.6 kB / 317.3 MB, free: 7.203 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.002219/0.1799, allocations: 495.9 kB / 317.8 MB, free: 6.973 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.1812, allocations: 0.6 MB / 318.4 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.1812, allocations: 4 kB / 318.4 MB, free: 6.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.1817, allocations: 347.3 kB / 318.7 MB, free: 6.004 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.183, allocations: 256.3 kB / 319 MB, free: 5.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004739/0.1878, allocations: 3.596 MB / 322.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007545/0.1885, allocations: 0.912 MB / 323.5 MB, free: 1.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006079/0.1891, allocations: 298.8 kB / 323.8 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.1894, allocations: 88.5 kB / 323.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1894, allocations: 0 / 323.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of Templates: time 0.03789/0.2273, allocations: 19.18 MB / 343 MB, free: 13.74 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.314977155998349]