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.001608/0.001608, 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.001474/0.001474, allocations: 214.9 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.002285/0.002285, allocations: 43.94 kB / 377.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2954, allocations: 53.37 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00814/0.3035, allocations: 5.594 MB / 436.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.3073, allocations: 1.913 MB / 438.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004125/0.3077, allocations: 19.88 kB / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.3089, allocations: 0.5252 MB / 439.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008075/0.3097, allocations: 386 kB / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008475/0.3105, allocations: 378.7 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.3116, allocations: 0.8926 MB / 440.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/0.312, allocations: 237.3 kB / 441 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.3124, allocations: 370.8 kB / 441.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006045/0.3131, allocations: 466.3 kB / 441.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.3132, allocations: 80 kB / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.3134, allocations: 124 kB / 442.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005261/0.3139, allocations: 0.5843 MB / 442.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000687/0.3146, allocations: 0.7415 MB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002314/0.3169, allocations: 2.136 MB / 445.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.3169, allocations: 3.984 kB / 445.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3169, allocations: 0 / 445.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.3169, allocations: 0 / 445.5 MB, free: 8.422 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.003519/0.3205, allocations: 2.073 MB / 447.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3205, allocations: 12.03 kB / 447.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.3206, allocations: 90.7 kB / 447.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/0.3209, allocations: 195.7 kB / 447.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.3234, allocations: 1.459 MB / 449.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.3235, allocations: 92.41 kB / 449.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.3236, allocations: 44 kB / 449.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.3247, allocations: 0.5932 MB / 450.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.3248, allocations: 3.938 kB / 450.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.572e-05/0.3248, allocations: 16 kB / 450.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.3248, allocations: 12 kB / 450.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007397/0.3256, allocations: 347.8 kB / 450.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.3304, allocations: 3.191 MB / 453.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3316, allocations: 367.2 kB / 454 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.3321, allocations: 168.8 kB / 454.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.3321, allocations: 3.984 kB / 454.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.3321, allocations: 38.56 kB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.924e-06/0.3321, allocations: 3.938 kB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001935/0.3341, allocations: 0.6242 MB / 454.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.3342, allocations: 221.5 kB / 455.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003934/0.3382, allocations: 2.901 MB / 458 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.181e-05/0.3382, allocations: 29.7 kB / 458 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000838/0.339, allocations: 0.7938 MB / 458.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.69e-05/0.3391, allocations: 71.38 kB / 458.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.3392, allocations: 69.98 kB / 458.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3394, allocations: 326 kB / 459.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.3397, allocations: 120.6 kB / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/0.3402, allocations: 290.5 kB / 459.6 MB, free: 9.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.3409, allocations: 365.9 kB / 460 MB, free: 9.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3409, allocations: 0 / 460 MB, free: 9.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001195/0.3421, allocations: 0.5675 MB / 460.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3422, allocations: 8 kB / 460.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3422, allocations: 8.031 kB / 460.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002884/0.3425, allocations: 60.81 kB / 460.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.3428, allocations: 71.89 kB / 460.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.3446, allocations: 1.621 MB / 462.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004604/0.3451, allocations: 63.64 kB / 462.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.3451, allocations: 16 kB / 462.4 MB, free: 6.902 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.0007896/0.3459, allocations: 0.5739 MB / 463 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.3461, allocations: 178.9 kB / 463.2 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.3474, allocations: 0.5066 MB / 463.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3474, allocations: 4 kB / 463.7 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3474, allocations: 7.984 kB / 463.7 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3474, allocations: 0 / 463.7 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.3504, allocations: 1.664 MB / 465.3 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3504, allocations: 4 kB / 465.3 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.3507, allocations: 44 kB / 465.4 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.3509, allocations: 48.81 kB / 465.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.3509, allocations: 8 kB / 465.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/0.3525, allocations: 1.566 MB / 467 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3526, allocations: 0 / 467 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.3541, allocations: 0.7297 MB / 467.7 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007429/0.3549, allocations: 314.7 kB / 468 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.355, allocations: 8 kB / 468 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.3554, allocations: 43.95 kB / 468.1 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.3555, allocations: 35.88 kB / 468.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.3555, allocations: 15.94 kB / 468.1 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002961/0.3585, allocations: 2.075 MB / 470.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3585, allocations: 0 / 470.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008265/0.3593, allocations: 203.7 kB / 470.4 MB, free: 14.64 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.003246/0.3626, allocations: 1.511 MB / 471.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.3637, allocations: 422 kB / 472.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3637, allocations: 4.062 kB / 472.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.3643, allocations: 274.4 kB / 472.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.3655, allocations: 224.4 kB / 472.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02726/0.3928, allocations: 17.53 MB / 490.4 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.394, allocations: 1.354 MB / 491.7 MB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006253/0.3946, allocations: 250.8 kB / 492 MB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008072/0.3954, allocations: 0.5774 MB / 492.5 MB, free: 8.23 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3954, allocations: 0 / 492.5 MB, free: 8.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08128/0.4767, allocations: 33.15 MB / 0.5134 GB, free: 7.258 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/16.17, allocations: 0 / 0.5134 GB, free: 7.258 MB / 430.1 MB " [Timeout remaining time 644] (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: 19.128926450001018]