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.0009465/0.0009465, 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.001422/0.001422, allocations: 157 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.9165/0.9165, allocations: 173.3 MB / 200.4 MB, free: 9.434 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 2.214e-06/2.214e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.701e-05/1.923e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007166/0.007185, allocations: 5.347 MB / 323.8 MB, free: 1 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.01038, allocations: 2.037 MB / 325.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004296/0.01081, allocations: 19.88 kB / 325.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.01187, allocations: 0.6221 MB / 326.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005851/0.01245, allocations: 425.5 kB / 326.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007532/0.01321, allocations: 420.4 kB / 327.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.01449, allocations: 1.325 MB / 328.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.015, allocations: 302.2 kB / 328.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008209/0.01582, allocations: 0.7173 MB / 329.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006851/0.01651, allocations: 0.5066 MB / 330.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.01662, allocations: 116 kB / 330.2 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.01683, allocations: 167.9 kB / 330.4 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000325/0.01715, allocations: 0.6623 MB / 331 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.01757, allocations: 0.5258 MB / 331.6 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001872/0.01944, allocations: 2.594 MB / 334.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01945, allocations: 4 kB / 334.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01945, allocations: 0 / 334.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.01949, allocations: 0 / 334.2 MB, free: 6.551 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.003163/0.02266, allocations: 2.334 MB / 336.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.02271, allocations: 12.92 kB / 336.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.02283, allocations: 110.7 kB / 336.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000324/0.02315, allocations: 223.5 kB / 336.8 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.02506, allocations: 1.624 MB / 338.5 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.02519, allocations: 186.1 kB / 338.7 MB, free: 1.934 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/0.02526, allocations: 60 kB / 338.7 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.02665, allocations: 1.177 MB / 339.9 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.02666, allocations: 7.984 kB / 339.9 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.02671, allocations: 28 kB / 339.9 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.02672, allocations: 16 kB / 339.9 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007312/0.02745, allocations: 0.5438 MB / 340.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003934/0.03139, allocations: 3.608 MB / 344.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/0.03213, allocations: 0.5025 MB / 344.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004373/0.03257, allocations: 345.9 kB / 344.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.03259, allocations: 4.281 kB / 344.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.03262, allocations: 42.84 kB / 345 MB, free: 11.33 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.813e-06/0.03262, allocations: 0 / 345 MB, free: 11.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001288/0.03391, allocations: 0.8739 MB / 345.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.03399, allocations: 265 kB / 346.1 MB, free: 10.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002577/0.03657, allocations: 3.155 MB / 349.3 MB, free: 6.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.0366, allocations: 33.7 kB / 349.3 MB, free: 6.898 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/0.0371, allocations: 0.8653 MB / 350.2 MB, free: 6.023 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.307e-05/0.03717, allocations: 130.9 kB / 350.3 MB, free: 5.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.03727, allocations: 90.14 kB / 350.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.03736, allocations: 326 kB / 350.7 MB, free: 5.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.03764, allocations: 216.8 kB / 350.9 MB, free: 5.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/0.0381, allocations: 0.5811 MB / 351.5 MB, free: 4.559 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005609/0.03866, allocations: 0.5204 MB / 352 MB, free: 3.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.03866, allocations: 0 / 352 MB, free: 3.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009482/0.03961, allocations: 0.7854 MB / 352.8 MB, free: 3.191 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.03963, allocations: 7.938 kB / 352.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.03964, allocations: 4.453 kB / 352.8 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002165/0.03985, allocations: 68.81 kB / 352.9 MB, free: 3.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.0401, allocations: 119.8 kB / 353 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.0413, allocations: 1.683 MB / 354.7 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.04161, allocations: 75.59 kB / 354.7 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.04164, allocations: 16 kB / 354.8 MB, free: 1.109 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.0005094/0.04215, allocations: 0.6616 MB / 355.4 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.04229, allocations: 190.7 kB / 355.6 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001654/0.04245, allocations: 226.4 kB / 355.8 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.04246, allocations: 0 / 355.8 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.04246, allocations: 4 kB / 355.8 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.04247, allocations: 3.984 kB / 355.8 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.04475, allocations: 1.904 MB / 357.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.04476, allocations: 0 / 357.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.04495, allocations: 75.89 kB / 357.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001106/0.04506, allocations: 60.88 kB / 357.9 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.04509, allocations: 12.12 kB / 357.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008843/0.04597, allocations: 1.621 MB / 359.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.04597, allocations: 8.062 kB / 359.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.047, allocations: 0.976 MB / 360.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004435/0.04745, allocations: 386.5 kB / 360.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.346e-05/0.04754, allocations: 8 kB / 360.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.0478, allocations: 47.95 kB / 360.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.04788, allocations: 47.86 kB / 361 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.0479, allocations: 12 kB / 361 MB, free: 10.67 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001826/0.04972, allocations: 2.239 MB / 363.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.04972, allocations: 7.938 kB / 363.2 MB, free: 8.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005227/0.05025, allocations: 259.7 kB / 363.5 MB, free: 8.148 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.002691/0.05294, allocations: 1.93 MB / 365.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000914/0.05385, allocations: 0.5926 MB / 366 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.05386, allocations: 0 / 366 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.05424, allocations: 355.3 kB / 366.4 MB, free: 5.434 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.05539, allocations: 286.1 kB / 366.6 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03149/0.08688, allocations: 19.93 MB / 386.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.0876, allocations: 0.908 MB / 387.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008072/0.08841, allocations: 291.2 kB / 387.8 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005735/0.08898, allocations: 0.6487 MB / 388.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.08898, allocations: 4 kB / 388.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0594/0.1484, allocations: 38.29 MB / 426.7 MB, free: 8.957 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.852/9, allocations: 7.922 kB / 426.7 MB, free: 8.949 MB / 394.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.595352104865015]