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.001089/0.001089, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001146/0.001146, allocations: 177.3 kB / 15.95 MB, free: 216 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.367/1.367, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.39/2.39, allocations: 409.2 MB / 0.6838 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005327/0.0005328, allocations: 8 kB / 0.8375 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.149/1.15, allocations: 146.8 MB / 0.9809 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002389/1.152, allocations: 1.285 MB / 0.9821 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001274/1.154, allocations: 0.5508 MB / 0.9827 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.712e-05/1.154, allocations: 4 kB / 0.9827 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.261e-05/1.154, allocations: 3.938 kB / 0.9827 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.797e-05/1.154, allocations: 3.984 kB / 0.9827 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/1.154, allocations: 39.89 kB / 0.9827 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/1.154, allocations: 35.89 kB / 0.9828 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/1.155, allocations: 19.97 kB / 0.9828 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/1.155, allocations: 27.86 kB / 0.9828 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/1.155, allocations: 19.86 kB / 0.9828 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/1.155, allocations: 3.984 kB / 0.9828 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/1.155, allocations: 43.95 kB / 0.9829 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/1.155, allocations: 11.98 kB / 0.9829 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.858e-05/1.155, allocations: 37.64 kB / 0.9829 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/1.155, allocations: 70.12 kB / 0.983 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/1.155, allocations: 0 / 0.983 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/1.155, allocations: 4 kB / 0.983 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.38e-06/1.155, allocations: 0 / 0.983 GB, free: 4.109 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.0006629/1.156, allocations: 379 kB / 0.9833 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/1.156, allocations: 8.031 kB / 0.9834 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.439e-05/1.156, allocations: 34.56 kB / 0.9834 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/1.158, allocations: 215.5 kB / 0.9836 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/1.158, allocations: 183.4 kB / 0.9838 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/1.158, allocations: 33.69 kB / 0.9838 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/1.158, allocations: 8 kB / 0.9838 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006205/1.159, allocations: 177.5 kB / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/1.159, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/1.159, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/1.159, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009489/1.16, allocations: 243.8 kB / 0.9842 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/1.161, allocations: 0.5155 MB / 0.9847 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009462/1.162, allocations: 234.3 kB / 0.9849 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/1.162, allocations: 8.062 kB / 0.9849 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/1.162, allocations: 34.56 kB / 0.985 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.563e-06/1.162, allocations: 0 / 0.985 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.001546/1.164, allocations: 377.2 kB / 0.9853 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/1.164, allocations: 51.41 kB / 0.9854 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/1.164, allocations: 169.2 kB / 0.9855 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/1.164, allocations: 29.7 kB / 0.9856 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/1.164, allocations: 104 kB / 0.9857 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/1.164, allocations: 3.938 kB / 0.9857 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.308e-05/1.164, allocations: 0 / 0.9857 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.164, allocations: 326.8 kB / 0.986 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/1.165, allocations: 119.9 kB / 0.9861 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/1.165, allocations: 111.9 kB / 0.9862 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/1.166, allocations: 99.95 kB / 0.9863 GB, free: 496 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.166, allocations: 0 / 0.9863 GB, free: 496 kB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0009947/1.167, allocations: 265.3 kB / 0.9866 GB, free: 224 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/1.167, allocations: 9.344 kB / 0.9866 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.167, allocations: 0 / 0.9866 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/1.167, allocations: 4 kB / 0.9866 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/1.167, allocations: 47.95 kB / 0.9866 GB, free: 164 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/1.167, allocations: 0 / 0.9866 GB, free: 164 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/1.167, allocations: 43.83 kB / 0.9867 GB, free: 120 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/1.167, allocations: 4 kB / 0.9867 GB, free: 116 kB / 0.7325 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.0001571/1.167, allocations: 121.8 kB / 0.9868 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/1.168, allocations: 11.91 kB / 0.9868 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/1.168, allocations: 11.86 kB / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/1.168, allocations: 0 / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.168, allocations: 0 / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/1.168, allocations: 3.984 kB / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/1.168, allocations: 241.5 kB / 0.987 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/1.168, allocations: 4 kB / 0.987 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/1.168, allocations: 51.91 kB / 0.9871 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/1.168, allocations: 0 / 0.9871 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/1.168, allocations: 11.92 kB / 0.9871 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.168, allocations: 0 / 0.9871 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.168, allocations: 4 kB / 0.9871 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/1.17, allocations: 355.1 kB / 0.9874 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.698e-05/1.17, allocations: 93.03 kB / 0.9875 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/1.17, allocations: 0 / 0.9875 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003151/1.17, allocations: 35.94 kB / 0.9876 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/1.17, allocations: 4 kB / 0.9876 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/1.17, allocations: 7.984 kB / 0.9876 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001419/1.17, allocations: 124.1 kB / 0.9877 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.71e-07/1.17, allocations: 4 kB / 0.9877 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004885/1.171, allocations: 16 kB / 0.9877 GB, free: 14.94 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.001384/1.172, allocations: 0.8918 MB / 0.9886 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009189/1.173, allocations: 231.8 kB / 0.9888 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/1.173, allocations: 8.062 kB / 0.9888 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0005419/1.174, allocations: 119.9 kB / 0.9889 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/1.174, allocations: 9.375 kB / 0.9889 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/1.177, allocations: 1.171 MB / 0.9901 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/1.178, allocations: 0.6983 MB / 0.9908 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001826/1.178, allocations: 27.94 kB / 0.9908 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/1.178, allocations: 31.41 kB / 0.9908 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of SimCode: time 1.112e-06/1.178, allocations: 0 / 0.9908 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01772/1.196, allocations: 2.343 MB / 0.9931 GB, free: 9.457 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002702/1.196, allocations: 186.7 kB / 0.9933 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.933, allocations: 0 / 0.9933 GB, free: 9.219 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