Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001147/0.001147, 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.001333/0.001333, allocations: 194.8 kB / 16.14 MB, free: 6.66 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.381/1.381, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.931/2.931, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 65.95 kB / 0.9114 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3338, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003116/0.337, allocations: 1.641 MB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.3381, allocations: 0.604 MB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.3382, allocations: 4 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.237e-05/0.3382, allocations: 3.938 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.3384, allocations: 11.92 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.3387, allocations: 43.89 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.3388, allocations: 43.92 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.496e-05/0.3389, allocations: 11.98 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.923e-05/0.339, allocations: 31.84 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.982e-05/0.339, allocations: 23.86 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.3391, allocations: 4 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.3392, allocations: 47.95 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.3393, allocations: 19.92 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.3393, allocations: 31.78 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.3395, allocations: 88.03 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3395, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of FrontEnd: time 6.91e-07/0.3395, allocations: 4 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.497e-06/0.3395, allocations: 0 / 1.07 GB, free: 8.262 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.0005462/0.34, allocations: 403 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.3401, allocations: 8.031 kB / 1.07 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00096/0.341, allocations: 204.5 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.3412, allocations: 189.7 kB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.218e-05/0.3413, allocations: 34.25 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.3413, allocations: 11.94 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.3418, allocations: 165.5 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3418, allocations: 0 / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.3418, allocations: 4 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3418, allocations: 4 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006294/0.3425, allocations: 239.7 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009087/0.3434, allocations: 0.5075 MB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.344, allocations: 238.3 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.3443, allocations: 120.8 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.3443, allocations: 0 / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3444, allocations: 34.55 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3444, allocations: 0 / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.001026/0.3454, allocations: 373.2 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3455, allocations: 55.41 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.3456, allocations: 172.1 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.3456, allocations: 25.7 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.3457, allocations: 96.14 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.3457, allocations: 15.83 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.3458, allocations: 25.73 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3459, allocations: 318.8 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.3462, allocations: 111.9 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.3465, allocations: 119.9 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005303/0.347, allocations: 200.6 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.347, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006275/0.3477, allocations: 249.4 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.3477, allocations: 11.98 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.3477, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.3477, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.348, allocations: 43.95 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.348, allocations: 7.875 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.3482, allocations: 35.94 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.3482, allocations: 7.984 kB / 1.074 GB, free: 4.078 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 9.129e-05/0.3483, allocations: 122.9 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.3483, allocations: 11.91 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.3484, allocations: 7.875 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3484, allocations: 4 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3484, allocations: 3.938 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.3484, allocations: 0 / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.3486, allocations: 241.6 kB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3487, allocations: 0 / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.3489, allocations: 51.84 kB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3489, allocations: 4 kB / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3489, allocations: 0 / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3489, allocations: 0 / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3489, allocations: 3.938 kB / 1.074 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006678/0.3496, allocations: 351.2 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.089e-05/0.3497, allocations: 92.94 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.3497, allocations: 0 / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.3499, allocations: 39.97 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.3499, allocations: 7.922 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.3499, allocations: 3.984 kB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.825e-05/0.35, allocations: 125 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3501, allocations: 0 / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002648/0.3503, allocations: 16 kB / 1.075 GB, free: 2.914 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.0001782/0.3505, allocations: 111.2 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000637/0.3512, allocations: 227.8 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3512, allocations: 4.062 kB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.3515, allocations: 123.9 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.3517, allocations: 3.938 kB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006495/0.3524, allocations: 312.6 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/0.3527, allocations: 0.7043 MB / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.3528, allocations: 20 kB / 1.076 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.3529, allocations: 19.42 kB / 1.076 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3529, allocations: 4 kB / 1.076 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.003301/0.3562, allocations: 1.226 MB / 1.078 GB, free: 116 kB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)