Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009813/0.0009813, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.036/1.036, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.885e-06/2.885e-06, allocations: 3.938 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.159e-05/4.447e-05, allocations: 6.25 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008662/0.008706, allocations: 5.414 MB / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.01232, allocations: 1.691 MB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006527/0.01298, allocations: 15.88 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.01424, allocations: 0.5133 MB / 275.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008096/0.01505, allocations: 365.9 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009031/0.01596, allocations: 371.2 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.01715, allocations: 0.9118 MB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004673/0.01762, allocations: 217.3 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007644/0.01838, allocations: 0.5185 MB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.01894, allocations: 383.1 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.01904, allocations: 80 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.01927, allocations: 127.8 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.01968, allocations: 0.5922 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004682/0.02015, allocations: 434.7 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.02151, allocations: 1.21 MB / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.02151, allocations: 0 / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.02151, allocations: 0 / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.288e-05/0.02154, allocations: 0 / 280.8 MB, free: 9.594 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.003259/0.0248, allocations: 2.211 MB / 283 MB, free: 7.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.02485, allocations: 8.031 kB / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.02518, allocations: 239.6 kB / 283.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.02667, allocations: 1.039 MB / 284.3 MB, free: 6.023 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.02678, allocations: 88.97 kB / 284.4 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.553e-05/0.02685, allocations: 55.94 kB / 284.4 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007944/0.02765, allocations: 0.7363 MB / 285.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.02766, allocations: 0 / 285.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.633e-05/0.02771, allocations: 28 kB / 285.2 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.02772, allocations: 12 kB / 285.2 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.02808, allocations: 177.7 kB / 285.4 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.03161, allocations: 2.989 MB / 288.3 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004928/0.03211, allocations: 229.9 kB / 288.6 MB, free: 1.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.03232, allocations: 103.6 kB / 288.7 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.03236, allocations: 4 kB / 288.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.03239, allocations: 45.33 kB / 288.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.03239, allocations: 0 / 288.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008415/0.03323, allocations: 427.3 kB / 289.1 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.065e-05/0.03331, allocations: 213.6 kB / 289.3 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1361/0.1694, allocations: 2.006 MB / 291.4 MB, free: 27.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.912e-05/0.1694, allocations: 31.61 kB / 291.4 MB, free: 27.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000778/0.1702, allocations: 0.9618 MB / 292.3 MB, free: 27.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.135e-05/0.1703, allocations: 79.62 kB / 292.4 MB, free: 27.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1704, allocations: 74.23 kB / 292.5 MB, free: 27.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.1705, allocations: 498.2 kB / 293 MB, free: 27.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1706, allocations: 41.33 kB / 293 MB, free: 27.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.1708, allocations: 417.4 kB / 293.4 MB, free: 26.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.1711, allocations: 271.2 kB / 293.7 MB, free: 26.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1711, allocations: 1.562 kB / 293.7 MB, free: 26.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008915/0.172, allocations: 434.6 kB / 294.1 MB, free: 26.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.172, allocations: 11.45 kB / 294.1 MB, free: 26.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1721, allocations: 3.375 kB / 294.1 MB, free: 26.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002378/0.1723, allocations: 43.38 kB / 294.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.1725, allocations: 71.12 kB / 294.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.1736, allocations: 2.081 MB / 296.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.174, allocations: 51.78 kB / 296.4 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.174, allocations: 11.97 kB / 296.4 MB, free: 24.43 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.0002101/0.1742, allocations: 179.6 kB / 296.6 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.1744, allocations: 175.6 kB / 296.7 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/0.175, allocations: 320.6 kB / 297 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.175, allocations: 2.469 kB / 297.1 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.175, allocations: 2.312 kB / 297.1 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.175, allocations: 1.453 kB / 297.1 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.1772, allocations: 1.517 MB / 298.6 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1772, allocations: 0.7031 kB / 298.6 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.1773, allocations: 42.75 kB / 298.6 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001185/0.1774, allocations: 36.73 kB / 298.7 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.1775, allocations: 9.875 kB / 298.7 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008601/0.1783, allocations: 2.045 MB / 300.7 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1783, allocations: 7.375 kB / 300.7 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000692/0.179, allocations: 0.5397 MB / 301.3 MB, free: 21.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.1795, allocations: 288.9 kB / 301.5 MB, free: 21.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.1796, allocations: 7.391 kB / 301.5 MB, free: 21.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.1798, allocations: 30.41 kB / 301.6 MB, free: 21.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1799, allocations: 27.12 kB / 301.6 MB, free: 21.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.18, allocations: 11.36 kB / 301.6 MB, free: 21.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001789/0.1818, allocations: 1.151 MB / 302.8 MB, free: 20.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1818, allocations: 0 / 302.8 MB, free: 20.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000833/0.1826, allocations: 210.6 kB / 303 MB, free: 20.75 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.0008973/0.1835, allocations: 344.8 kB / 303.3 MB, free: 20.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.184, allocations: 343.3 kB / 303.6 MB, free: 20.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.184, allocations: 5.594 kB / 303.6 MB, free: 20.42 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.1843, allocations: 262.1 kB / 303.9 MB, free: 20.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007885/0.1851, allocations: 204.5 kB / 304.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.1891, allocations: 2.419 MB / 306.5 MB, free: 18.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.1895, allocations: 347.4 kB / 306.9 MB, free: 18.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003643/0.1898, allocations: 154.9 kB / 307 MB, free: 18.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.19, allocations: 76.91 kB / 307.1 MB, free: 18.73 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.19, allocations: 0 / 307.1 MB, free: 18.73 MB / 266.7 MB Notification: Performance of Templates: time 0.02338/0.2134, allocations: 15.59 MB / 322.7 MB, free: 5.898 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4387717191129923]