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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005788/0.005788, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001649/0.001649, allocations: 199.1 kB / 16.68 MB, free: 5.977 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.634/2.634, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 67.89 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2614, allocations: 162.3 MB / 1.242 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002507/0.264, allocations: 1.575 MB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008906/0.2649, allocations: 0.5923 MB / 1.244 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.426e-05/0.2649, allocations: 3.938 kB / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.908e-05/0.265, allocations: 7.875 kB / 1.244 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.688e-05/0.265, allocations: 7.938 kB / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.2653, allocations: 59.81 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.2654, allocations: 39.91 kB / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.13e-05/0.2655, allocations: 15.98 kB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.679e-05/0.2655, allocations: 23.86 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.185e-05/0.2656, allocations: 27.84 kB / 1.244 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.2657, allocations: 4 kB / 1.244 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.2658, allocations: 55.95 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.2658, allocations: 23.92 kB / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.93e-05/0.2659, allocations: 31.78 kB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.2661, allocations: 95.56 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.2661, allocations: 0 / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2661, allocations: 4 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.2661, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 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.0005109/0.2666, allocations: 398.9 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.2666, allocations: 8.031 kB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.033e-05/0.2667, allocations: 34.75 kB / 1.245 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007908/0.2675, allocations: 204.5 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.2676, allocations: 195.6 kB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.547e-05/0.2677, allocations: 42 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.2677, allocations: 0 / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003806/0.2681, allocations: 173.5 kB / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.2681, allocations: 0 / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2681, allocations: 0 / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.2681, allocations: 0 / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005454/0.2687, allocations: 239.7 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007708/0.2695, allocations: 0.5117 MB / 1.246 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.27, allocations: 238.3 kB / 1.246 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.2703, allocations: 128.7 kB / 1.246 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.2703, allocations: 4 kB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.2704, allocations: 30.56 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.2704, allocations: 0 / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0009227/0.2713, allocations: 377.3 kB / 1.247 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.2713, allocations: 55.34 kB / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.2715, allocations: 176.3 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.2715, allocations: 25.7 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/0.2716, allocations: 96.14 kB / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.2716, allocations: 11.94 kB / 1.247 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.2717, allocations: 21.7 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2718, allocations: 326.9 kB / 1.248 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.2721, allocations: 107.9 kB / 1.248 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.2723, allocations: 115.9 kB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004885/0.2728, allocations: 196.7 kB / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2728, allocations: 0 / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005778/0.2734, allocations: 253.4 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2734, allocations: 4 kB / 1.248 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2735, allocations: 7.922 kB / 1.248 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2735, allocations: 0 / 1.248 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.2737, allocations: 51.86 kB / 1.248 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2737, allocations: 7.969 kB / 1.248 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.2738, allocations: 31.94 kB / 1.248 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.2739, allocations: 7.984 kB / 1.248 GB, free: 2.984 MB / 0.9981 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 8.139e-05/0.2739, allocations: 113.8 kB / 1.248 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.274, allocations: 15.94 kB / 1.248 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.953e-05/0.274, allocations: 7.875 kB / 1.248 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.274, allocations: 4 kB / 1.248 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.274, allocations: 3.938 kB / 1.248 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.274, allocations: 0 / 1.248 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.2743, allocations: 245.6 kB / 1.249 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.2743, allocations: 0 / 1.249 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.2745, allocations: 47.91 kB / 1.249 GB, free: 2.492 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2745, allocations: 0 / 1.249 GB, free: 2.492 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.2745, allocations: 4 kB / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2745, allocations: 4 kB / 1.249 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2745, allocations: 3.938 kB / 1.249 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006408/0.2751, allocations: 355.1 kB / 1.249 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.2752, allocations: 89.05 kB / 1.249 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.2752, allocations: 0 / 1.249 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.2754, allocations: 35.97 kB / 1.249 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.2754, allocations: 7.938 kB / 1.249 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.2755, allocations: 11.92 kB / 1.249 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.799e-05/0.2756, allocations: 127.4 kB / 1.249 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2756, allocations: 0 / 1.249 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002232/0.2758, allocations: 19.94 kB / 1.249 GB, free: 1.812 MB / 0.9981 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.0009193/0.2767, allocations: 0.8846 MB / 1.25 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005804/0.2773, allocations: 235.7 kB / 1.25 GB, free: 0.6719 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2773, allocations: 0 / 1.25 GB, free: 0.6719 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.2776, allocations: 115.9 kB / 1.251 GB, free: 0.5586 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.2778, allocations: 13.34 kB / 1.251 GB, free: 0.5469 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4354/0.7132, allocations: 2.321 MB / 1.253 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.859e-05/0.7134, allocations: 0.6942 MB / 1.253 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.001e-05/0.7135, allocations: 25.92 kB / 1.254 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.7135, allocations: 32.17 kB / 1.254 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/0.7135, allocations: 0 / 1.254 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.218/1.932, allocations: 2.652 MB / 1.256 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/12.11, allocations: 13.3 kB / 1.256 GB, free: 12.95 MB / 0.9981 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=400 --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)