Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_8_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.001185/0.001185, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 188 kB / 16.64 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.758/1.758, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 72.09 kB / 0.6718 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2707, allocations: 114.5 MB / 0.7836 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03163/0.3024, allocations: 29.37 MB / 0.8123 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.011/0.3134, allocations: 6.731 MB / 0.8189 GB, free: 9.059 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.3151, allocations: 47.62 kB / 0.8189 GB, free: 9.012 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.3171, allocations: 0.6914 MB / 0.8196 GB, free: 8.316 MB / 0.6387 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004087/0.3212, allocations: 1.427 MB / 0.821 GB, free: 6.883 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002934/0.3241, allocations: 1.159 MB / 0.8221 GB, free: 5.734 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003437/0.3276, allocations: 2.461 MB / 0.8245 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.329, allocations: 0.7982 MB / 0.8253 GB, free: 2.449 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.3313, allocations: 1.031 MB / 0.8263 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.3325, allocations: 0.8169 MB / 0.8271 GB, free: 0.5938 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3326, allocations: 64 kB / 0.8272 GB, free: 0.5312 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001856/0.3345, allocations: 0.8265 MB / 0.828 GB, free: 15.7 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002867/0.3348, allocations: 283 kB / 0.8283 GB, free: 15.43 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0006263/0.3354, allocations: 0.5553 MB / 0.8288 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.002523/0.338, allocations: 1.647 MB / 0.8304 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.338, allocations: 0 / 0.8304 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.773e-06/0.338, allocations: 0 / 0.8304 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.338, allocations: 0 / 0.8304 GB, free: 13.21 MB / 0.6544 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.002776/0.3408, allocations: 1.586 MB / 0.832 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.3409, allocations: 8.031 kB / 0.832 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.341, allocations: 122.7 kB / 0.8321 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003307/0.3443, allocations: 0.5885 MB / 0.8327 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.3459, allocations: 0.8915 MB / 0.8335 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/0.346, allocations: 58.12 kB / 0.8336 GB, free: 9.844 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3461, allocations: 72 kB / 0.8336 GB, free: 9.773 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.3485, allocations: 1.098 MB / 0.8347 GB, free: 8.598 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3486, allocations: 11.94 kB / 0.8347 GB, free: 8.586 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.27e-05/0.3486, allocations: 28 kB / 0.8348 GB, free: 8.559 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.3487, allocations: 20 kB / 0.8348 GB, free: 8.539 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002949/0.3516, allocations: 1.004 MB / 0.8358 GB, free: 7.535 MB / 0.6544 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.006099/0.3577, allocations: 4.936 MB / 0.8406 GB, free: 2.316 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.3607, allocations: 0.9075 MB / 0.8415 GB, free: 1.398 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.3622, allocations: 490.4 kB / 0.8419 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001531/0.3637, allocations: 1.591 MB / 0.8435 GB, free: 14.98 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001645/0.3654, allocations: 0.5728 MB / 0.844 GB, free: 14.39 MB / 0.67 GB Notification: Performance of pre-optimization done (n=61): time 3.026e-06/0.3654, allocations: 0 / 0.844 GB, free: 14.39 MB / 0.67 GB Notification: Performance of matching and sorting (n=61): time 0.004805/0.3702, allocations: 1.485 MB / 0.8455 GB, free: 12.9 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3703, allocations: 59.97 kB / 0.8455 GB, free: 12.82 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001431/0.3717, allocations: 1.125 MB / 0.8466 GB, free: 11.69 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 9.857e-05/0.3718, allocations: 41.69 kB / 0.8467 GB, free: 11.64 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004675/0.3723, allocations: 0.5512 MB / 0.8472 GB, free: 11.08 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.3725, allocations: 205.1 kB / 0.8474 GB, free: 10.88 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/0.3728, allocations: 178.4 kB / 0.8476 GB, free: 10.7 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.373, allocations: 334 kB / 0.8479 GB, free: 10.36 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.3744, allocations: 457.6 kB / 0.8483 GB, free: 9.918 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.376, allocations: 0.7319 MB / 0.8491 GB, free: 9.062 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002968/0.379, allocations: 1.12 MB / 0.8502 GB, free: 7.84 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.379, allocations: 4 kB / 0.8502 GB, free: 7.836 MB / 0.67 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003683/0.3827, allocations: 1.274 MB / 0.8514 GB, free: 6.551 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.3828, allocations: 8 kB / 0.8514 GB, free: 6.543 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.3828, allocations: 8 kB / 0.8514 GB, free: 6.535 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.3828, allocations: 12 kB / 0.8514 GB, free: 6.523 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.384, allocations: 272 kB / 0.8517 GB, free: 6.258 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.384, allocations: 15.94 kB / 0.8517 GB, free: 6.242 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3853, allocations: 182.9 kB / 0.8519 GB, free: 6.062 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3855, allocations: 55.97 kB / 0.8519 GB, free: 6.008 MB / 0.67 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.0005358/0.386, allocations: 288.4 kB / 0.8522 GB, free: 5.719 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.3862, allocations: 126.4 kB / 0.8523 GB, free: 5.594 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.3899, allocations: 1.359 MB / 0.8537 GB, free: 4.223 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.39, allocations: 8 kB / 0.8537 GB, free: 4.215 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.39, allocations: 4 kB / 0.8537 GB, free: 4.211 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.39, allocations: 3.984 kB / 0.8537 GB, free: 4.207 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004945/0.3949, allocations: 2.382 MB / 0.856 GB, free: 1.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.395, allocations: 3.938 kB / 0.856 GB, free: 1.746 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009802/0.396, allocations: 191.9 kB / 0.8562 GB, free: 1.559 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.289e-05/0.396, allocations: 4 kB / 0.8562 GB, free: 1.555 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.229e-05/0.3961, allocations: 27.91 kB / 0.8562 GB, free: 1.527 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.3961, allocations: 8 kB / 0.8562 GB, free: 1.52 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/0.3961, allocations: 11.92 kB / 0.8562 GB, free: 1.508 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005542/0.4016, allocations: 1.961 MB / 0.8581 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.4023, allocations: 279.3 kB / 0.8584 GB, free: 15.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.4025, allocations: 16 kB / 0.8584 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008785/0.4033, allocations: 111.9 kB / 0.8585 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4035, allocations: 60.45 kB / 0.8586 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.69e-05/0.4036, allocations: 31.97 kB / 0.8586 GB, free: 15 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001242/0.4048, allocations: 0.7759 MB / 0.8594 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4048, allocations: 0 / 0.8594 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001296/0.4061, allocations: 355.5 kB / 0.8597 GB, free: 13.87 MB / 0.6856 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.006964/0.4131, allocations: 3.063 MB / 0.8627 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003349/0.4165, allocations: 1.118 MB / 0.8638 GB, free: 9.812 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.4165, allocations: 3.938 kB / 0.8638 GB, free: 9.809 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.418, allocations: 0.5658 MB / 0.8644 GB, free: 9.246 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.4202, allocations: 480.4 kB / 0.8648 GB, free: 8.789 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/0.4383, allocations: 9.626 MB / 0.8742 GB, free: 14.78 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007467/0.4391, allocations: 1.112 MB / 0.8753 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001062/0.4402, allocations: 244.8 kB / 0.8755 GB, free: 13.39 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000687/0.4409, allocations: 467.2 kB / 0.876 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of SimCode: time 1.944e-06/0.4409, allocations: 0 / 0.876 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06151/0.5024, allocations: 30.91 MB / 0.9062 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.975/10.48, allocations: 9.484 kB / 0.9062 GB, free: 14.46 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)