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.001175/0.001175, allocations: 95.5 kB / 21.19 MB, free: 3.391 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.001048/0.001048, allocations: 168.5 kB / 24.56 MB, free: 28 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.001/1.001, allocations: 177 MB / 204.8 MB, free: 5.555 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.443e-06/1.443e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.611e-05, allocations: 2.312 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007021/0.007047, allocations: 5.459 MB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.01001, allocations: 1.846 MB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004473/0.01046, allocations: 19.88 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.01156, allocations: 0.5172 MB / 280.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008785/0.01244, allocations: 409.6 kB / 281.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007226/0.01316, allocations: 375.2 kB / 281.5 MB, free: 8.785 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.01416, allocations: 0.9196 MB / 282.4 MB, free: 7.863 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004805/0.01464, allocations: 217.4 kB / 282.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005749/0.01521, allocations: 0.5224 MB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004463/0.01566, allocations: 387 kB / 283.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.919e-05/0.01575, allocations: 79.98 kB / 283.6 MB, free: 6.664 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.01594, allocations: 123.9 kB / 283.7 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003732/0.01632, allocations: 0.5961 MB / 284.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003776/0.01669, allocations: 430.7 kB / 284.7 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.01783, allocations: 1.199 MB / 285.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.01783, allocations: 0 / 285.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01783, allocations: 0 / 285.9 MB, free: 4.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.01785, allocations: 4 kB / 286 MB, free: 4.316 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.002652/0.02051, allocations: 2.219 MB / 288.2 MB, free: 2.051 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.02055, allocations: 19.98 kB / 288.2 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.02082, allocations: 227.7 kB / 288.4 MB, free: 1.809 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.02215, allocations: 1.043 MB / 289.5 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.923e-05/0.02225, allocations: 88.97 kB / 289.5 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.02232, allocations: 56.38 kB / 289.6 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1114/0.1337, allocations: 0.7338 MB / 290.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1337, allocations: 0 / 290.3 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.1338, allocations: 21.03 kB / 290.4 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.1338, allocations: 11.28 kB / 290.4 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.1342, allocations: 175.2 kB / 290.5 MB, free: 24.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.1374, allocations: 2.999 MB / 293.5 MB, free: 22.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.1379, allocations: 223.3 kB / 293.8 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.1381, allocations: 105 kB / 293.9 MB, free: 22.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.1381, allocations: 5.5 kB / 293.9 MB, free: 22.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.1381, allocations: 41.2 kB / 293.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.1381, allocations: 1.219 kB / 293.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008444/0.139, allocations: 423.8 kB / 294.3 MB, free: 22.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.139, allocations: 210.1 kB / 294.5 MB, free: 22.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.1414, allocations: 2.022 MB / 296.5 MB, free: 21.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.1414, allocations: 32.55 kB / 296.6 MB, free: 21.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006776/0.1421, allocations: 0.9677 MB / 297.5 MB, free: 21.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.1422, allocations: 84.02 kB / 297.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.1423, allocations: 75.33 kB / 297.7 MB, free: 21.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.976e-05/0.1423, allocations: 499.9 kB / 298.2 MB, free: 20.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.737e-05/0.1424, allocations: 41.44 kB / 298.2 MB, free: 20.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1426, allocations: 421.6 kB / 298.6 MB, free: 20.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.1429, allocations: 270.5 kB / 298.9 MB, free: 19.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1429, allocations: 2.312 kB / 298.9 MB, free: 19.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005913/0.1435, allocations: 422.1 kB / 299.3 MB, free: 19.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1435, allocations: 11.73 kB / 299.3 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.1435, allocations: 3.5 kB / 299.3 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.1437, allocations: 44.81 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.1439, allocations: 71.48 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008562/0.1447, allocations: 2.093 MB / 301.5 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.145, allocations: 44.44 kB / 301.6 MB, free: 17.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.145, allocations: 18.19 kB / 301.6 MB, free: 17.61 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.0001696/0.1452, allocations: 181.4 kB / 301.8 MB, free: 17.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.1453, allocations: 175.6 kB / 301.9 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004611/0.1458, allocations: 326.5 kB / 302.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1458, allocations: 2.875 kB / 302.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1458, allocations: 4.812 kB / 302.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1458, allocations: 1.125 kB / 302.3 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.1477, allocations: 1.53 MB / 303.8 MB, free: 16.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1477, allocations: 1 kB / 303.8 MB, free: 16.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.1479, allocations: 35.3 kB / 303.8 MB, free: 16.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.529e-05/0.148, allocations: 36.03 kB / 303.9 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.148, allocations: 6.438 kB / 303.9 MB, free: 16.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007241/0.1487, allocations: 2.048 MB / 305.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1487, allocations: 1.375 kB / 305.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.1493, allocations: 0.5423 MB / 306.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003803/0.1497, allocations: 283.2 kB / 306.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.1498, allocations: 10.06 kB / 306.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.15, allocations: 30.33 kB / 306.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.785e-05/0.1501, allocations: 31.75 kB / 306.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1501, allocations: 8.578 kB / 306.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001502/0.1516, allocations: 1.159 MB / 308 MB, free: 13.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1516, allocations: 0 / 308 MB, free: 13.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006582/0.1523, allocations: 207.5 kB / 308.2 MB, free: 13.41 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.0007752/0.1531, allocations: 338.2 kB / 308.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005039/0.1536, allocations: 349.8 kB / 308.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1536, allocations: 4.531 kB / 308.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.1538, allocations: 260.7 kB / 309.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007095/0.1545, allocations: 222.5 kB / 309.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.1577, allocations: 2.384 MB / 311.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.1579, allocations: 347.3 kB / 312.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002623/0.1582, allocations: 151 kB / 312.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.1583, allocations: 79.56 kB / 312.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of SimCode: time 1.663e-06/0.1583, allocations: 0 / 312.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of Templates: time 0.02182/0.1802, allocations: 16.2 MB / 328.5 MB, free: 11.71 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.2927601719275117]