Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001473/0.001473, allocations: 88.33 kB / 20.95 MB, free: 3.457 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.001598/0.001598, allocations: 157.7 kB / 24.27 MB, free: 152 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.526/1.526, allocations: 177.1 MB / 204.6 MB, free: 5.598 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_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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.639e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00937/0.009396, allocations: 5.426 MB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.01391, allocations: 2.182 MB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005111/0.01442, allocations: 19.88 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.01597, allocations: 0.6105 MB / 280.5 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.01701, allocations: 469.3 kB / 281 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009066/0.01792, allocations: 407.2 kB / 281.4 MB, free: 8.707 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.01971, allocations: 1.352 MB / 282.7 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007969/0.02051, allocations: 290.3 kB / 283 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.02151, allocations: 0.7173 MB / 283.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007619/0.02227, allocations: 0.5066 MB / 284.2 MB, free: 5.828 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001757/0.02245, allocations: 116 kB / 284.4 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003534/0.0228, allocations: 179.8 kB / 284.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006323/0.02344, allocations: 0.6623 MB / 285.2 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006859/0.02412, allocations: 0.5297 MB / 285.7 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003056/0.02718, allocations: 2.586 MB / 288.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.02718, allocations: 4 kB / 288.3 MB, free: 1.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.02718, allocations: 4 kB / 288.3 MB, free: 1.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.592e-05/0.02722, allocations: 0 / 288.3 MB, free: 1.742 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.1522/0.1795, allocations: 2.331 MB / 290.7 MB, free: 27.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1795, allocations: 9.688 kB / 290.7 MB, free: 27.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006219/0.1801, allocations: 274.2 kB / 290.9 MB, free: 27.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003121/0.1832, allocations: 1.659 MB / 292.6 MB, free: 26.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.1834, allocations: 186.2 kB / 292.8 MB, free: 26.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.1835, allocations: 65.97 kB / 292.8 MB, free: 26.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1851, allocations: 1.193 MB / 294 MB, free: 25.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.1851, allocations: 1.094 kB / 294 MB, free: 25.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.1852, allocations: 27.28 kB / 294.1 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1852, allocations: 15.25 kB / 294.1 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.1863, allocations: 0.5499 MB / 294.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006074/0.1923, allocations: 3.525 MB / 298.1 MB, free: 23.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1936, allocations: 0.5038 MB / 298.6 MB, free: 23.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007339/0.1944, allocations: 341.6 kB / 299 MB, free: 23.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.1944, allocations: 6.812 kB / 299 MB, free: 23.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1944, allocations: 39.81 kB / 299 MB, free: 23.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.953e-06/0.1944, allocations: 3.812 kB / 299 MB, free: 23.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.002442/0.1968, allocations: 0.8736 MB / 299.9 MB, free: 23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.1969, allocations: 271 kB / 300.2 MB, free: 22.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.2015, allocations: 3.113 MB / 303.3 MB, free: 21.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.2015, allocations: 32.45 kB / 303.3 MB, free: 21.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005793/0.2021, allocations: 0.8776 MB / 304.2 MB, free: 20.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.2022, allocations: 120.3 kB / 304.3 MB, free: 20.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.2024, allocations: 96.7 kB / 304.4 MB, free: 20.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.2024, allocations: 325.7 kB / 304.7 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.2029, allocations: 216.6 kB / 304.9 MB, free: 20.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000504/0.2034, allocations: 0.5814 MB / 305.5 MB, free: 19.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007867/0.2041, allocations: 0.5168 MB / 306 MB, free: 19.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2041, allocations: 4 kB / 306 MB, free: 19.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001557/0.2057, allocations: 0.7934 MB / 306.8 MB, free: 18.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.2057, allocations: 4 kB / 306.8 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.2057, allocations: 7.125 kB / 306.8 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003077/0.206, allocations: 69.06 kB / 306.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/0.2065, allocations: 119.8 kB / 307 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.2078, allocations: 1.666 MB / 308.7 MB, free: 16.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.2085, allocations: 70.16 kB / 308.8 MB, free: 16.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.2085, allocations: 23.94 kB / 308.8 MB, free: 16.23 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.0007469/0.2093, allocations: 0.65 MB / 309.4 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/0.2096, allocations: 200.4 kB / 309.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.2099, allocations: 214.1 kB / 309.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2099, allocations: 4 kB / 309.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2099, allocations: 3.984 kB / 309.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2099, allocations: 0 / 309.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.2129, allocations: 1.845 MB / 311.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.2129, allocations: 0.5625 kB / 311.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.2132, allocations: 77.94 kB / 311.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.2134, allocations: 64.89 kB / 311.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.2134, allocations: 11.94 kB / 311.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.2146, allocations: 1.604 MB / 313.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2146, allocations: 0 / 313.4 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00162/0.2162, allocations: 0.9837 MB / 314.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006469/0.2168, allocations: 366.7 kB / 314.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.217, allocations: 19.98 kB / 314.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005174/0.2175, allocations: 47.95 kB / 314.9 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2176, allocations: 51.28 kB / 314.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.2177, allocations: 12 kB / 314.9 MB, free: 9.934 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002201/0.2199, allocations: 2.211 MB / 317.1 MB, free: 7.703 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2199, allocations: 4 kB / 317.1 MB, free: 7.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008295/0.2207, allocations: 263.5 kB / 317.4 MB, free: 7.441 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.002187/0.2229, allocations: 0.4981 MB / 317.9 MB, free: 7.211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.224, allocations: 0.5859 MB / 318.5 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.224, allocations: 4 kB / 318.5 MB, free: 6.609 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005516/0.2246, allocations: 355.8 kB / 318.8 MB, free: 6.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.2258, allocations: 270.2 kB / 319.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/0.2304, allocations: 3.588 MB / 322.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007375/0.2312, allocations: 0.9158 MB / 323.6 MB, free: 1.406 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005734/0.2317, allocations: 290.8 kB / 323.9 MB, free: 1.117 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/0.232, allocations: 92.5 kB / 324 MB, free: 1.027 MB / 266.7 MB Notification: Performance of SimCode: time 1.453e-06/0.232, allocations: 0 / 324 MB, free: 1.027 MB / 266.7 MB Notification: Performance of Templates: time 0.0368/0.2688, allocations: 19.18 MB / 343.1 MB, free: 14.04 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.091666528023779]