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.0009681/0.0009681, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.001259/0.001259, allocations: 168.2 kB / 24.82 MB, free: 9.277 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.9957/0.9957, allocations: 177 MB / 205.1 MB, free: 5.473 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..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.[0-9,]+..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 1.853e-06/1.853e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.546e-05/2.731e-05, allocations: 5.266 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01436/0.01439, allocations: 5.814 MB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005804/0.02019, allocations: 2.259 MB / 281.4 MB, free: 9.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002473/0.02044, allocations: 23.88 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004055/0.02449, allocations: 0.6105 MB / 282 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000599/0.02509, allocations: 477.2 kB / 282.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.02563, allocations: 399.3 kB / 282.9 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.02665, allocations: 1.344 MB / 284.2 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003394/0.03004, allocations: 290.3 kB / 284.5 MB, free: 5.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006264/0.03067, allocations: 0.7212 MB / 285.2 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004964/0.03116, allocations: 0.5067 MB / 285.7 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.03129, allocations: 112 kB / 285.8 MB, free: 4.645 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.03152, allocations: 179.9 kB / 286 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005969/0.03212, allocations: 0.6622 MB / 286.7 MB, free: 3.805 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000401/0.03252, allocations: 0.5219 MB / 287.2 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004199/0.03672, allocations: 1.464 MB / 288.7 MB, free: 1.812 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.03672, allocations: 4 kB / 288.7 MB, free: 1.809 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.03672, allocations: 4 kB / 288.7 MB, free: 1.805 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.03673, allocations: 0 / 288.7 MB, free: 1.805 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.1327/0.1695, allocations: 2.475 MB / 291.1 MB, free: 23.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1695, allocations: 14.28 kB / 291.2 MB, free: 23.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.1698, allocations: 273.1 kB / 291.4 MB, free: 23.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.1709, allocations: 1.074 MB / 292.5 MB, free: 23.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.171, allocations: 180.8 kB / 292.7 MB, free: 23.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.104e-05/0.1711, allocations: 70.38 kB / 292.7 MB, free: 23.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007284/0.1718, allocations: 0.9283 MB / 293.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1718, allocations: 1.219 kB / 293.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/0.1719, allocations: 31.81 kB / 293.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.1719, allocations: 14.5 kB / 293.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.1722, allocations: 176.6 kB / 293.9 MB, free: 22.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002692/0.1749, allocations: 3.049 MB / 296.9 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004322/0.1753, allocations: 274.9 kB / 297.2 MB, free: 21.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.1756, allocations: 194.6 kB / 297.4 MB, free: 21.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.1756, allocations: 10.7 kB / 297.4 MB, free: 21.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1756, allocations: 45.67 kB / 297.5 MB, free: 21.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.553e-06/0.1756, allocations: 0 / 297.5 MB, free: 21.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008227/0.1764, allocations: 0.4941 MB / 297.9 MB, free: 20.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.1765, allocations: 265.4 kB / 298.2 MB, free: 20.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.1784, allocations: 2.085 MB / 300.3 MB, free: 19.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.1784, allocations: 33.41 kB / 300.3 MB, free: 19.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006106/0.1791, allocations: 1.076 MB / 301.4 MB, free: 19.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.355e-05/0.1791, allocations: 126.6 kB / 301.5 MB, free: 19.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1792, allocations: 103.9 kB / 301.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.1793, allocations: 0.5002 MB / 302.1 MB, free: 18.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.689e-05/0.1794, allocations: 48.75 kB / 302.2 MB, free: 18.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.1796, allocations: 496.8 kB / 302.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.1798, allocations: 303.7 kB / 303 MB, free: 17.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.1798, allocations: 1.344 kB / 303 MB, free: 17.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005409/0.1804, allocations: 485.1 kB / 303.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1804, allocations: 8.109 kB / 303.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1804, allocations: 7.953 kB / 303.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.1805, allocations: 58.14 kB / 303.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.1808, allocations: 103 kB / 303.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007498/0.1815, allocations: 2.089 MB / 305.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.1818, allocations: 62.17 kB / 305.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.1818, allocations: 15.45 kB / 305.8 MB, free: 15.56 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 (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 (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.0001873/0.182, allocations: 191.3 kB / 306 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.1822, allocations: 200.8 kB / 306.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.1823, allocations: 160.4 kB / 306.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1823, allocations: 4.906 kB / 306.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1823, allocations: 0 / 306.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1823, allocations: 1.875 kB / 306.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.1838, allocations: 1.406 MB / 307.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1838, allocations: 0 / 307.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.184, allocations: 72.62 kB / 307.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.648e-05/0.1841, allocations: 44.78 kB / 307.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.1841, allocations: 13.25 kB / 307.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000641/0.1848, allocations: 2.055 MB / 309.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1848, allocations: 1.312 kB / 309.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/0.1853, allocations: 0.6308 MB / 310.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.1856, allocations: 297.3 kB / 310.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.1857, allocations: 16.28 kB / 310.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.186, allocations: 38.81 kB / 310.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.186, allocations: 40.81 kB / 310.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.1861, allocations: 17.16 kB / 310.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009044/0.187, allocations: 1.131 MB / 312.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.187, allocations: 0 / 312.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005712/0.1875, allocations: 267.9 kB / 312.3 MB, free: 11.59 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.001047/0.1886, allocations: 440.9 kB / 312.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.189, allocations: 396.5 kB / 313.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.189, allocations: 2.469 kB / 313.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.1891, allocations: 289.5 kB / 313.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.1897, allocations: 270.5 kB / 313.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.1924, allocations: 2.821 MB / 316.5 MB, free: 8.062 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.1927, allocations: 419.3 kB / 316.9 MB, free: 7.625 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.1929, allocations: 170.8 kB / 317.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/0.1933, allocations: 350 kB / 317.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1933, allocations: 4 kB / 317.4 MB, free: 7.105 MB / 266.7 MB Notification: Performance of Templates: time 0.02189/0.2152, allocations: 20.28 MB / 337.7 MB, free: 3 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] 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","",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.3442276753485203]