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.001819/0.001819, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002363/0.002363, allocations: 212.4 kB / 22.24 MB, free: 5.262 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.519/1.519, allocations: 230.6 MB / 256 MB, free: 7.777 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.864/2.864, allocations: 476 MB / 0.7699 GB, free: 4.711 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.00232/0.00232, allocations: 69.91 kB / 1.117 GB, free: 41.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3083, allocations: 169.9 MB / 1.283 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003061/0.3113, allocations: 1.597 MB / 1.284 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000955/0.3123, allocations: 480.7 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.206e-05/0.3124, allocations: 4 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.18e-05/0.3124, allocations: 7.922 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.659e-05/0.3125, allocations: 11.86 kB / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.3127, allocations: 39.89 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.3129, allocations: 71.83 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.441e-05/0.313, allocations: 4 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.3131, allocations: 39.92 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.877e-05/0.3132, allocations: 43.77 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.3132, allocations: 4 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.738e-05/0.3133, allocations: 8 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.3133, allocations: 15.98 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.715e-05/0.3133, allocations: 27.86 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.3135, allocations: 79.64 kB / 1.285 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3135, allocations: 0 / 1.285 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3135, allocations: 0 / 1.285 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3135, allocations: 0 / 1.285 GB, free: 9.969 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.0005692/0.3141, allocations: 306.1 kB / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.3141, allocations: 8.031 kB / 1.285 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.3141, allocations: 38.75 kB / 1.285 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.3143, allocations: 16.88 kB / 1.285 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.3145, allocations: 130.5 kB / 1.285 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.3145, allocations: 8.375 kB / 1.285 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3146, allocations: 4.375 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.3148, allocations: 85.7 kB / 1.286 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3148, allocations: 0 / 1.286 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3148, allocations: 7.984 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3148, allocations: 4 kB / 1.286 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.3149, allocations: 39.97 kB / 1.286 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005348/0.3154, allocations: 275.8 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.3157, allocations: 82.55 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.881e-05/0.3158, allocations: 36.83 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.3158, allocations: 0 / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.316, allocations: 115.3 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.316, allocations: 0 / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.000422/0.3165, allocations: 177.5 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.3165, allocations: 55.41 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.3167, allocations: 117.7 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.3167, allocations: 29.7 kB / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.248e-05/0.3168, allocations: 88.38 kB / 1.286 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.3168, allocations: 35.94 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.986e-05/0.3169, allocations: 29.7 kB / 1.287 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.317, allocations: 322.8 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.427e-05/0.3171, allocations: 27.98 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.853e-05/0.3172, allocations: 49.69 kB / 1.287 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.3173, allocations: 73.56 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3174, allocations: 0 / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002292/0.3176, allocations: 117.9 kB / 1.287 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3176, allocations: 10.34 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-06/0.3176, allocations: 0 / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3176, allocations: 4 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.437e-05/0.3177, allocations: 8 kB / 1.287 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3177, allocations: 0 / 1.287 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.418e-05/0.3178, allocations: 15.92 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.3178, allocations: 4 kB / 1.287 GB, free: 7.488 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.000134/0.3179, allocations: 129.7 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.3179, allocations: 7.953 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.408e-05/0.318, allocations: 16.38 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.318, allocations: 3.938 kB / 1.287 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.318, allocations: 4 kB / 1.287 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.318, allocations: 4 kB / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.3182, allocations: 152.7 kB / 1.287 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3182, allocations: 0 / 1.287 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.3182, allocations: 11.98 kB / 1.287 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3182, allocations: 0 / 1.287 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3183, allocations: 0 / 1.287 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3183, allocations: 4 kB / 1.287 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3183, allocations: 3.984 kB / 1.287 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004575/0.3187, allocations: 228.8 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/0.3187, allocations: 7.984 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3188, allocations: 4 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.326e-05/0.3188, allocations: 11.98 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.3189, allocations: 12.34 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3189, allocations: 8 kB / 1.288 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.068e-05/0.319, allocations: 95.2 kB / 1.288 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.319, allocations: 0 / 1.288 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002058/0.3192, allocations: 12 kB / 1.288 GB, free: 6.711 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.0007245/0.3199, allocations: 0.7638 MB / 1.289 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002239/0.3201, allocations: 79.91 kB / 1.289 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3201, allocations: 3.938 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.3202, allocations: 51.97 kB / 1.289 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.3204, allocations: 11.98 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3222, allocations: 1.515 MB / 1.29 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.028e-05/0.3223, allocations: 75.34 kB / 1.29 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.495e-05/0.3223, allocations: 8.656 kB / 1.29 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.3224, allocations: 27.42 kB / 1.29 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.3224, allocations: 0 / 1.29 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.3547, allocations: 2.866 MB / 1.293 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.66, allocations: 4.688 kB / 1.293 GB, free: 1.336 MB / 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.607206522021443]