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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.0009247/0.0009247, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001099/0.001099, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.472/2.472, allocations: 409.4 MB / 0.684 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003402, allocations: 12 kB / 0.8378 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7609/0.7613, allocations: 146.8 MB / 0.9811 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001736/0.763, allocations: 1.285 MB / 0.9824 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.7641, allocations: 0.5584 MB / 0.9829 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.433e-05/0.7642, allocations: 0 / 0.9829 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.221e-05/0.7642, allocations: 0 / 0.9829 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.683e-05/0.7643, allocations: 7.938 kB / 0.9829 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.7646, allocations: 47.88 kB / 0.983 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.7647, allocations: 43.86 kB / 0.983 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.445e-05/0.7648, allocations: 15.97 kB / 0.9831 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.765, allocations: 23.91 kB / 0.9831 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.998e-05/0.7651, allocations: 23.86 kB / 0.9831 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.7651, allocations: 0 / 0.9831 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.7652, allocations: 43.95 kB / 0.9831 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.396e-05/0.7653, allocations: 19.92 kB / 0.9832 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.7654, allocations: 33.7 kB / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.7655, allocations: 66.14 kB / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.7655, allocations: 0 / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7655, allocations: 0 / 0.9833 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.7655, allocations: 4 kB / 0.9833 GB, free: 4.055 MB / 0.7325 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.0006603/0.7662, allocations: 383 kB / 0.9836 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.7663, allocations: 8.031 kB / 0.9836 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.7663, allocations: 42.48 kB / 0.9837 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000931/0.7673, allocations: 207.5 kB / 0.9839 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.7675, allocations: 191.5 kB / 0.9841 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.497e-05/0.7676, allocations: 29.7 kB / 0.9841 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.7676, allocations: 4 kB / 0.9841 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.7681, allocations: 181.5 kB / 0.9843 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.7681, allocations: 0 / 0.9843 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.7682, allocations: 0 / 0.9843 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.7682, allocations: 3.938 kB / 0.9843 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005759/0.7688, allocations: 243.7 kB / 0.9845 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009393/0.7697, allocations: 0.5078 MB / 0.985 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.7703, allocations: 238.3 kB / 0.9852 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.7706, allocations: 128.8 kB / 0.9853 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.7706, allocations: 0 / 0.9853 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.7707, allocations: 34.5 kB / 0.9854 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.7707, allocations: 4 kB / 0.9854 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0009982/0.7717, allocations: 373.2 kB / 0.9857 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.7717, allocations: 55.34 kB / 0.9858 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.7719, allocations: 173.7 kB / 0.986 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.772, allocations: 25.83 kB / 0.986 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.558e-05/0.7721, allocations: 108 kB / 0.9861 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.7721, allocations: 8 kB / 0.9861 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.7721, allocations: 0 / 0.9861 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.7722, allocations: 326.8 kB / 0.9864 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.7725, allocations: 119.9 kB / 0.9865 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.7728, allocations: 115.9 kB / 0.9866 GB, free: 392 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.7731, allocations: 103.9 kB / 0.9867 GB, free: 288 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7731, allocations: 0 / 0.9867 GB, free: 288 kB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005848/0.7737, allocations: 257.4 kB / 0.987 GB, free: 24 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.7737, allocations: 8 kB / 0.987 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.7737, allocations: 0 / 0.987 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.7737, allocations: 0 / 0.987 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.774, allocations: 51.98 kB / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.774, allocations: 0 / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.7742, allocations: 35.84 kB / 0.9871 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.7742, allocations: 7.984 kB / 0.9871 GB, free: 15.92 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.7743, allocations: 121.8 kB / 0.9872 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.913e-05/0.7743, allocations: 11.89 kB / 0.9872 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.411e-05/0.7744, allocations: 7.875 kB / 0.9872 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.7744, allocations: 0 / 0.9872 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.7744, allocations: 0 / 0.9872 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.7744, allocations: 0 / 0.9872 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.7747, allocations: 257.5 kB / 0.9874 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.7747, allocations: 0 / 0.9874 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.7749, allocations: 55.84 kB / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7749, allocations: 4 kB / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.7749, allocations: 0 / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7749, allocations: 0 / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7749, allocations: 0 / 0.9875 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000658/0.7756, allocations: 359.2 kB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.7757, allocations: 81.02 kB / 0.9879 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.7757, allocations: 12.02 kB / 0.9879 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.7759, allocations: 35.94 kB / 0.988 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.7759, allocations: 0 / 0.988 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.776, allocations: 7.984 kB / 0.988 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001022/0.7761, allocations: 123.9 kB / 0.9881 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7761, allocations: 0 / 0.9881 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002598/0.7763, allocations: 12 kB / 0.9881 GB, free: 14.76 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001005/0.7774, allocations: 0.8995 MB / 0.989 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006172/0.778, allocations: 239.8 kB / 0.9892 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.778, allocations: 0 / 0.9892 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.7783, allocations: 131.9 kB / 0.9893 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.7786, allocations: 4 kB / 0.9893 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.7807, allocations: 1.179 MB / 0.9905 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.781, allocations: 0.6887 MB / 0.9912 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001121/0.7812, allocations: 27.98 kB / 0.9912 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.74e-05/0.7812, allocations: 27.42 kB / 0.9912 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.7812, allocations: 0 / 0.9912 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.7948, allocations: 2.361 MB / 0.9935 GB, free: 9.254 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002493/0.7951, allocations: 198.2 kB / 0.9937 GB, free: 9.012 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.616, allocations: 0 / 0.9937 GB, free: 9.012 MB / 0.7481 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat does not exist to compare? outputFormat=mat