Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001701/0.001701, 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.001999/0.001999, allocations: 189.9 kB / 16.14 MB, free: 6.656 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.88/2.88, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 65.89 kB / 0.9114 GB, free: 33.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2808, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002896/0.2837, allocations: 1.629 MB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.2848, allocations: 0.6079 MB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.387e-05/0.2848, allocations: 0 / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.143e-05/0.2849, allocations: 3.938 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.999e-05/0.285, allocations: 11.92 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.2853, allocations: 43.89 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.507e-05/0.2853, allocations: 39.92 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.319e-05/0.2854, allocations: 19.98 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.2855, allocations: 27.84 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.942e-05/0.2856, allocations: 23.86 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.2857, allocations: 4 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.2858, allocations: 43.95 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.2859, allocations: 19.92 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.422e-05/0.2859, allocations: 31.8 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.2861, allocations: 92.02 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2861, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2861, allocations: 4 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.2861, allocations: 0 / 1.07 GB, free: 8.297 MB / 0.8262 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.0006207/0.2867, allocations: 395 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2868, allocations: 12.03 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009839/0.2878, allocations: 212.4 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.288, allocations: 186.1 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.461e-05/0.2881, allocations: 34.25 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.2881, allocations: 11.94 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.2886, allocations: 169.5 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2886, allocations: 0 / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.2886, allocations: 0 / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2887, allocations: 4 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006272/0.2893, allocations: 243.7 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2903, allocations: 0.5153 MB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/0.2909, allocations: 230.3 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.2913, allocations: 120.8 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.2913, allocations: 0 / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.2913, allocations: 46.48 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 2.023e-06/0.2914, allocations: 0 / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.00109/0.2924, allocations: 365.1 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.2925, allocations: 51.41 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.2927, allocations: 173.2 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.2927, allocations: 33.83 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.2928, allocations: 100.1 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.2929, allocations: 11.89 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.76e-05/0.293, allocations: 17.7 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002261/0.2932, allocations: 322.8 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004556/0.2936, allocations: 111.9 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.294, allocations: 115.9 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005878/0.2946, allocations: 200.6 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2946, allocations: 0 / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006632/0.2952, allocations: 257.3 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.2953, allocations: 5.875 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2953, allocations: 0 / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.2953, allocations: 8.031 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.2956, allocations: 39.92 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.2956, allocations: 11.86 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.2958, allocations: 31.94 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.2958, allocations: 11.98 kB / 1.074 GB, free: 4.102 MB / 0.8262 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 0.0001021/0.2959, allocations: 117.8 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.296, allocations: 7.906 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/0.296, allocations: 11.88 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.296, allocations: 0 / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.296, allocations: 3.938 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.296, allocations: 3.938 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.2963, allocations: 245.6 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2963, allocations: 0 / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001936/0.2965, allocations: 47.91 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2966, allocations: 0 / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.2966, allocations: 4 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2966, allocations: 3.984 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2966, allocations: 3.938 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.2973, allocations: 347.2 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.857e-05/0.2974, allocations: 92.97 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.2974, allocations: 8 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.2976, allocations: 31.94 kB / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.2976, allocations: 3.938 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2977, allocations: 7.984 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000105/0.2978, allocations: 124.1 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2978, allocations: 0 / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002623/0.298, allocations: 23.98 kB / 1.075 GB, free: 2.934 MB / 0.8262 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.0002097/0.2983, allocations: 107.2 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006567/0.2989, allocations: 227.8 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2989, allocations: 0 / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.2993, allocations: 119.9 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.2995, allocations: 14.17 kB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000742/0.3003, allocations: 316.4 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.3006, allocations: 0.6965 MB / 1.076 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001092/0.3007, allocations: 20 kB / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.3008, allocations: 15.42 kB / 1.076 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3008, allocations: 0 / 1.076 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of Templates: time 0.004135/0.3049, allocations: 1.245 MB / 1.078 GB, free: 132 kB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)