Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_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.01016/0.01016, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.002264/0.002264, allocations: 197.2 kB / 16.68 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.394/1.394, 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 9.1.3-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 67.89 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8312/0.8328, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002721/0.8356, allocations: 1.57 MB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.8366, allocations: 0.5866 MB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.8367, allocations: 1.125 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.803e-05/0.8367, allocations: 6.25 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.417e-05/0.8369, allocations: 14.52 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.8372, allocations: 51.36 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.8373, allocations: 50.91 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.8374, allocations: 13.56 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.844e-05/0.8376, allocations: 31.97 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.716e-05/0.8376, allocations: 24.69 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.8377, allocations: 3.125 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.8378, allocations: 53.41 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.581e-05/0.8379, allocations: 23.17 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.8379, allocations: 28.84 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.8381, allocations: 96.09 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.8382, allocations: 1.062 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8382, allocations: 0 / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.8382, allocations: 0 / 1.09 GB, free: 3.59 MB / 0.8575 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.0005454/0.8387, allocations: 396.6 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.8388, allocations: 9.719 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.8388, allocations: 36.94 kB / 1.09 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.8398, allocations: 212.2 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.8399, allocations: 188.2 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.84, allocations: 39.64 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.84, allocations: 2.531 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.8405, allocations: 170.1 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.8405, allocations: 0 / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.8405, allocations: 4.969 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.8405, allocations: 0.875 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006626/0.8412, allocations: 239.8 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008862/0.8421, allocations: 0.5126 MB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.8427, allocations: 236.7 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003049/0.843, allocations: 123.3 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.843, allocations: 0.6562 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.843, allocations: 39.61 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.123e-06/0.8431, allocations: 0.8125 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001033/0.8441, allocations: 367.7 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.8441, allocations: 56.86 kB / 1.092 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.8443, allocations: 167.2 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.8443, allocations: 26.42 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.8444, allocations: 106.9 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.8444, allocations: 2.047 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.8444, allocations: 27.3 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.023e-05/0.8445, allocations: 321.3 kB / 1.093 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/0.8448, allocations: 109.8 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003123/0.8451, allocations: 114.8 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005675/0.8457, allocations: 201.2 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.8457, allocations: 0.6875 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006969/0.8464, allocations: 263 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.8465, allocations: 5.812 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.8465, allocations: 4.688 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.8465, allocations: 0 / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.8468, allocations: 47.8 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.8468, allocations: 4.531 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.847, allocations: 34.23 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.847, allocations: 4.969 kB / 1.094 GB, free: 1.453 MB / 0.8575 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.141e-05/0.8471, allocations: 119.1 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.8471, allocations: 12.22 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.8472, allocations: 12.69 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.8472, allocations: 0.6562 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.8472, allocations: 5.297 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.8472, allocations: 3.984 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.8475, allocations: 246.5 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.8475, allocations: 0.7188 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.8477, allocations: 46.92 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.8477, allocations: 0.9375 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.8478, allocations: 4.562 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8478, allocations: 0 / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.299e-06/0.8478, allocations: 4.906 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007547/0.8485, allocations: 350.4 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.8486, allocations: 85.11 kB / 1.095 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.8486, allocations: 5.875 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.8488, allocations: 41.73 kB / 1.095 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.8489, allocations: 5.172 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.8489, allocations: 5.266 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001044/0.849, allocations: 131.8 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.849, allocations: 0 / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002914/0.8493, allocations: 15.34 kB / 1.095 GB, free: 0.7266 MB / 0.8575 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.0009791/0.8503, allocations: 0.8857 MB / 1.096 GB, free: 16.03 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007045/0.851, allocations: 234.7 kB / 1.096 GB, free: 16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.851, allocations: 0.9688 kB / 1.096 GB, free: 16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.8513, allocations: 119.3 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.8516, allocations: 16.88 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.8552, allocations: 2.332 MB / 1.098 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.8555, allocations: 0.7013 MB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.298e-05/0.8556, allocations: 18.39 kB / 1.099 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.8557, allocations: 30.77 kB / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of SimCode: time 6.21e-07/0.8557, allocations: 9.031 kB / 1.099 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.8781, allocations: 2.642 MB / 1.102 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.768, allocations: 12.72 kB / 1.102 GB, free: 13.36 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches