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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001134/0.001134, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001128/0.001128, allocations: 192.8 kB / 16.13 MB, free: 6.648 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.538/2.538, allocations: 461.9 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.97 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2603, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002785/0.2632, allocations: 1.646 MB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009962/0.2642, allocations: 0.6001 MB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.2642, allocations: 0 / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.634e-05/0.2643, allocations: 0 / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.374e-05/0.2644, allocations: 7.938 kB / 1.054 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.2647, allocations: 51.88 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.204e-05/0.2648, allocations: 43.86 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.428e-05/0.2648, allocations: 15.98 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.409e-05/0.2649, allocations: 19.92 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.246e-05/0.265, allocations: 27.84 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.265, allocations: 7.938 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.2652, allocations: 51.89 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.2652, allocations: 19.92 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.354e-05/0.2653, allocations: 27.8 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.2655, allocations: 99.95 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2655, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.31e-07/0.2655, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2655, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 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.000533/0.266, allocations: 387.2 kB / 1.055 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2661, allocations: 19.91 kB / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.2661, allocations: 38.75 kB / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009099/0.267, allocations: 204.5 kB / 1.055 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2672, allocations: 184.7 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.2672, allocations: 46 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.2673, allocations: 4 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.2677, allocations: 173.5 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2677, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2677, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2677, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006015/0.2683, allocations: 239.7 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008225/0.2692, allocations: 0.5 MB / 1.056 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.2698, allocations: 242.3 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.2701, allocations: 120.8 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2701, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.2701, allocations: 34.55 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.2701, allocations: 0 / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0009934/0.2711, allocations: 377.2 kB / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.2712, allocations: 55.34 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.2713, allocations: 168.2 kB / 1.057 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.2714, allocations: 25.7 kB / 1.057 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.2714, allocations: 100.1 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.2714, allocations: 3.906 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.356e-05/0.2715, allocations: 21.69 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2716, allocations: 326.9 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.2719, allocations: 115.9 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.2722, allocations: 115.9 kB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005058/0.2727, allocations: 192.7 kB / 1.058 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2728, allocations: 4 kB / 1.058 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006195/0.2734, allocations: 253.3 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2734, allocations: 8 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2734, allocations: 3.984 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.2734, allocations: 0 / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.2737, allocations: 47.89 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.2737, allocations: 7.875 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.2738, allocations: 39.84 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.2739, allocations: 3.984 kB / 1.059 GB, free: 1.34 MB / 0.8106 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.96e-05/0.274, allocations: 121.8 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.274, allocations: 7.906 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.996e-05/0.274, allocations: 11.88 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.274, allocations: 4 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.274, allocations: 3.938 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2741, allocations: 0 / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.2743, allocations: 245.5 kB / 1.059 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2743, allocations: 0 / 1.059 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.2745, allocations: 51.91 kB / 1.059 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2746, allocations: 0 / 1.059 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2746, allocations: 4 kB / 1.059 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2746, allocations: 0 / 1.059 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2746, allocations: 3.938 kB / 1.059 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006505/0.2752, allocations: 355.1 kB / 1.059 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.2753, allocations: 85.02 kB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.2753, allocations: 3.984 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.2755, allocations: 39.97 kB / 1.06 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-05/0.2755, allocations: 3.938 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2756, allocations: 3.984 kB / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.225e-05/0.2757, allocations: 131.2 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2757, allocations: 0 / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000245/0.2759, allocations: 16 kB / 1.06 GB, free: 184 kB / 0.8106 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.0009483/0.2769, allocations: 0.8879 MB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006128/0.2775, allocations: 231.8 kB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2775, allocations: 0 / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.2778, allocations: 119.9 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.278, allocations: 13.59 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.2812, allocations: 2.341 MB / 1.063 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.2815, allocations: 0.6965 MB / 1.064 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001019/0.2816, allocations: 23.91 kB / 1.064 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.2817, allocations: 31.41 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.2817, allocations: 0 / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6455/0.9271, allocations: 2.454 MB / 1.066 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002977/0.9275, allocations: 218.2 kB / 1.067 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.58, allocations: 0 / 1.067 GB, free: 9.098 MB / 0.8262 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)