Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8438/0.8438, allocations: 141.8 MB / 149.3 MB, free: 9.184 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 184.6 kB / 182.2 MB, free: 9.402 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.75/1.75, allocations: 221.5 MB / 436.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 92.05 kB / 0.5074 GB, free: 10.05 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001835/0.001835, allocations: 278.1 kB / 0.5889 GB, free: 54.61 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.557e-05, allocations: 4 kB / 0.6766 GB, free: 12.68 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5256/0.5256, allocations: 82.78 MB / 0.7575 GB, free: 31.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.708/6.233, allocations: 2.118 GB / 2.876 GB, free: 169 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/6.234, allocations: 83.45 kB / 2.876 GB, free: 169 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.011/8.245, allocations: 0.598 GB / 3.474 GB, free: 119.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.212e-06/8.245, allocations: 0 / 3.474 GB, free: 119.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001/8.245, allocations: 41.94 kB / 3.474 GB, free: 119.3 MB / 0.698 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.002541/8.248, allocations: 1.354 MB / 3.475 GB, free: 118 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/8.248, allocations: 8.031 kB / 3.475 GB, free: 117.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002915/8.251, allocations: 0.581 MB / 3.476 GB, free: 117.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/8.253, allocations: 0.94 MB / 3.476 GB, free: 116.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/8.253, allocations: 27.95 kB / 3.476 GB, free: 116.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/8.253, allocations: 50.89 kB / 3.477 GB, free: 116.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008988/8.254, allocations: 0.5584 MB / 3.477 GB, free: 115.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009853/8.255, allocations: 0.8246 MB / 3.478 GB, free: 114.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/8.255, allocations: 3.562 kB / 3.478 GB, free: 114.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.488e-05/8.255, allocations: 4 kB / 3.478 GB, free: 114.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/8.255, allocations: 33.3 kB / 3.478 GB, free: 114.9 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.004402/8.259, allocations: 4.822 MB / 3.483 GB, free: 109.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008256/8.26, allocations: 0.5679 MB / 3.483 GB, free: 109.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/8.261, allocations: 286 kB / 3.483 GB, free: 109 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009475/8.262, allocations: 1.593 MB / 3.485 GB, free: 107.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004979/8.262, allocations: 391.6 kB / 3.485 GB, free: 106.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=61): time 3.727e-06/8.262, allocations: 0 / 3.485 GB, free: 106.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=61): time 0.001492/8.264, allocations: 0.7164 MB / 3.486 GB, free: 105.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/8.264, allocations: 59.95 kB / 3.486 GB, free: 105.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009441/8.265, allocations: 0.8389 MB / 3.487 GB, free: 105 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.231e-05/8.265, allocations: 40.62 kB / 3.487 GB, free: 105 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/8.265, allocations: 0.558 MB / 3.488 GB, free: 104.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/8.265, allocations: 193.2 kB / 3.488 GB, free: 104.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/8.265, allocations: 0 / 3.488 GB, free: 104.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.116e-05/8.265, allocations: 345.9 kB / 3.488 GB, free: 103.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003392/8.266, allocations: 246.6 kB / 3.488 GB, free: 103.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/8.266, allocations: 0.5645 MB / 3.489 GB, free: 102.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007714/8.267, allocations: 351.8 kB / 3.489 GB, free: 102.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/8.267, allocations: 4 kB / 3.489 GB, free: 102.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001506/8.268, allocations: 0.8763 MB / 3.49 GB, free: 101.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/8.268, allocations: 12 kB / 3.49 GB, free: 101.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/8.268, allocations: 7.984 kB / 3.49 GB, free: 101.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/8.268, allocations: 16 kB / 3.49 GB, free: 101.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/8.27, allocations: 276.7 kB / 3.49 GB, free: 101.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/8.27, allocations: 14.34 kB / 3.49 GB, free: 101.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/8.271, allocations: 185.9 kB / 3.491 GB, free: 101.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.714e-05/8.271, allocations: 51.97 kB / 3.491 GB, free: 101.2 MB / 0.698 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 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001735/8.271, allocations: 142.4 kB / 3.491 GB, free: 101 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001323/8.272, allocations: 0.7201 MB / 3.491 GB, free: 100.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/8.273, allocations: 106.7 kB / 3.492 GB, free: 100.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/8.274, allocations: 1.019 MB / 3.493 GB, free: 99.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/8.274, allocations: 14.72 kB / 3.493 GB, free: 99.18 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/8.274, allocations: 0 / 3.493 GB, free: 99.18 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/8.274, allocations: 7.938 kB / 3.493 GB, free: 99.18 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/8.277, allocations: 2 MB / 3.494 GB, free: 97.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/8.277, allocations: 2.531 kB / 3.494 GB, free: 97.14 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009977/8.278, allocations: 204.9 kB / 3.495 GB, free: 96.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/8.278, allocations: 6.688 kB / 3.495 GB, free: 96.94 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/8.279, allocations: 11.98 kB / 3.495 GB, free: 96.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/8.279, allocations: 11.92 kB / 3.495 GB, free: 96.92 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/8.279, allocations: 8 kB / 3.495 GB, free: 96.91 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/8.281, allocations: 1.522 MB / 3.496 GB, free: 95.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004042/8.281, allocations: 295.4 kB / 3.496 GB, free: 95.01 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/8.281, allocations: 11.98 kB / 3.497 GB, free: 95 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009234/8.282, allocations: 115.9 kB / 3.497 GB, free: 94.89 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/8.282, allocations: 60.44 kB / 3.497 GB, free: 94.82 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/8.282, allocations: 31.97 kB / 3.497 GB, free: 94.79 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006883/8.283, allocations: 0.6363 MB / 3.497 GB, free: 94.15 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/8.283, allocations: 2.297 kB / 3.497 GB, free: 94.15 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001242/8.284, allocations: 375.4 kB / 3.498 GB, free: 93.78 MB / 0.698 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003639/8.288, allocations: 3.125 MB / 3.501 GB, free: 90.81 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001144/8.289, allocations: 0.7311 MB / 3.501 GB, free: 90.08 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/8.289, allocations: 0.8125 kB / 3.501 GB, free: 90.08 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004807/8.289, allocations: 404.4 kB / 3.502 GB, free: 89.69 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/8.291, allocations: 340.7 kB / 3.502 GB, free: 89.36 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/8.295, allocations: 2.027 MB / 3.504 GB, free: 87.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/8.296, allocations: 1.14 MB / 3.505 GB, free: 86.13 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009814/8.297, allocations: 239.3 kB / 3.505 GB, free: 85.91 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/8.297, allocations: 467.2 kB / 3.506 GB, free: 85.46 MB / 0.698 GB Notification: Performance of SimCode: time 6.21e-07/8.297, allocations: 0 / 3.506 GB, free: 85.46 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/8.351, allocations: 27.61 MB / 3.533 GB, free: 58.36 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/8.351, allocations: 188.7 kB / 3.533 GB, free: 58.17 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/11.29, allocations: 3.938 kB / 3.533 GB, free: 58.17 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)