Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 84.34 kB / 20.95 MB, free: 3.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002654/0.002654, allocations: 165.3 kB / 24.27 MB, free: 140 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.52/1.52, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.255e-06/2.255e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.973e-05/3.198e-05, allocations: 6.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007991/0.008023, allocations: 4.97 MB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.01204, allocations: 1.792 MB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004763/0.01252, allocations: 19.88 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.01375, allocations: 0.5056 MB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000848/0.0146, allocations: 409.7 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008429/0.01544, allocations: 375.2 kB / 280.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.01669, allocations: 0.9196 MB / 281.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.01715, allocations: 225.2 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.0182, allocations: 0.5146 MB / 282 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000534/0.01874, allocations: 375.1 kB / 282.4 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.01885, allocations: 76 kB / 282.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.0191, allocations: 127.9 kB / 282.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005742/0.01967, allocations: 0.5922 MB / 283.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.02019, allocations: 434.6 kB / 283.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002399/0.02259, allocations: 2.076 MB / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.02259, allocations: 0 / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.02259, allocations: 0 / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.076e-05/0.02261, allocations: 0 / 285.7 MB, free: 4.406 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.003635/0.02625, allocations: 2.046 MB / 287.7 MB, free: 2.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.02629, allocations: 8.031 kB / 287.7 MB, free: 2.312 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/0.0267, allocations: 235.7 kB / 288 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.02959, allocations: 1.474 MB / 289.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.02973, allocations: 100.9 kB / 289.5 MB, free: 476 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.924e-05/0.02983, allocations: 59.88 kB / 289.6 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.116/0.1459, allocations: 0.8279 MB / 290.4 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.1459, allocations: 0 / 290.4 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-05/0.1459, allocations: 22.09 kB / 290.4 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.146, allocations: 12.97 kB / 290.4 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007437/0.1467, allocations: 343.9 kB / 290.8 MB, free: 27.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004375/0.1511, allocations: 2.863 MB / 293.6 MB, free: 25.86 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1522, allocations: 362.4 kB / 294 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000472/0.1526, allocations: 177.3 kB / 294.2 MB, free: 25.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.1527, allocations: 3.906 kB / 294.2 MB, free: 25.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1527, allocations: 34.8 kB / 294.2 MB, free: 25.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.084e-06/0.1527, allocations: 0 / 294.2 MB, free: 25.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001926/0.1546, allocations: 0.6358 MB / 294.8 MB, free: 25.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.1547, allocations: 214.2 kB / 295.1 MB, free: 25.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/0.1582, allocations: 2.864 MB / 297.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.1582, allocations: 32.23 kB / 297.9 MB, free: 24.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005807/0.1588, allocations: 0.7947 MB / 298.7 MB, free: 23.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.1589, allocations: 83.61 kB / 298.8 MB, free: 23.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.159, allocations: 65.28 kB / 298.9 MB, free: 23.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.814e-05/0.159, allocations: 320.6 kB / 299.2 MB, free: 23.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.1594, allocations: 121.6 kB / 299.3 MB, free: 23.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/0.1598, allocations: 447.5 kB / 299.8 MB, free: 22.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000648/0.1604, allocations: 363.5 kB / 300.1 MB, free: 22.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1604, allocations: 1.281 kB / 300.1 MB, free: 22.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001108/0.1615, allocations: 0.5698 MB / 300.7 MB, free: 22.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1615, allocations: 10.81 kB / 300.7 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1616, allocations: 7.188 kB / 300.7 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002666/0.1618, allocations: 58.98 kB / 300.8 MB, free: 22.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1621, allocations: 74.56 kB / 300.8 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.1634, allocations: 1.599 MB / 302.4 MB, free: 20.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.1638, allocations: 54.25 kB / 302.5 MB, free: 20.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.1639, allocations: 17.97 kB / 302.5 MB, free: 20.8 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.0006078/0.1645, allocations: 0.5733 MB / 303.1 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.1647, allocations: 176.6 kB / 303.2 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.1658, allocations: 0.5087 MB / 303.8 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1658, allocations: 3.266 kB / 303.8 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1658, allocations: 1.312 kB / 303.8 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1658, allocations: 1.219 kB / 303.8 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.1681, allocations: 1.436 MB / 305.2 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1681, allocations: 0 / 305.2 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.1684, allocations: 42.59 kB / 305.2 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001473/0.1685, allocations: 49.27 kB / 305.3 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1685, allocations: 2.156 kB / 305.3 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.1695, allocations: 1.544 MB / 306.8 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1695, allocations: 3.984 kB / 306.8 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.1708, allocations: 0.7173 MB / 307.6 MB, free: 17.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004901/0.1713, allocations: 301.5 kB / 307.8 MB, free: 17.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.1714, allocations: 11.94 kB / 307.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/0.1718, allocations: 46.89 kB / 307.9 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.1719, allocations: 39.88 kB / 307.9 MB, free: 17.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.1719, allocations: 4 kB / 307.9 MB, free: 17.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001918/0.1739, allocations: 2.043 MB / 310 MB, free: 15.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1739, allocations: 0 / 310 MB, free: 15.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006925/0.1745, allocations: 209 kB / 310.2 MB, free: 15.05 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.001627/0.1762, allocations: 390.1 kB / 310.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000941/0.1771, allocations: 426.9 kB / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1771, allocations: 320 / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004398/0.1776, allocations: 262.9 kB / 311.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009474/0.1785, allocations: 218.1 kB / 311.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/0.1825, allocations: 3.025 MB / 314.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006647/0.1831, allocations: 0.7666 MB / 315.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.1836, allocations: 249.4 kB / 315.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.1838, allocations: 80.33 kB / 315.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of SimCode: time 1.833e-06/0.1838, allocations: 4 kB / 315.6 MB, free: 9.789 MB / 266.7 MB Notification: Performance of Templates: time 0.02564/0.2094, allocations: 15.61 MB / 331.2 MB, free: 10.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 4.994485588977113]