Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_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.004154/0.004154, allocations: 98.7 kB / 15.73 MB, free: 6.062 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.001229/0.001229, allocations: 196.5 kB / 16.67 MB, free: 5.973 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 482.4 MB / 0.7548 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.95 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2725, allocations: 162.2 MB / 1.241 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002738/0.2753, allocations: 1.57 MB / 1.243 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000974/0.2763, allocations: 0.5899 MB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.094e-05/0.2763, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.756e-05/0.2764, allocations: 3.938 kB / 1.244 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.091e-05/0.2765, allocations: 11.88 kB / 1.244 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.2767, allocations: 59.81 kB / 1.244 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.214e-05/0.2768, allocations: 47.84 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.632e-05/0.2769, allocations: 15.97 kB / 1.244 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.483e-05/0.277, allocations: 27.86 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.965e-05/0.2771, allocations: 15.92 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.2771, allocations: 4 kB / 1.244 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.2773, allocations: 59.89 kB / 1.244 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.305e-05/0.2773, allocations: 23.97 kB / 1.244 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.205e-05/0.2774, allocations: 27.8 kB / 1.244 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.2776, allocations: 99.84 kB / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2776, allocations: 0 / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2776, allocations: 3.938 kB / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.2776, allocations: 0 / 1.244 GB, free: 6.715 MB / 0.9669 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.0005591/0.2782, allocations: 400.5 kB / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.2782, allocations: 11.97 kB / 1.244 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.11e-05/0.2782, allocations: 34.75 kB / 1.244 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009242/0.2792, allocations: 212.5 kB / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.2794, allocations: 188.8 kB / 1.245 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/0.2794, allocations: 38 kB / 1.245 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.2794, allocations: 4 kB / 1.245 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.2799, allocations: 177.5 kB / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2799, allocations: 3.938 kB / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.2799, allocations: 0 / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2799, allocations: 4 kB / 1.245 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006384/0.2806, allocations: 239.7 kB / 1.245 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008834/0.2815, allocations: 0.5078 MB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006221/0.2821, allocations: 238.3 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.2824, allocations: 124.7 kB / 1.246 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.2825, allocations: 4 kB / 1.246 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.2825, allocations: 34.56 kB / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.2825, allocations: 0 / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.001052/0.2836, allocations: 365.4 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.2836, allocations: 55.34 kB / 1.246 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.2838, allocations: 173.5 kB / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.2838, allocations: 25.7 kB / 1.247 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.2839, allocations: 104.1 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.2839, allocations: 3.953 kB / 1.247 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.284, allocations: 21.7 kB / 1.247 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2841, allocations: 322.8 kB / 1.247 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003239/0.2845, allocations: 115.8 kB / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.2848, allocations: 115.9 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005644/0.2854, allocations: 196.7 kB / 1.248 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2854, allocations: 0 / 1.248 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006756/0.286, allocations: 261.4 kB / 1.248 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.2861, allocations: 4 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.2861, allocations: 0 / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2861, allocations: 0 / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.2863, allocations: 43.92 kB / 1.248 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2863, allocations: 3.938 kB / 1.248 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.2865, allocations: 39.95 kB / 1.248 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.2865, allocations: 7.938 kB / 1.248 GB, free: 2.473 MB / 0.9669 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.624e-05/0.2866, allocations: 118.3 kB / 1.248 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.2867, allocations: 11.95 kB / 1.248 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.953e-05/0.2867, allocations: 7.875 kB / 1.248 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2867, allocations: 0 / 1.248 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.2867, allocations: 11.88 kB / 1.248 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2867, allocations: 3.938 kB / 1.248 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.287, allocations: 249.5 kB / 1.248 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.287, allocations: 0 / 1.248 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.2873, allocations: 47.91 kB / 1.248 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2873, allocations: 0 / 1.248 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2873, allocations: 7.984 kB / 1.248 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2873, allocations: 0 / 1.248 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2873, allocations: 7.938 kB / 1.248 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007269/0.288, allocations: 347.2 kB / 1.249 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.2881, allocations: 93.05 kB / 1.249 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.2881, allocations: 0 / 1.249 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.2883, allocations: 39.88 kB / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.436e-05/0.2884, allocations: 7.969 kB / 1.249 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.2884, allocations: 7.984 kB / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001147/0.2885, allocations: 127 kB / 1.249 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2885, allocations: 0 / 1.249 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002569/0.2888, allocations: 19.98 kB / 1.249 GB, free: 1.297 MB / 0.9669 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.001051/0.2898, allocations: 0.8802 MB / 1.25 GB, free: 400 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006634/0.2905, allocations: 235.7 kB / 1.25 GB, free: 164 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2905, allocations: 4.062 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.2909, allocations: 119.9 kB / 1.25 GB, free: 40 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.2911, allocations: 7.938 kB / 1.25 GB, free: 32 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.2946, allocations: 2.34 MB / 1.252 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.295, allocations: 0.6963 MB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.891e-05/0.2951, allocations: 20 kB / 1.253 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.665e-05/0.2952, allocations: 31.41 kB / 1.253 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.2952, allocations: 0 / 1.253 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.3178, allocations: 2.637 MB / 1.256 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.7/8.018, allocations: 14.33 kB / 1.256 GB, free: 10.29 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_latest_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]