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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007035/0.007035, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.001502/0.001502, allocations: 189.1 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.703/2.703, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 68.11 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3848, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003581/0.3884, allocations: 1.581 MB / 1.209 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.3898, allocations: 0.5889 MB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.3899, allocations: 3.938 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.43e-05/0.39, allocations: 7.938 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.989e-05/0.3901, allocations: 3.938 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.3905, allocations: 59.81 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.3907, allocations: 51.78 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3908, allocations: 15.98 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.3909, allocations: 23.91 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.391, allocations: 23.86 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.3911, allocations: 4 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.3913, allocations: 55.89 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.3913, allocations: 27.92 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.823e-05/0.3914, allocations: 27.78 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.3917, allocations: 95.97 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.854e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.245e-06/0.3917, allocations: 0 / 1.21 GB, free: 7.551 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.0007628/0.3925, allocations: 399 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3925, allocations: 8.625 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.3926, allocations: 34.75 kB / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009733/0.3935, allocations: 212.5 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.3938, allocations: 192.6 kB / 1.211 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.487e-05/0.3939, allocations: 34.02 kB / 1.211 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.3939, allocations: 8 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.3944, allocations: 173.5 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.3944, allocations: 0 / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.3944, allocations: 7.984 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3944, allocations: 0 / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006141/0.395, allocations: 235.7 kB / 1.211 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.3961, allocations: 0.5155 MB / 1.212 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.3967, allocations: 238.3 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.397, allocations: 116.8 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.397, allocations: 4 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.3971, allocations: 34.56 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.3971, allocations: 0 / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.00106/0.3981, allocations: 369.3 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.3982, allocations: 55.34 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.3984, allocations: 172.4 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3984, allocations: 25.7 kB / 1.213 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.3985, allocations: 100.1 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.3985, allocations: 3.906 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.3986, allocations: 21.7 kB / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002026/0.3988, allocations: 326.9 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.3991, allocations: 111.9 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.3994, allocations: 111.9 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.4, allocations: 196.7 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4, allocations: 0 / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000676/0.4007, allocations: 269.2 kB / 1.214 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.4007, allocations: 7.938 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.4007, allocations: 4 kB / 1.214 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.4008, allocations: 0 / 1.214 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.401, allocations: 39.92 kB / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.401, allocations: 3.969 kB / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.4012, allocations: 43.92 kB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.4012, allocations: 0 / 1.214 GB, free: 3.312 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 0.0001365/0.4014, allocations: 113.8 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.4014, allocations: 11.91 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.4015, allocations: 7.875 kB / 1.214 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.4015, allocations: 4 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.4015, allocations: 3.938 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4015, allocations: 7.984 kB / 1.214 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.4019, allocations: 241.5 kB / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4019, allocations: 0 / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002062/0.4021, allocations: 47.91 kB / 1.214 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.4022, allocations: 0 / 1.214 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.4022, allocations: 11.98 kB / 1.214 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.4022, allocations: 4 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.4022, allocations: 7.875 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007802/0.403, allocations: 343.2 kB / 1.214 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.443e-05/0.4031, allocations: 89 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.4031, allocations: 0 / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.4033, allocations: 35.94 kB / 1.215 GB, free: 2.309 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.4034, allocations: 11.97 kB / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.4034, allocations: 3.984 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00016/0.4036, allocations: 133.4 kB / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.51e-07/0.4036, allocations: 0 / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003051/0.4039, allocations: 19.91 kB / 1.215 GB, free: 2.145 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.001363/0.4053, allocations: 0.884 MB / 1.216 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007556/0.4061, allocations: 235.8 kB / 1.216 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4061, allocations: 0 / 1.216 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.4064, allocations: 119.9 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4067, allocations: 7.938 kB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/0.4108, allocations: 2.327 MB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.4113, allocations: 0.6924 MB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001078/0.4114, allocations: 27.94 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.4115, allocations: 31.41 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of SimCode: time 1.853e-06/0.4115, allocations: 0 / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.4334, allocations: 2.647 MB / 1.222 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.19, allocations: 3.5 kB / 1.222 GB, free: 11.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches