Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",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.00139/0.001391, 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.001385/0.001385, allocations: 195.2 kB / 16.14 MB, free: 6.691 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.291/1.291, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.26/2.26, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 75.88 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5699/0.5712, allocations: 140.3 MB / 0.949 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02491/0.5962, allocations: 29.18 MB / 0.9775 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009826/0.606, allocations: 6.894 MB / 0.9843 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.6074, allocations: 43.22 kB / 0.9843 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.609, allocations: 0.6085 MB / 0.9849 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00372/0.6128, allocations: 1.346 MB / 0.9862 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002569/0.6153, allocations: 1.034 MB / 0.9872 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003933/0.6193, allocations: 3.22 MB / 0.9904 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.6204, allocations: 0.733 MB / 0.9911 GB, free: 6.949 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.6224, allocations: 0.9412 MB / 0.992 GB, free: 6.004 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001252/0.6236, allocations: 0.8246 MB / 0.9928 GB, free: 5.176 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.6238, allocations: 44 kB / 0.9929 GB, free: 5.133 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.6257, allocations: 0.7755 MB / 0.9936 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003018/0.626, allocations: 251 kB / 0.9938 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000577/0.6266, allocations: 0.5319 MB / 0.9944 GB, free: 3.574 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.6295, allocations: 1.573 MB / 0.9959 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6296, allocations: 0 / 0.9959 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6296, allocations: 0 / 0.9959 GB, free: 1.996 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.672e-05/0.6296, allocations: 0 / 0.9959 GB, free: 1.996 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.003891/0.6335, allocations: 1.574 MB / 0.9974 GB, free: 372 kB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.6336, allocations: 8.031 kB / 0.9974 GB, free: 364 kB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.6337, allocations: 114.7 kB / 0.9976 GB, free: 240 kB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004618/0.6383, allocations: 0.5885 MB / 0.9981 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.6402, allocations: 0.8016 MB / 0.9989 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-05/0.6402, allocations: 62.12 kB / 0.999 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.6405, allocations: 72 kB / 0.999 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003919/0.6444, allocations: 1.099 MB / 1 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.551e-05/0.6444, allocations: 4 kB / 1 GB, free: 13.47 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.6446, allocations: 32 kB / 1 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.6446, allocations: 16 kB / 1 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004449/0.6491, allocations: 1.004 MB / 1.001 GB, free: 12.42 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008321/0.6574, allocations: 4.928 MB / 1.006 GB, free: 7.203 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004081/0.6615, allocations: 0.9074 MB / 1.007 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.6636, allocations: 486.4 kB / 1.007 GB, free: 5.809 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001774/0.6654, allocations: 1.599 MB / 1.009 GB, free: 3.859 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002389/0.6678, allocations: 0.565 MB / 1.009 GB, free: 3.281 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=61): time 6.282e-06/0.6678, allocations: 0 / 1.009 GB, free: 3.281 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61): time 0.00664/0.6745, allocations: 1.489 MB / 1.011 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.6745, allocations: 55.97 kB / 1.011 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.6765, allocations: 1.112 MB / 1.012 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.6766, allocations: 45.69 kB / 1.012 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000603/0.6773, allocations: 0.5472 MB / 1.013 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.6775, allocations: 205.2 kB / 1.013 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003936/0.6779, allocations: 158.5 kB / 1.013 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.6781, allocations: 341.9 kB / 1.013 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00205/0.6802, allocations: 449.6 kB / 1.014 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/0.6825, allocations: 0.7242 MB / 1.014 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004202/0.6867, allocations: 1.12 MB / 1.015 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.6867, allocations: 4 kB / 1.016 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005024/0.6918, allocations: 1.271 MB / 1.017 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.6918, allocations: 8.125 kB / 1.017 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.6919, allocations: 15.98 kB / 1.017 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.6919, allocations: 15.98 kB / 1.017 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.6936, allocations: 263.6 kB / 1.017 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.995e-05/0.6937, allocations: 19.88 kB / 1.017 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.6954, allocations: 206.8 kB / 1.017 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.6956, allocations: 51.97 kB / 1.017 GB, free: 10.93 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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.000628/0.6962, allocations: 296.3 kB / 1.018 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.6966, allocations: 118.5 kB / 1.018 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/0.702, allocations: 1.363 MB / 1.019 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.7021, allocations: 8 kB / 1.019 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.7021, allocations: 4 kB / 1.019 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.7021, allocations: 3.984 kB / 1.019 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0071/0.7092, allocations: 2.37 MB / 1.021 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.7092, allocations: 4 kB / 1.021 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.7107, allocations: 187.9 kB / 1.022 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.611e-05/0.7107, allocations: 7.984 kB / 1.022 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.916e-05/0.7108, allocations: 27.98 kB / 1.022 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.7109, allocations: 11.92 kB / 1.022 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.7109, allocations: 3.938 kB / 1.022 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007223/0.7181, allocations: 1.977 MB / 1.024 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006055/0.7187, allocations: 279.3 kB / 1.024 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.719, allocations: 16 kB / 1.024 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.7205, allocations: 115.9 kB / 1.024 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.7207, allocations: 56.42 kB / 1.024 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.7208, allocations: 35.97 kB / 1.024 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001425/0.7223, allocations: 0.7599 MB / 1.025 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7223, allocations: 0 / 1.025 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001582/0.7239, allocations: 339.6 kB / 1.025 GB, free: 2.824 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * 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.009646/0.7335, allocations: 3.08 MB / 1.028 GB, free: 15.86 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.004675/0.7382, allocations: 1.114 MB / 1.029 GB, free: 14.75 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.7383, allocations: 0 / 1.029 GB, free: 14.75 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002335/0.7406, allocations: 0.5775 MB / 1.03 GB, free: 14.17 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/0.7437, allocations: 423.4 kB / 1.03 GB, free: 13.76 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/0.7719, allocations: 10.55 MB / 1.04 GB, free: 2.648 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009303/0.7728, allocations: 1.107 MB / 1.042 GB, free: 1.512 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001642/0.7745, allocations: 248.6 kB / 1.042 GB, free: 1.266 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009498/0.7755, allocations: 455.2 kB / 1.042 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of SimCode: time 5.82e-07/0.7755, allocations: 0 / 1.042 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.944/2.719, allocations: 29.36 MB / 1.071 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003218/2.719, allocations: 248.9 kB / 1.071 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.048/5.768, allocations: 0 / 1.071 GB, free: 3.621 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)