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.001302/0.001302, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001459/0.001459, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.486/1.486, 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_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.00146/0.00146, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 53.31 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.225/0.332, allocations: 6.093 MB / 432.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.3358, allocations: 2.328 MB / 434.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005833/0.3364, allocations: 19.66 kB / 434.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.338, allocations: 0.6233 MB / 435.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009658/0.339, allocations: 450.4 kB / 435.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008453/0.3398, allocations: 400.2 kB / 436.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.3413, allocations: 1.308 MB / 437.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005359/0.3418, allocations: 347.2 kB / 437.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007313/0.3426, allocations: 0.5057 MB / 438.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.3433, allocations: 0.6009 MB / 438.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.3435, allocations: 116.3 kB / 439.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003624/0.3439, allocations: 181.2 kB / 439.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000507/0.3444, allocations: 0.654 MB / 439.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007225/0.3451, allocations: 0.8888 MB / 440.8 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002992/0.3481, allocations: 2.641 MB / 443.4 MB, free: 4.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3481, allocations: 5.062 kB / 443.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3481, allocations: 0 / 443.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.864e-05/0.3482, allocations: 0 / 443.4 MB, free: 4.184 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.004568/0.3527, allocations: 2.449 MB / 445.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3528, allocations: 9.969 kB / 445.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.3529, allocations: 109 kB / 446 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003741/0.3533, allocations: 225 kB / 446.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.3559, allocations: 1.693 MB / 447.9 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.356, allocations: 106.8 kB / 448 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3561, allocations: 63.98 kB / 448.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.3576, allocations: 0.8233 MB / 448.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.3576, allocations: 1.125 kB / 448.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.3577, allocations: 27 kB / 448.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.3577, allocations: 19.41 kB / 448.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.3588, allocations: 0.5453 MB / 449.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007459/0.3662, allocations: 4.005 MB / 453.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.3676, allocations: 0.4967 MB / 454 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007469/0.3683, allocations: 339.1 kB / 454.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.3684, allocations: 8.469 kB / 454.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.3684, allocations: 41.98 kB / 454.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.3684, allocations: 5.25 kB / 454.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002706/0.3711, allocations: 0.9432 MB / 455.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.3713, allocations: 274.5 kB / 455.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005332/0.3766, allocations: 3.153 MB / 458.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.3767, allocations: 37.22 kB / 458.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009292/0.3777, allocations: 0.858 MB / 459.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.3778, allocations: 130.9 kB / 459.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.378, allocations: 95.92 kB / 459.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3781, allocations: 326.8 kB / 460.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004934/0.3786, allocations: 210.6 kB / 460.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.3792, allocations: 395.1 kB / 460.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.3802, allocations: 0.52 MB / 461.3 MB, free: 9.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.3802, allocations: 8.719 kB / 461.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001959/0.3822, allocations: 0.786 MB / 462.1 MB, free: 9.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3822, allocations: 7.031 kB / 462.1 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3822, allocations: 3.75 kB / 462.1 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.3825, allocations: 73 kB / 462.2 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.383, allocations: 109.7 kB / 462.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.3849, allocations: 1.792 MB / 464.1 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.3859, allocations: 78.62 kB / 464.1 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.386, allocations: 18.16 kB / 464.1 MB, free: 7.383 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.001244/0.3872, allocations: 0.6568 MB / 464.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005506/0.3878, allocations: 196.1 kB / 465 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005104/0.3883, allocations: 221.4 kB / 465.2 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.3883, allocations: 7.594 kB / 465.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3883, allocations: 1.344 kB / 465.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3883, allocations: 3.984 kB / 465.2 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004193/0.3925, allocations: 2.15 MB / 467.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3925, allocations: 0 / 467.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.3929, allocations: 86.09 kB / 467.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002213/0.3931, allocations: 62.33 kB / 467.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.3931, allocations: 12 kB / 467.5 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.3948, allocations: 1.746 MB / 469.3 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3948, allocations: 2.281 kB / 469.3 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.3972, allocations: 0.9881 MB / 470.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009985/0.3982, allocations: 443.9 kB / 470.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.3984, allocations: 15.61 kB / 470.7 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005643/0.399, allocations: 49.27 kB / 470.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3991, allocations: 40.48 kB / 470.8 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.3991, allocations: 17.39 kB / 470.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003806/0.4029, allocations: 2.254 MB / 473.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4029, allocations: 0 / 473.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00149/0.4044, allocations: 263.5 kB / 473.3 MB, free: 0.9688 MB / 366.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.004143/0.4086, allocations: 1.896 MB / 475.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4101, allocations: 0.6002 MB / 475.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.4101, allocations: 4 kB / 475.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007041/0.4108, allocations: 339.1 kB / 476.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.4126, allocations: 299.5 kB / 476.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03447/0.447, allocations: 19.76 MB / 496.2 MB, free: 9.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.4485, allocations: 1.493 MB / 497.7 MB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009689/0.4494, allocations: 299.2 kB / 498 MB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.4504, allocations: 0.6438 MB / 498.6 MB, free: 7.469 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4504, allocations: 0 / 498.6 MB, free: 7.469 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09096/0.5414, allocations: 36.51 MB / 0.5226 GB, free: 3.223 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.46, allocations: 2.953 kB / 0.5226 GB, free: 3.223 MB / 430.1 MB " [Timeout remaining time 644] (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: 18.399675085005583]