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.007734/0.007734, allocations: 102.5 kB / 15.73 MB, free: 6.047 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.001324/0.001324, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 67.89 kB / 1.054 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2948, allocations: 157.4 MB / 1.207 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002721/0.2975, allocations: 1.581 MB / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2986, allocations: 0.5927 MB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.982e-05/0.2986, allocations: 0 / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.376e-05/0.2987, allocations: 7.938 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.472e-05/0.2988, allocations: 11.88 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.2991, allocations: 47.88 kB / 1.209 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.517e-05/0.2992, allocations: 51.78 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.369e-05/0.2993, allocations: 15.97 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.2994, allocations: 19.94 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.387e-05/0.2995, allocations: 31.84 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.2995, allocations: 4 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.2997, allocations: 55.89 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.645e-05/0.2997, allocations: 23.91 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.2998, allocations: 31.8 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.3, allocations: 95.91 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3, allocations: 0 / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3, allocations: 4 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.3, allocations: 0 / 1.21 GB, free: 7.496 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.0005457/0.3005, allocations: 395 kB / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.3006, allocations: 8.625 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.3006, allocations: 34.75 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000839/0.3015, allocations: 208.5 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.3016, allocations: 194.7 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.714e-05/0.3017, allocations: 42 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.3017, allocations: 0 / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.3021, allocations: 169.5 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3022, allocations: 4 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.3022, allocations: 4 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3022, allocations: 4 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.3028, allocations: 239.7 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008458/0.3036, allocations: 0.5038 MB / 1.212 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.3042, allocations: 242.3 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.3045, allocations: 116.8 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.3045, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.3045, allocations: 30.56 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.263e-06/0.3046, allocations: 4 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0009536/0.3055, allocations: 377.2 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.3056, allocations: 55.34 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.3057, allocations: 164.4 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.3057, allocations: 25.7 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.3058, allocations: 100.1 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.3058, allocations: 12.03 kB / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.326e-05/0.3059, allocations: 21.69 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.306, allocations: 322.8 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.3063, allocations: 107.9 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.3066, allocations: 123.8 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.3071, allocations: 200.6 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3071, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006042/0.3077, allocations: 257.3 kB / 1.214 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3078, allocations: 4 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3078, allocations: 3.984 kB / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3078, allocations: 3.984 kB / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.308, allocations: 47.95 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.308, allocations: 3.938 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.3082, allocations: 31.94 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.3082, allocations: 7.984 kB / 1.214 GB, free: 3.266 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.059e-05/0.3083, allocations: 121.8 kB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-05/0.3083, allocations: 7.906 kB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.3084, allocations: 11.88 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3084, allocations: 0 / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3084, allocations: 3.938 kB / 1.214 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3084, allocations: 0 / 1.214 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.3087, allocations: 249.5 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3087, allocations: 0 / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.3088, allocations: 51.84 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3089, allocations: 0 / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.3089, allocations: 0 / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3089, allocations: 4 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3089, allocations: 3.938 kB / 1.214 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.3095, allocations: 351.2 kB / 1.214 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.3096, allocations: 85.02 kB / 1.215 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.3096, allocations: 3.984 kB / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.3098, allocations: 35.97 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.914e-05/0.3099, allocations: 3.938 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.3099, allocations: 11.98 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.774e-05/0.31, allocations: 129.4 kB / 1.215 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.31, allocations: 0 / 1.215 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002552/0.3102, allocations: 23.91 kB / 1.215 GB, free: 2.098 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.000953/0.3112, allocations: 0.8919 MB / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006112/0.3118, allocations: 235.7 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3118, allocations: 0 / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.3121, allocations: 123.8 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.3124, allocations: 12.06 kB / 1.216 GB, free: 0.8164 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.3162, allocations: 2.307 MB / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.3165, allocations: 0.7002 MB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.3166, allocations: 27.86 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.3167, allocations: 35.41 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of SimCode: time 6.31e-07/0.3167, allocations: 4 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.3368, allocations: 2.67 MB / 1.222 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.981, allocations: 0 / 1.222 GB, free: 11.06 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