Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001694/0.001694, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002192/0.002192, allocations: 203.9 kB / 23.73 MB, free: 4.379 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.793 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_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2525, allocations: 53.36 MB / 431.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007423/0.2599, allocations: 4.968 MB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.2634, allocations: 1.797 MB / 437.8 MB, free: 12 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005509/0.264, allocations: 15.98 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.2652, allocations: 0.5096 MB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009326/0.2661, allocations: 390 kB / 438.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000952/0.2671, allocations: 381.8 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2682, allocations: 0.9002 MB / 440 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.2687, allocations: 233.3 kB / 440.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004625/0.2692, allocations: 378.8 kB / 440.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005493/0.2697, allocations: 458.3 kB / 441 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.2698, allocations: 80 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.2701, allocations: 123.9 kB / 441.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005125/0.2706, allocations: 0.5921 MB / 441.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.2712, allocations: 0.5435 MB / 442.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002441/0.2736, allocations: 2.152 MB / 444.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2736, allocations: 0 / 444.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2736, allocations: 7.938 kB / 444.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.706e-05/0.2737, allocations: 0 / 444.5 MB, free: 9.27 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003831/0.2775, allocations: 2.075 MB / 446.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.2775, allocations: 16.02 kB / 446.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.2777, allocations: 86.72 kB / 446.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.278, allocations: 195.7 kB / 446.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/0.2804, allocations: 1.459 MB / 448.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.2806, allocations: 88.41 kB / 448.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.219e-05/0.2806, allocations: 48 kB / 448.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.2819, allocations: 0.8403 MB / 449.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2819, allocations: 0 / 449.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.845e-05/0.2819, allocations: 20 kB / 449.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.2819, allocations: 12 kB / 449.4 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007186/0.2827, allocations: 351.7 kB / 449.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004925/0.2876, allocations: 2.938 MB / 452.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.2887, allocations: 360.4 kB / 453 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004673/0.2892, allocations: 164.8 kB / 453.2 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.2892, allocations: 0 / 453.2 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.2892, allocations: 38.56 kB / 453.2 MB, free: 276 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.2892, allocations: 4 kB / 453.2 MB, free: 272 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001859/0.2911, allocations: 0.6371 MB / 453.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.2912, allocations: 209.6 kB / 454 MB, free: 15.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/0.295, allocations: 2.908 MB / 457 MB, free: 12.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.295, allocations: 33.7 kB / 457 MB, free: 12.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008495/0.2959, allocations: 0.7899 MB / 457.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.296, allocations: 75.38 kB / 457.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.2961, allocations: 73.98 kB / 457.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2963, allocations: 318 kB / 458.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003514/0.2966, allocations: 120.6 kB / 458.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.2973, allocations: 446.9 kB / 458.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007479/0.298, allocations: 363.9 kB / 459.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.298, allocations: 3.938 kB / 459.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001309/0.2993, allocations: 0.5634 MB / 459.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.2993, allocations: 8 kB / 459.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2994, allocations: 4 kB / 459.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.2997, allocations: 56.77 kB / 459.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.3, allocations: 71.89 kB / 459.9 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.3018, allocations: 1.617 MB / 461.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.3022, allocations: 59.7 kB / 461.5 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.3023, allocations: 20.09 kB / 461.5 MB, free: 7.52 MB / 366.1 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.0008515/0.3031, allocations: 0.5834 MB / 462.1 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.3034, allocations: 170.9 kB / 462.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.3046, allocations: 0.5065 MB / 462.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3046, allocations: 4 kB / 462.8 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.3046, allocations: 3.938 kB / 462.8 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3046, allocations: 7.938 kB / 462.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.3074, allocations: 1.482 MB / 464.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3074, allocations: 0 / 464.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.3076, allocations: 55.92 kB / 464.4 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/0.3078, allocations: 44.83 kB / 464.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3078, allocations: 4 kB / 464.4 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.3094, allocations: 1.566 MB / 466 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3094, allocations: 3.984 kB / 466 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3109, allocations: 0.712 MB / 466.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008086/0.3118, allocations: 314.7 kB / 467 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.3119, allocations: 4 kB / 467 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.3123, allocations: 43.95 kB / 467 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3124, allocations: 35.94 kB / 467.1 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.3124, allocations: 11.94 kB / 467.1 MB, free: 1.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003009/0.3154, allocations: 2.075 MB / 469.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3154, allocations: 0 / 469.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007811/0.3162, allocations: 203.7 kB / 469.4 MB, free: 15.45 MB / 382.1 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.003153/0.3194, allocations: 1.548 MB / 470.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.3205, allocations: 422.6 kB / 471.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.3205, allocations: 4 kB / 471.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005313/0.321, allocations: 266.4 kB / 471.6 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.322, allocations: 225.5 kB / 471.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02735/0.3494, allocations: 17.53 MB / 489.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.3504, allocations: 0.7707 MB / 490.1 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006533/0.3511, allocations: 242.8 kB / 490.3 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008187/0.3519, allocations: 0.5735 MB / 490.9 MB, free: 9.629 MB / 398.1 MB Notification: Performance of SimCode: time 1.943e-06/0.3519, allocations: 0 / 490.9 MB, free: 9.629 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08088/0.4328, allocations: 34.71 MB / 0.5133 GB, free: 7.156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.34, allocations: 10.8 kB / 0.5133 GB, free: 7.148 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_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_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 17.14469050199841]