Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.002393/0.002393, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002706/0.002706, allocations: 149.5 kB / 24.26 MB, free: 168 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.525/1.525, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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_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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.969e-05/4.132e-05, allocations: 6.25 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009295/0.009337, allocations: 5.873 MB / 273.2 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004012/0.01335, allocations: 2.119 MB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004164/0.01376, allocations: 19.88 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.01531, allocations: 0.6066 MB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008777/0.01619, allocations: 425.5 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.0173, allocations: 415.2 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001685/0.01898, allocations: 1.34 MB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005589/0.01954, allocations: 290.4 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.02054, allocations: 0.7212 MB / 279.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007962/0.02134, allocations: 0.5183 MB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.02153, allocations: 120 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000357/0.02188, allocations: 175.9 kB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006407/0.02252, allocations: 0.67 MB / 280.6 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006977/0.02322, allocations: 0.5258 MB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003526/0.02675, allocations: 2.586 MB / 283.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.02675, allocations: 0 / 283.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.02675, allocations: 0 / 283.7 MB, free: 6.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.708e-05/0.02682, allocations: 0 / 283.7 MB, free: 6.301 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.005281/0.0321, allocations: 2.68 MB / 286.3 MB, free: 3.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.03215, allocations: 12.92 kB / 286.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004481/0.03259, allocations: 271.5 kB / 286.6 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.03516, allocations: 1.225 MB / 287.8 MB, free: 2.012 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.03537, allocations: 182.4 kB / 288 MB, free: 1.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.0355, allocations: 79.88 kB / 288.1 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.03737, allocations: 1.227 MB / 289.3 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.03739, allocations: 0 / 289.3 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.208e-05/0.03746, allocations: 28 kB / 289.4 MB, free: 320 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.03748, allocations: 19.94 kB / 289.4 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1286/0.1661, allocations: 0.499 MB / 289.9 MB, free: 31.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008594/0.1747, allocations: 4.438 MB / 294.3 MB, free: 29.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.1759, allocations: 470.9 kB / 294.8 MB, free: 28.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007083/0.1766, allocations: 337.9 kB / 295.1 MB, free: 28.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.1766, allocations: 6.625 kB / 295.1 MB, free: 28.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.1767, allocations: 40.98 kB / 295.2 MB, free: 28.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.705e-06/0.1767, allocations: 1.062 kB / 295.2 MB, free: 28.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.00231/0.179, allocations: 0.7872 MB / 295.9 MB, free: 28.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.179, allocations: 275.2 kB / 296.2 MB, free: 28.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00388/0.1829, allocations: 2.596 MB / 298.8 MB, free: 27.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.183, allocations: 40.64 kB / 298.8 MB, free: 26.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.1841, allocations: 1.2 MB / 300 MB, free: 26.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1842, allocations: 135.8 kB / 300.2 MB, free: 26.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.1844, allocations: 121.7 kB / 300.3 MB, free: 25.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1845, allocations: 0.5118 MB / 300.8 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.185, allocations: 181.8 kB / 301 MB, free: 25.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.1855, allocations: 0.6403 MB / 301.6 MB, free: 24.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007981/0.1863, allocations: 0.5486 MB / 302.2 MB, free: 24.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1863, allocations: 1.938 kB / 302.2 MB, free: 24.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001731/0.188, allocations: 0.7478 MB / 302.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1881, allocations: 9.109 kB / 302.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1881, allocations: 3.375 kB / 302.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.1884, allocations: 70.59 kB / 303 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.1888, allocations: 106 kB / 303.1 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.1907, allocations: 2.271 MB / 305.4 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008034/0.1915, allocations: 61.44 kB / 305.4 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.1916, allocations: 19.73 kB / 305.5 MB, free: 21.93 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.0006322/0.1922, allocations: 320.4 kB / 305.8 MB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.1924, allocations: 195.2 kB / 306 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002435/0.1927, allocations: 160 kB / 306.1 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1927, allocations: 4.547 kB / 306.1 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1927, allocations: 0 / 306.1 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1927, allocations: 3.781 kB / 306.1 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.1964, allocations: 2.365 MB / 308.5 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.1964, allocations: 3.938 kB / 308.5 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.1967, allocations: 75.95 kB / 308.6 MB, free: 20.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.1969, allocations: 59.64 kB / 308.6 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.1969, allocations: 12 kB / 308.6 MB, free: 20.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.1981, allocations: 2.224 MB / 310.9 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1981, allocations: 0 / 310.9 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.1995, allocations: 0.9642 MB / 311.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008316/0.2004, allocations: 342.9 kB / 312.2 MB, free: 16.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.2005, allocations: 8 kB / 312.2 MB, free: 16.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.201, allocations: 43.97 kB / 312.2 MB, free: 16.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.2011, allocations: 47.86 kB / 312.3 MB, free: 16.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.2011, allocations: 8 kB / 312.3 MB, free: 16.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001931/0.203, allocations: 1.472 MB / 313.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.203, allocations: 0 / 313.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000887/0.2039, allocations: 269.3 kB / 314 MB, free: 14.58 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.003247/0.2072, allocations: 0.4949 MB / 314.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.2083, allocations: 0.6481 MB / 315.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2083, allocations: 4 kB / 315.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.2088, allocations: 401.9 kB / 315.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.21, allocations: 261.1 kB / 315.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.2141, allocations: 2.978 MB / 318.8 MB, free: 9.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00069/0.2148, allocations: 0.8429 MB / 319.6 MB, free: 9.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005217/0.2154, allocations: 190.8 kB / 319.8 MB, free: 8.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.2156, allocations: 92.5 kB / 319.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2156, allocations: 0 / 319.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of Templates: time 0.03395/0.2495, allocations: 19.09 MB / 339 MB, free: 5.918 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.150330547010526]