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.001321/0.001321, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001463/0.001463, allocations: 214.7 kB / 23.74 MB, free: 4.656 MB / 14.72 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.94 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2768, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007998/0.2848, allocations: 6.127 MB / 437.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004211/0.289, allocations: 2.333 MB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005307/0.2895, allocations: 23.88 kB / 439.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.2912, allocations: 0.6224 MB / 440.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.2922, allocations: 461.6 kB / 440.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009255/0.2931, allocations: 406.8 kB / 441.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001522/0.2947, allocations: 1.313 MB / 442.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.2952, allocations: 306.4 kB / 442.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006068/0.2958, allocations: 0.5023 MB / 443.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000741/0.2966, allocations: 0.6072 MB / 443.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2967, allocations: 116 kB / 443.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.297, allocations: 176 kB / 444.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005094/0.2975, allocations: 0.6583 MB / 444.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000797/0.2983, allocations: 0.8894 MB / 445.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002739/0.301, allocations: 2.646 MB / 448.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3011, allocations: 0 / 448.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3011, allocations: 0 / 448.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.809e-05/0.3011, allocations: 4 kB / 448.3 MB, free: 5.621 MB / 350.1 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.004451/0.3055, allocations: 2.362 MB / 450.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.3056, allocations: 12.02 kB / 450.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001493/0.3057, allocations: 106.7 kB / 450.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003994/0.3061, allocations: 231.4 kB / 451 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002863/0.309, allocations: 1.635 MB / 452.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.3092, allocations: 185.8 kB / 452.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3093, allocations: 63.95 kB / 452.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.3108, allocations: 0.8258 MB / 453.7 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.3108, allocations: 11.92 kB / 453.7 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.739e-05/0.3109, allocations: 28.08 kB / 453.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.3109, allocations: 16 kB / 453.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.312, allocations: 0.5438 MB / 454.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006361/0.3184, allocations: 3.946 MB / 458.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.3197, allocations: 0.5 MB / 458.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.3204, allocations: 338.9 kB / 459.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.3205, allocations: 4.281 kB / 459.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.3205, allocations: 46.78 kB / 459.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.3205, allocations: 0 / 459.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002312/0.3228, allocations: 0.8738 MB / 460 MB, free: 9.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.323, allocations: 269 kB / 460.3 MB, free: 9.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004354/0.3273, allocations: 3.16 MB / 463.4 MB, free: 6.059 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/0.3274, allocations: 37.7 kB / 463.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008892/0.3283, allocations: 0.8615 MB / 464.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3284, allocations: 123 kB / 464.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.3286, allocations: 98.12 kB / 464.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3287, allocations: 318 kB / 464.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004858/0.3292, allocations: 216.9 kB / 465.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000611/0.3298, allocations: 397.2 kB / 465.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009601/0.3308, allocations: 0.5204 MB / 466 MB, free: 3.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3308, allocations: 0 / 466 MB, free: 3.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001657/0.3325, allocations: 0.7895 MB / 466.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3325, allocations: 4 kB / 466.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3325, allocations: 4 kB / 466.8 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003195/0.3328, allocations: 64.81 kB / 466.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.3333, allocations: 120 kB / 466.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.3354, allocations: 1.683 MB / 468.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007016/0.3361, allocations: 79.69 kB / 468.7 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.3362, allocations: 20 kB / 468.7 MB, free: 488 kB / 366.1 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.001048/0.3372, allocations: 0.6576 MB / 469.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002661/0.3375, allocations: 198.7 kB / 469.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.3378, allocations: 218.6 kB / 469.8 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3378, allocations: 4.125 kB / 469.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.3378, allocations: 7.938 kB / 469.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3378, allocations: 3.984 kB / 469.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.3416, allocations: 2.127 MB / 471.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3416, allocations: 4.062 kB / 471.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.342, allocations: 87.81 kB / 472 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.3422, allocations: 52.83 kB / 472.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/0.3422, allocations: 11.98 kB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/0.344, allocations: 1.64 MB / 473.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.344, allocations: 3.938 kB / 473.7 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.346, allocations: 0.9851 MB / 474.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.3471, allocations: 378.5 kB / 475.1 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.3473, allocations: 8.25 kB / 475.1 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.3478, allocations: 55.94 kB / 475.1 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3479, allocations: 43.94 kB / 475.2 MB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.3479, allocations: 15.98 kB / 475.2 MB, free: 9.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003479/0.3514, allocations: 2.255 MB / 477.5 MB, free: 7.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3514, allocations: 0 / 477.5 MB, free: 7.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008804/0.3523, allocations: 263.5 kB / 477.7 MB, free: 7.242 MB / 382.1 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.004056/0.3563, allocations: 1.901 MB / 479.6 MB, free: 5.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.3578, allocations: 0.5891 MB / 480.2 MB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.3578, allocations: 12.31 kB / 480.2 MB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.3585, allocations: 338.5 kB / 480.5 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.3598, allocations: 303.9 kB / 480.8 MB, free: 4.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.3906, allocations: 19.75 MB / 0.4889 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/0.3921, allocations: 1.492 MB / 0.4903 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008503/0.393, allocations: 311.2 kB / 0.4906 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/0.3938, allocations: 0.6438 MB / 0.4912 GB, free: 13.71 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3938, allocations: 3.938 kB / 0.4912 GB, free: 13.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08909/0.4829, allocations: 36.86 MB / 0.5272 GB, free: 9.074 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.35/16.83, allocations: 7.25 kB / 0.5272 GB, free: 9.07 MB / 446.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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: 19.97067479999896]