Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) 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(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006326/0.006326, allocations: 98.69 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 193.1 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.699/2.699, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2783, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002837/0.2812, allocations: 1.577 MB / 1.168 GB, free: 5.738 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2823, allocations: 0.5853 MB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.2824, allocations: 4 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.896e-05/0.2824, allocations: 7.922 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.664e-05/0.2825, allocations: 7.938 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.2828, allocations: 55.81 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.2829, allocations: 51.84 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2831, allocations: 15.94 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.861e-05/0.2831, allocations: 23.91 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.862e-05/0.2832, allocations: 23.92 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.2833, allocations: 4 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.2834, allocations: 47.95 kB / 1.169 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.386e-05/0.2835, allocations: 27.91 kB / 1.169 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.2835, allocations: 19.81 kB / 1.169 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000193/0.2837, allocations: 111.7 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2837, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2837, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2838, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005963/0.2844, allocations: 402.9 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2844, allocations: 8.031 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.403e-05/0.2844, allocations: 38.75 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009034/0.2854, allocations: 208.5 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.2855, allocations: 190.9 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.239e-05/0.2856, allocations: 38 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.2856, allocations: 4 kB / 1.17 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/0.2861, allocations: 169.5 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2861, allocations: 4 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2861, allocations: 4 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2862, allocations: 0 / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.2868, allocations: 235.7 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009714/0.2878, allocations: 0.5117 MB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006164/0.2884, allocations: 242.3 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.2887, allocations: 116.8 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.2888, allocations: 4 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.2888, allocations: 38.56 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.363e-06/0.2888, allocations: 0 / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.001042/0.2899, allocations: 369.4 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.2899, allocations: 59.28 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.2901, allocations: 168.9 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2901, allocations: 25.7 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.2902, allocations: 100.1 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.2903, allocations: 3.953 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.2903, allocations: 29.72 kB / 1.172 GB, free: 1.613 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2905, allocations: 318.8 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.2908, allocations: 111.9 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.2911, allocations: 111.9 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005471/0.2917, allocations: 200.7 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2917, allocations: 0 / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006422/0.2923, allocations: 257.3 kB / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2924, allocations: 9.875 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2924, allocations: 0 / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.2924, allocations: 0 / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2926, allocations: 51.94 kB / 1.173 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2926, allocations: 3.938 kB / 1.173 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.2928, allocations: 35.94 kB / 1.173 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.2928, allocations: 3.984 kB / 1.173 GB, free: 0.5156 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.799e-05/0.2929, allocations: 117.7 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.293, allocations: 11.95 kB / 1.173 GB, free: 388 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.677e-05/0.293, allocations: 15.86 kB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.293, allocations: 0 / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.293, allocations: 7.938 kB / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.293, allocations: 0 / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.2934, allocations: 257.1 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2934, allocations: 0 / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.2936, allocations: 39.92 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2936, allocations: 8 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.2936, allocations: 7.984 kB / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2936, allocations: 0 / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.747e-05/0.2936, allocations: 4.141 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007307/0.2944, allocations: 351.2 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.2945, allocations: 85.06 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.2945, allocations: 3.984 kB / 1.173 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.2947, allocations: 39.95 kB / 1.173 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.2948, allocations: 11.94 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.2948, allocations: 0 / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001324/0.2949, allocations: 132.8 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2949, allocations: 0 / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002709/0.2952, allocations: 16 kB / 1.174 GB, free: 15.33 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.001123/0.2963, allocations: 0.8802 MB / 1.174 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006808/0.297, allocations: 243.7 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2971, allocations: 0 / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.2974, allocations: 111.9 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.2976, allocations: 15.92 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.3014, allocations: 2.351 MB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.3017, allocations: 0.6924 MB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001017/0.3019, allocations: 27.98 kB / 1.178 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.249e-05/0.3019, allocations: 31.42 kB / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.302, allocations: 0 / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.3249, allocations: 2.641 MB / 1.18 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.305, allocations: 12.89 kB / 1.18 GB, free: 8.293 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable lmtd.y in file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv failed! " Variables in the reference:time,qSta.qNor,fra.y,lmtd.y Variables in the result:time,fra.y,qSta.qNor,coeCha[1],coeCha[2],coeCha[3]