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.001482/0.001482, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001652/0.001652, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.52/1.52, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001463/0.001463, allocations: 48.06 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1047, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2284/0.3331, allocations: 5.564 MB / 431.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.3363, allocations: 1.879 MB / 433.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000593/0.3369, allocations: 18.06 kB / 433.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.3382, allocations: 0.5198 MB / 434.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009898/0.3392, allocations: 394.8 kB / 434.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008983/0.3401, allocations: 373.5 kB / 435 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.3412, allocations: 0.8917 MB / 435.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000445/0.3416, allocations: 237.3 kB / 436.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005653/0.3422, allocations: 380.2 kB / 436.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005829/0.3428, allocations: 464.1 kB / 437 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3429, allocations: 78.94 kB / 437.1 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002521/0.3432, allocations: 124.6 kB / 437.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004946/0.3437, allocations: 0.5857 MB / 437.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005645/0.3442, allocations: 0.7425 MB / 438.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.3467, allocations: 2.131 MB / 440.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3467, allocations: 0.5625 kB / 440.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3467, allocations: 4.562 kB / 440.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.142e-05/0.3468, allocations: 0 / 440.6 MB, free: 5.578 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.003674/0.3504, allocations: 2.152 MB / 442.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3505, allocations: 9.844 kB / 442.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.3506, allocations: 91.59 kB / 442.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003573/0.351, allocations: 196.7 kB / 443.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.3535, allocations: 1.521 MB / 444.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.3536, allocations: 65.12 kB / 444.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.3537, allocations: 46.84 kB / 444.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.3547, allocations: 0.5856 MB / 445.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3547, allocations: 0 / 445.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/0.3548, allocations: 23.25 kB / 445.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3548, allocations: 14.81 kB / 445.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006786/0.3555, allocations: 341 kB / 445.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/0.3606, allocations: 3.249 MB / 448.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.3618, allocations: 355.5 kB / 449.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.3622, allocations: 175.8 kB / 449.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.3622, allocations: 2.312 kB / 449.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3623, allocations: 38.44 kB / 449.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.3623, allocations: 0 / 449.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002101/0.3644, allocations: 0.7043 MB / 450.2 MB, free: 284 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3644, allocations: 214.3 kB / 450.4 MB, free: 24 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005186/0.3696, allocations: 2.917 MB / 453.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.951e-05/0.3697, allocations: 27.33 kB / 453.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008185/0.3705, allocations: 0.7933 MB / 454.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.557e-05/0.3706, allocations: 75.34 kB / 454.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.3707, allocations: 73.08 kB / 454.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3709, allocations: 318.1 kB / 454.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/0.3712, allocations: 121.5 kB / 454.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.3717, allocations: 290.6 kB / 455 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.3725, allocations: 356.8 kB / 455.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3725, allocations: 5.188 kB / 455.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001667/0.3741, allocations: 0.5691 MB / 455.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.3742, allocations: 7.281 kB / 455.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3742, allocations: 7.578 kB / 455.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000293/0.3745, allocations: 61.2 kB / 456 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.3748, allocations: 71.05 kB / 456.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.3766, allocations: 1.733 MB / 457.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/0.3774, allocations: 58.73 kB / 457.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.3774, allocations: 16 kB / 457.9 MB, free: 11.48 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.0009934/0.3784, allocations: 0.5803 MB / 458.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003675/0.3788, allocations: 175.1 kB / 458.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.3801, allocations: 0.5104 MB / 459.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3801, allocations: 1.219 kB / 459.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3801, allocations: 1.25 kB / 459.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3801, allocations: 0 / 459.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/0.3833, allocations: 1.702 MB / 460.8 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3833, allocations: 6.25 kB / 460.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.3836, allocations: 42.03 kB / 460.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.3838, allocations: 48.42 kB / 460.9 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3838, allocations: 5.375 kB / 460.9 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.3854, allocations: 1.669 MB / 462.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3854, allocations: 0.875 kB / 462.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.3873, allocations: 0.7228 MB / 463.3 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007754/0.3881, allocations: 394.1 kB / 463.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.3883, allocations: 6.219 kB / 463.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000455/0.3887, allocations: 42.39 kB / 463.7 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.652e-05/0.3888, allocations: 29.7 kB / 463.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.3888, allocations: 8.688 kB / 463.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003319/0.3922, allocations: 2.084 MB / 465.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3922, allocations: 0 / 465.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001085/0.3932, allocations: 199.6 kB / 466.1 MB, free: 6.125 MB / 366.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.003204/0.3964, allocations: 1.531 MB / 467.6 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3977, allocations: 435.7 kB / 468 MB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3977, allocations: 0 / 468 MB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005343/0.3982, allocations: 262.4 kB / 468.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.3997, allocations: 214.3 kB / 468.5 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03017/0.4299, allocations: 17.54 MB / 486 MB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.4311, allocations: 1.355 MB / 487.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007176/0.4318, allocations: 251.5 kB / 487.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000845/0.4327, allocations: 0.5813 MB / 488.2 MB, free: 1.902 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4327, allocations: 0 / 488.2 MB, free: 1.902 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08002/0.5127, allocations: 32.89 MB / 0.5089 GB, free: 1.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.84, allocations: 7.797 kB / 0.5089 GB, free: 1.223 MB / 414.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.747856999005307]