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.001262/0.001262, allocations: 109.4 kB / 15.69 MB, free: 128 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.001452/0.001452, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.414/1.414, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.732/1.732, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001531/0.001532, allocations: 73.08 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2515, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03109/0.2827, allocations: 29.36 MB / 0.8123 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01064/0.2933, allocations: 6.735 MB / 0.8189 GB, free: 9.055 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.2951, allocations: 47.69 kB / 0.8189 GB, free: 9.008 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.2976, allocations: 0.6953 MB / 0.8196 GB, free: 8.309 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.005689/0.3033, allocations: 1.429 MB / 0.821 GB, free: 6.875 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003402/0.3067, allocations: 1.155 MB / 0.8221 GB, free: 5.727 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003942/0.3107, allocations: 2.454 MB / 0.8245 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00159/0.3123, allocations: 0.8137 MB / 0.8253 GB, free: 2.434 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.3147, allocations: 1.027 MB / 0.8263 GB, free: 1.402 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.3163, allocations: 0.8208 MB / 0.8271 GB, free: 0.5781 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.3166, allocations: 72 kB / 0.8272 GB, free: 0.5078 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002377/0.319, allocations: 0.8188 MB / 0.828 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003409/0.3193, allocations: 278.8 kB / 0.8282 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007668/0.3201, allocations: 0.5592 MB / 0.8288 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.3232, allocations: 1.643 MB / 0.8304 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.3233, allocations: 0 / 0.8304 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3233, allocations: 0 / 0.8304 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.66e-05/0.3233, allocations: 0 / 0.8304 GB, free: 13.2 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.002919/0.3262, allocations: 1.586 MB / 0.8319 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.3263, allocations: 8.031 kB / 0.832 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.3265, allocations: 118.7 kB / 0.8321 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003628/0.3301, allocations: 0.5845 MB / 0.8326 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.3318, allocations: 0.8915 MB / 0.8335 GB, free: 9.898 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.3319, allocations: 66.06 kB / 0.8336 GB, free: 9.832 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.332, allocations: 72 kB / 0.8336 GB, free: 9.762 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.3346, allocations: 1.099 MB / 0.8347 GB, free: 8.582 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.3347, allocations: 3.938 kB / 0.8347 GB, free: 8.578 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.3348, allocations: 28 kB / 0.8347 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.3348, allocations: 20 kB / 0.8348 GB, free: 8.531 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003219/0.338, allocations: 1.004 MB / 0.8357 GB, free: 7.527 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.006157/0.3442, allocations: 4.94 MB / 0.8406 GB, free: 2.305 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/0.3473, allocations: 0.9059 MB / 0.8415 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.3489, allocations: 487.1 kB / 0.8419 GB, free: 0.9141 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001425/0.3504, allocations: 1.595 MB / 0.8435 GB, free: 14.97 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001784/0.3522, allocations: 0.5728 MB / 0.844 GB, free: 14.38 MB / 0.67 GB Notification: Performance of pre-optimization done (n=61): time 3.136e-06/0.3522, allocations: 0 / 0.844 GB, free: 14.38 MB / 0.67 GB Notification: Performance of matching and sorting (n=61): time 0.005119/0.3573, allocations: 1.485 MB / 0.8455 GB, free: 12.89 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.3574, allocations: 55.97 kB / 0.8455 GB, free: 12.82 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.3589, allocations: 1.125 MB / 0.8466 GB, free: 11.68 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.359, allocations: 41.69 kB / 0.8467 GB, free: 11.64 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004814/0.3595, allocations: 0.5551 MB / 0.8472 GB, free: 11.07 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002404/0.3597, allocations: 209.2 kB / 0.8474 GB, free: 10.87 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/0.36, allocations: 166.4 kB / 0.8476 GB, free: 10.7 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3602, allocations: 337.9 kB / 0.8479 GB, free: 10.36 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.3618, allocations: 457.5 kB / 0.8483 GB, free: 9.914 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.3636, allocations: 0.7357 MB / 0.8491 GB, free: 9.055 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003232/0.3669, allocations: 1.117 MB / 0.8501 GB, free: 7.836 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.3669, allocations: 4 kB / 0.8501 GB, free: 7.832 MB / 0.67 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00402/0.3709, allocations: 1.274 MB / 0.8514 GB, free: 6.547 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.371, allocations: 8 kB / 0.8514 GB, free: 6.539 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.371, allocations: 8 kB / 0.8514 GB, free: 6.531 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.386e-05/0.3711, allocations: 12.72 kB / 0.8514 GB, free: 6.52 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.3724, allocations: 275.5 kB / 0.8517 GB, free: 6.25 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.22e-05/0.3724, allocations: 15.94 kB / 0.8517 GB, free: 6.234 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.3739, allocations: 186.9 kB / 0.8519 GB, free: 6.051 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.374, allocations: 47.97 kB / 0.8519 GB, free: 6.004 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.0005799/0.3746, allocations: 291.7 kB / 0.8522 GB, free: 5.711 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.3748, allocations: 122.4 kB / 0.8523 GB, free: 5.59 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/0.3788, allocations: 1.359 MB / 0.8536 GB, free: 4.219 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.3788, allocations: 11.98 kB / 0.8537 GB, free: 4.207 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3788, allocations: 0 / 0.8537 GB, free: 4.207 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.3789, allocations: 3.984 kB / 0.8537 GB, free: 4.203 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005319/0.3842, allocations: 2.382 MB / 0.856 GB, free: 1.746 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.3842, allocations: 0 / 0.856 GB, free: 1.746 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.3853, allocations: 191.9 kB / 0.8562 GB, free: 1.559 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.3854, allocations: 8 kB / 0.8562 GB, free: 1.551 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.649e-05/0.3854, allocations: 27.97 kB / 0.8562 GB, free: 1.523 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-06/0.3855, allocations: 8 kB / 0.8562 GB, free: 1.516 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.3855, allocations: 3.938 kB / 0.8562 GB, free: 1.512 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006142/0.3916, allocations: 1.973 MB / 0.8581 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007638/0.3924, allocations: 279.3 kB / 0.8584 GB, free: 15.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.3927, allocations: 19.98 kB / 0.8584 GB, free: 15.19 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.3941, allocations: 103.9 kB / 0.8585 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.3943, allocations: 52.44 kB / 0.8586 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.3944, allocations: 39.97 kB / 0.8586 GB, free: 15 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00157/0.396, allocations: 0.772 MB / 0.8594 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of sort global known variables: time 3.21e-07/0.396, allocations: 0 / 0.8594 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002061/0.3981, allocations: 351.5 kB / 0.8597 GB, free: 13.88 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.009967/0.4081, allocations: 3.076 MB / 0.8627 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004948/0.4131, allocations: 1.114 MB / 0.8638 GB, free: 9.809 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.4131, allocations: 0 / 0.8638 GB, free: 9.809 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002538/0.4157, allocations: 0.5736 MB / 0.8644 GB, free: 9.238 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003935/0.4196, allocations: 477.1 kB / 0.8648 GB, free: 8.785 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/0.4471, allocations: 9.619 MB / 0.8742 GB, free: 14.79 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008763/0.448, allocations: 1.112 MB / 0.8753 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001167/0.4492, allocations: 248.8 kB / 0.8755 GB, free: 13.4 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007742/0.45, allocations: 467.2 kB / 0.876 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of SimCode: time 1.623e-06/0.45, allocations: 4 kB / 0.876 GB, free: 12.94 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07012/0.5201, allocations: 30.91 MB / 0.9062 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.1, allocations: 10.62 kB / 0.9062 GB, free: 14.45 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)