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.001266/0.001266, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001342/0.001342, allocations: 182.6 kB / 23.72 MB, free: 4.699 MB / 14.72 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.487/1.487, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2724, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008388/0.2808, allocations: 6.077 MB / 428.7 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004016/0.2848, allocations: 2.151 MB / 430.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005992/0.2854, allocations: 23.88 kB / 430.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.287, allocations: 0.6312 MB / 431.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009143/0.2879, allocations: 417.7 kB / 431.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000989/0.2889, allocations: 417.7 kB / 432.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001629/0.2905, allocations: 1.302 MB / 433.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005529/0.291, allocations: 314.2 kB / 433.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006397/0.2917, allocations: 0.5023 MB / 434.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007564/0.2924, allocations: 0.6072 MB / 435 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2926, allocations: 116 kB / 435.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003155/0.2929, allocations: 180 kB / 435.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007022/0.2936, allocations: 0.6506 MB / 436 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.2947, allocations: 0.8894 MB / 436.9 MB, free: 312 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00288/0.2975, allocations: 2.634 MB / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2975, allocations: 0 / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2975, allocations: 0 / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.626e-05/0.2976, allocations: 0 / 439.5 MB, free: 13.66 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.004175/0.3018, allocations: 2.35 MB / 441.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3018, allocations: 8.031 kB / 441.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.3019, allocations: 110.7 kB / 442 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.3023, allocations: 227.5 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.3051, allocations: 1.64 MB / 443.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.3053, allocations: 177.8 kB / 444 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.3055, allocations: 64 kB / 444.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.3071, allocations: 0.8336 MB / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.3071, allocations: 0 / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/0.3072, allocations: 28 kB / 444.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.3072, allocations: 16 kB / 444.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.3084, allocations: 0.5516 MB / 445.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006603/0.315, allocations: 3.93 MB / 449.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.3163, allocations: 0.5119 MB / 449.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000755/0.317, allocations: 342.1 kB / 450.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.3171, allocations: 288 / 450.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.3171, allocations: 38.84 kB / 450.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/0.3171, allocations: 0 / 450.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002364/0.3195, allocations: 0.8739 MB / 451.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.3197, allocations: 273 kB / 451.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.3239, allocations: 3.144 MB / 454.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-05/0.324, allocations: 37.64 kB / 454.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008253/0.3248, allocations: 0.8653 MB / 455.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.3249, allocations: 123 kB / 455.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.3251, allocations: 98.14 kB / 455.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3252, allocations: 322 kB / 456 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.3257, allocations: 208.9 kB / 456.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/0.3263, allocations: 397.5 kB / 456.6 MB, free: 12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009894/0.3273, allocations: 0.5206 MB / 457.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3273, allocations: 0 / 457.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001656/0.329, allocations: 0.7819 MB / 457.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.329, allocations: 8 kB / 457.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.329, allocations: 4 kB / 457.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003447/0.3294, allocations: 72.75 kB / 458 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.3298, allocations: 111.9 kB / 458.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.3319, allocations: 1.695 MB / 459.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006128/0.3325, allocations: 75.59 kB / 459.9 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.3325, allocations: 12 kB / 459.9 MB, free: 8.551 MB / 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.0009791/0.3335, allocations: 0.6594 MB / 460.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002663/0.3338, allocations: 194.7 kB / 460.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.3341, allocations: 222.5 kB / 461 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3341, allocations: 4 kB / 461 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3341, allocations: 3.938 kB / 461 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3341, allocations: 4.109 kB / 461 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.3378, allocations: 2.119 MB / 463.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3378, allocations: 0 / 463.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.3382, allocations: 87.94 kB / 463.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.3384, allocations: 56.81 kB / 463.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.3384, allocations: 15.94 kB / 463.2 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00173/0.3402, allocations: 1.641 MB / 464.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3402, allocations: 4.062 kB / 464.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.3421, allocations: 0.9765 MB / 465.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009713/0.3431, allocations: 382.5 kB / 466.2 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.3433, allocations: 8 kB / 466.2 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.3438, allocations: 55.95 kB / 466.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.3439, allocations: 44.17 kB / 466.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.344, allocations: 4 kB / 466.3 MB, free: 1.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003609/0.3476, allocations: 2.247 MB / 468.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3476, allocations: 0 / 468.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009934/0.3486, allocations: 259.6 kB / 468.8 MB, free: 15.36 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.004092/0.3527, allocations: 1.917 MB / 470.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.3541, allocations: 0.5889 MB / 471.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3541, allocations: 0 / 471.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000689/0.3548, allocations: 351.1 kB / 471.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.3562, allocations: 290.1 kB / 472 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03045/0.3866, allocations: 19.77 MB / 491.7 MB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.3879, allocations: 1.492 MB / 493.2 MB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006659/0.3886, allocations: 303.1 kB / 493.5 MB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008528/0.3894, allocations: 0.6399 MB / 494.2 MB, free: 5.801 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3894, allocations: 0 / 494.2 MB, free: 5.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08689/0.4763, allocations: 36.79 MB / 0.5185 GB, free: 1.242 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.37, allocations: 15.27 kB / 0.5185 GB, free: 1.23 MB / 430.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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: 19.293334224999853]