Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.001333/0.001333, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.001608/0.001608, allocations: 214.7 kB / 22.25 MB, free: 5.133 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.844/2.844, allocations: 476.7 MB / 0.7707 GB, free: 4.305 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) 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(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 65.59 kB / 1.117 GB, free: 39.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.296, allocations: 170 MB / 1.283 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003373/0.2994, allocations: 1.602 MB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009417/0.3003, allocations: 0.516 MB / 1.285 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.3004, allocations: 4 kB / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.933e-05/0.3004, allocations: 3.938 kB / 1.285 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.08e-05/0.3005, allocations: 7.875 kB / 1.285 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.3008, allocations: 43.88 kB / 1.286 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.3009, allocations: 71.84 kB / 1.286 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.301, allocations: 7.984 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.3012, allocations: 47.84 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.699e-05/0.3013, allocations: 31.84 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.3013, allocations: 12 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.039e-05/0.3014, allocations: 8 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.091e-05/0.3014, allocations: 19.97 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.885e-05/0.3014, allocations: 23.88 kB / 1.286 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.3016, allocations: 79.22 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3016, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3016, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3016, allocations: 0 / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006512/0.3023, allocations: 302.1 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3023, allocations: 8.031 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.3024, allocations: 42.73 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.3025, allocations: 20.88 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.3028, allocations: 134.3 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.3028, allocations: 4.375 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.3028, allocations: 4.375 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.303, allocations: 93.69 kB / 1.286 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.303, allocations: 0 / 1.286 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.303, allocations: 4 kB / 1.286 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.303, allocations: 4 kB / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.3032, allocations: 47.84 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.3037, allocations: 283.9 kB / 1.287 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.304, allocations: 82.55 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.3042, allocations: 36.83 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.3042, allocations: 4.156 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.3045, allocations: 123.3 kB / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.3045, allocations: 0 / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0003949/0.3048, allocations: 169.6 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.3049, allocations: 55.41 kB / 1.287 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.305, allocations: 117.7 kB / 1.287 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.305, allocations: 29.7 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.3051, allocations: 88.38 kB / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.3051, allocations: 31.73 kB / 1.287 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.3052, allocations: 25.72 kB / 1.287 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3053, allocations: 326.8 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.73e-05/0.3054, allocations: 27.98 kB / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.857e-05/0.3055, allocations: 49.69 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.3056, allocations: 61.7 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3056, allocations: 0 / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002146/0.3058, allocations: 117.9 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3059, allocations: 12 kB / 1.288 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3059, allocations: 3.984 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3059, allocations: 0 / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.551e-05/0.306, allocations: 11.94 kB / 1.288 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.306, allocations: 7.984 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.145e-05/0.3061, allocations: 11.98 kB / 1.288 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3061, allocations: 4 kB / 1.288 GB, free: 6.652 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.3062, allocations: 117.8 kB / 1.288 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.3062, allocations: 19.94 kB / 1.288 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.3062, allocations: 8.375 kB / 1.288 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3062, allocations: 4 kB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3063, allocations: 0 / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3063, allocations: 384 / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.3064, allocations: 168.6 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3064, allocations: 48 / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.738e-05/0.3065, allocations: 19.91 kB / 1.288 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3065, allocations: 3.938 kB / 1.288 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.3065, allocations: 4 kB / 1.288 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.3065, allocations: 8 kB / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3065, allocations: 0 / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.3069, allocations: 220.9 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.694e-05/0.3069, allocations: 15.92 kB / 1.289 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.307, allocations: 4 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.984e-05/0.307, allocations: 7.984 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.3071, allocations: 20.03 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3071, allocations: 4 kB / 1.289 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.3072, allocations: 91.27 kB / 1.289 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3072, allocations: 0 / 1.289 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001966/0.3074, allocations: 16 kB / 1.289 GB, free: 5.859 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007938/0.3082, allocations: 0.7607 MB / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.3084, allocations: 83.89 kB / 1.29 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3084, allocations: 3.938 kB / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.3085, allocations: 51.91 kB / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.3087, allocations: 14.33 kB / 1.29 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.3104, allocations: 1.499 MB / 1.291 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3108, allocations: 0.6885 MB / 1.292 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.379e-05/0.3108, allocations: 8.656 kB / 1.292 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/0.3109, allocations: 31.42 kB / 1.292 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3109, allocations: 0 / 1.292 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3451, allocations: 2.455 MB / 1.294 GB, free: 264 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.77, allocations: 6.25 kB / 1.294 GB, free: 264 kB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable soc.Q_flow in file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.484732337999958]