Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0017/0.0017, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 230.5 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 67.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1169, allocations: 53.37 MB / 426.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2359/0.3528, allocations: 6.085 MB / 432.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003621/0.3564, allocations: 2.323 MB / 434.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004785/0.3569, allocations: 19.88 kB / 434.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.3584, allocations: 0.6219 MB / 435.4 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009125/0.3593, allocations: 448 kB / 435.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.3603, allocations: 406 kB / 436.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.362, allocations: 1.305 MB / 437.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000593/0.3626, allocations: 350.9 kB / 437.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008351/0.3635, allocations: 0.5018 MB / 438.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008205/0.3643, allocations: 0.6075 MB / 439 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.3644, allocations: 116.7 kB / 439.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000388/0.3648, allocations: 179 kB / 439.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006172/0.3654, allocations: 0.6537 MB / 439.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000792/0.3662, allocations: 0.8828 MB / 440.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003389/0.3696, allocations: 2.642 MB / 443.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3696, allocations: 1.922 kB / 443.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3696, allocations: 0 / 443.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.341e-05/0.3697, allocations: 4 kB / 443.5 MB, free: 4.023 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.004964/0.3747, allocations: 2.446 MB / 445.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.3747, allocations: 9.062 kB / 445.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001462/0.3749, allocations: 112.6 kB / 446 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004455/0.3753, allocations: 225.6 kB / 446.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002773/0.3781, allocations: 1.694 MB / 447.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.3782, allocations: 111.1 kB / 448.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.3783, allocations: 63.39 kB / 448.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.3798, allocations: 0.8226 MB / 448.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.3798, allocations: 4 kB / 448.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.554e-05/0.3799, allocations: 29.2 kB / 449 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3799, allocations: 14.81 kB / 449 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.3809, allocations: 0.5437 MB / 449.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008197/0.3891, allocations: 4.011 MB / 453.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.3906, allocations: 0.4919 MB / 454 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007997/0.3914, allocations: 347 kB / 454.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3914, allocations: 4.109 kB / 454.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.3915, allocations: 42.12 kB / 454.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.3915, allocations: 1.281 kB / 454.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.003151/0.3946, allocations: 0.953 MB / 455.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.3948, allocations: 264.8 kB / 455.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006402/0.4012, allocations: 3.158 MB / 458.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.4013, allocations: 36.95 kB / 458.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4024, allocations: 0.8659 MB / 459.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.4026, allocations: 122.1 kB / 459.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.4028, allocations: 96.86 kB / 459.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.403, allocations: 326.6 kB / 460.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005561/0.4035, allocations: 209.8 kB / 460.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.4042, allocations: 392.8 kB / 460.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.4053, allocations: 0.5244 MB / 461.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.4053, allocations: 2.156 kB / 461.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002485/0.4078, allocations: 0.7783 MB / 462.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.4078, allocations: 6.594 kB / 462.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4078, allocations: 3.188 kB / 462.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003649/0.4082, allocations: 70.38 kB / 462.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.4087, allocations: 117.5 kB / 462.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.4108, allocations: 1.795 MB / 464.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.412, allocations: 78.33 kB / 464.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/0.4121, allocations: 18.94 kB / 464.2 MB, free: 7.188 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.00155/0.4136, allocations: 0.6595 MB / 464.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007874/0.4144, allocations: 195.5 kB / 465 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006211/0.415, allocations: 220.1 kB / 465.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.4151, allocations: 5.172 kB / 465.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4151, allocations: 0 / 465.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.4151, allocations: 4 kB / 465.3 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005136/0.4202, allocations: 2.15 MB / 467.4 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.4202, allocations: 5.312 kB / 467.4 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004077/0.4206, allocations: 84.38 kB / 467.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002104/0.4208, allocations: 53.3 kB / 467.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.4209, allocations: 19.8 kB / 467.6 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.4227, allocations: 1.752 MB / 469.3 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4227, allocations: 0 / 469.3 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.4251, allocations: 0.9847 MB / 470.3 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.4261, allocations: 447.9 kB / 470.8 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/0.4263, allocations: 17.5 kB / 470.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/0.4269, allocations: 60.81 kB / 470.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.427, allocations: 37.7 kB / 470.9 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.4271, allocations: 10.88 kB / 470.9 MB, free: 2.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004216/0.4313, allocations: 2.264 MB / 473.1 MB, free: 1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4313, allocations: 0 / 473.1 MB, free: 1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001587/0.4329, allocations: 259.6 kB / 473.4 MB, free: 0.7461 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.004402/0.4373, allocations: 1.882 MB / 475.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.4388, allocations: 0.5891 MB / 475.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.4388, allocations: 8 kB / 475.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/0.4395, allocations: 346.4 kB / 476.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.4414, allocations: 293.9 kB / 476.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0389/0.4803, allocations: 19.77 MB / 496.3 MB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.4818, allocations: 1.493 MB / 497.8 MB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009238/0.4827, allocations: 295.3 kB / 498 MB, free: 7.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009839/0.4837, allocations: 0.6438 MB / 498.7 MB, free: 7.238 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4837, allocations: 0 / 498.7 MB, free: 7.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/0.5863, allocations: 36.48 MB / 0.5226 GB, free: 2.957 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.03, allocations: 14.88 kB / 0.5226 GB, free: 2.945 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.135502064949833]