Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9425/0.9425, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.266e-06/3.266e-06, allocations: 3.984 kB / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.874e-05/2.2e-05, allocations: 2.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004914/0.004936, allocations: 5.358 MB / 323.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.007389, allocations: 2.026 MB / 325.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000294/0.007683, allocations: 19.88 kB / 325.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009899/0.008673, allocations: 0.6221 MB / 326.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005192/0.009192, allocations: 425.5 kB / 326.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000561/0.009753, allocations: 414.1 kB / 327.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.01076, allocations: 1.335 MB / 328.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004008/0.01116, allocations: 294.2 kB / 328.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006058/0.01177, allocations: 0.7173 MB / 329.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004902/0.01226, allocations: 0.5105 MB / 330.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.01237, allocations: 116 kB / 330.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002211/0.01259, allocations: 171.9 kB / 330.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.01293, allocations: 0.6662 MB / 331.1 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004031/0.01333, allocations: 0.5258 MB / 331.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.01502, allocations: 2.586 MB / 334.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.01502, allocations: 0 / 334.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.01502, allocations: 0 / 334.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.924e-05/0.01507, allocations: 0 / 334.2 MB, free: 6.57 MB / 298.7 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.002933/0.01801, allocations: 2.335 MB / 336.5 MB, free: 4.191 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.01806, allocations: 8.922 kB / 336.5 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.01817, allocations: 110.7 kB / 336.6 MB, free: 4.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.0184, allocations: 223.5 kB / 336.8 MB, free: 3.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.02011, allocations: 1.628 MB / 338.5 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.02025, allocations: 182.1 kB / 338.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.456e-05/0.02032, allocations: 63.98 kB / 338.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.0215, allocations: 1.185 MB / 339.9 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.02151, allocations: 0 / 339.9 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.02156, allocations: 28 kB / 339.9 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.02157, allocations: 12 kB / 339.9 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007773/0.02235, allocations: 0.5517 MB / 340.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.02621, allocations: 3.6 MB / 344.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.02699, allocations: 0.4994 MB / 344.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/0.02747, allocations: 349.9 kB / 344.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.02749, allocations: 4.281 kB / 344.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.02753, allocations: 42.84 kB / 345 MB, free: 11.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.973e-06/0.02753, allocations: 4 kB / 345 MB, free: 11.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001576/0.0291, allocations: 0.87 MB / 345.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.02923, allocations: 265 kB / 346.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.03214, allocations: 3.155 MB / 349.3 MB, free: 6.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.03219, allocations: 37.7 kB / 349.3 MB, free: 6.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005362/0.03272, allocations: 0.8614 MB / 350.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.03283, allocations: 130.9 kB / 350.3 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.03299, allocations: 90.14 kB / 350.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.314e-05/0.03309, allocations: 326 kB / 350.7 MB, free: 5.492 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.03339, allocations: 208.9 kB / 350.9 MB, free: 5.285 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00042/0.03381, allocations: 0.5927 MB / 351.5 MB, free: 4.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005717/0.03438, allocations: 0.5126 MB / 352 MB, free: 4.008 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.03439, allocations: 4 kB / 352 MB, free: 4.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001037/0.03543, allocations: 0.7856 MB / 352.8 MB, free: 3.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.03545, allocations: 11.94 kB / 352.8 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.03545, allocations: 80 / 352.8 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.03569, allocations: 64.81 kB / 352.9 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.03597, allocations: 128 kB / 353 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.03723, allocations: 1.679 MB / 354.7 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004061/0.03764, allocations: 79.69 kB / 354.8 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.03766, allocations: 16 kB / 354.8 MB, free: 1.121 MB / 314.7 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.0007468/0.03841, allocations: 0.6537 MB / 355.4 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.03858, allocations: 194.7 kB / 355.6 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.03875, allocations: 222.4 kB / 355.8 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.03876, allocations: 4 kB / 355.8 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.03876, allocations: 3.984 kB / 355.8 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.03877, allocations: 4 kB / 355.8 MB, free: 40 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.04086, allocations: 1.9 MB / 357.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.04086, allocations: 0 / 357.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.04108, allocations: 79.95 kB / 357.8 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001491/0.04123, allocations: 60.81 kB / 357.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.04125, allocations: 12.12 kB / 357.9 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.04243, allocations: 1.628 MB / 359.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.04243, allocations: 3.938 kB / 359.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.04363, allocations: 0.9761 MB / 360.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004874/0.04412, allocations: 382.5 kB / 360.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.04422, allocations: 8 kB / 360.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.04451, allocations: 51.95 kB / 360.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.576e-05/0.04461, allocations: 47.86 kB / 361 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.04462, allocations: 12 kB / 361 MB, free: 10.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002281/0.0469, allocations: 2.243 MB / 363.2 MB, free: 8.418 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0469, allocations: 0 / 363.2 MB, free: 8.418 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006986/0.0476, allocations: 259.6 kB / 363.5 MB, free: 8.164 MB / 330.7 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.002065/0.04967, allocations: 1.926 MB / 365.4 MB, free: 6.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008753/0.05054, allocations: 0.5887 MB / 366 MB, free: 5.812 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.05055, allocations: 0 / 366 MB, free: 5.812 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003769/0.05092, allocations: 355.3 kB / 366.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.0517, allocations: 301.2 kB / 366.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03048/0.08218, allocations: 19.93 MB / 386.6 MB, free: 0.918 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007172/0.0829, allocations: 0.908 MB / 387.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005417/0.08344, allocations: 291.2 kB / 387.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005964/0.08404, allocations: 0.6487 MB / 388.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of SimCode: time 2.355e-06/0.08404, allocations: 0 / 388.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/0.1402, allocations: 38.28 MB / 426.7 MB, free: 8.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.246/9.386, allocations: 7.922 kB / 426.7 MB, free: 8.973 MB / 394.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y Variables in the result:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y [Calling sys.exit(0), Time elapsed: 11.618298714980483]