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.8857/0.8857, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001311/0.001311, allocations: 177.1 kB / 191.5 MB, free: 5.75 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.736/1.736, allocations: 223.2 MB / 447.7 MB, free: 4.727 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.001258/0.001258, allocations: 96.31 kB / 0.5187 GB, free: 1.082 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002288/0.002288, allocations: 280 kB / 0.6005 GB, free: 48.71 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004934/0.0004936, allocations: 13.78 kB / 0.6929 GB, free: 59.6 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2281, allocations: 82.8 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.943/6.171, allocations: 2.119 GB / 2.893 GB, free: 252.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/6.171, allocations: 87.2 kB / 2.893 GB, free: 252.1 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.393/8.565, allocations: 0.6032 GB / 3.496 GB, free: 143.3 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.883e-06/8.565, allocations: 2.344 kB / 3.496 GB, free: 143.3 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001937/8.565, allocations: 42.42 kB / 3.496 GB, free: 143.3 MB / 0.7136 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.004692/8.57, allocations: 1.558 MB / 3.497 GB, free: 142.6 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/8.57, allocations: 10.69 kB / 3.497 GB, free: 142.6 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003471/8.57, allocations: 111.6 kB / 3.498 GB, free: 142.5 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003247/8.573, allocations: 0.5779 MB / 3.498 GB, free: 142.4 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/8.576, allocations: 0.957 MB / 3.499 GB, free: 142.2 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.404e-05/8.577, allocations: 58.06 kB / 3.499 GB, free: 142.1 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/8.577, allocations: 74.25 kB / 3.499 GB, free: 142.1 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/8.579, allocations: 1.111 MB / 3.5 GB, free: 141.9 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/8.579, allocations: 3 kB / 3.5 GB, free: 141.9 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/8.58, allocations: 31.06 kB / 3.5 GB, free: 141.9 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/8.58, allocations: 33.23 kB / 3.5 GB, free: 141.9 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002673/8.582, allocations: 1.006 MB / 3.501 GB, free: 141.9 MB / 0.7136 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.005777/8.588, allocations: 4.967 MB / 3.506 GB, free: 138.8 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/8.591, allocations: 0.9497 MB / 3.507 GB, free: 138.8 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/8.592, allocations: 1.595 MB / 3.509 GB, free: 137 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00145/8.593, allocations: 0.5762 MB / 3.509 GB, free: 137 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=61): time 4.028e-06/8.593, allocations: 0 / 3.509 GB, free: 137 MB / 0.7136 GB Notification: Performance of matching and sorting (n=61): time 0.004413/8.598, allocations: 1.516 MB / 3.511 GB, free: 136.9 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/8.598, allocations: 58.88 kB / 3.511 GB, free: 136.8 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/8.6, allocations: 0.9924 MB / 3.512 GB, free: 136.6 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001224/8.6, allocations: 49.95 kB / 3.512 GB, free: 136.6 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000527/8.6, allocations: 0.5493 MB / 3.512 GB, free: 136.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/8.6, allocations: 213.5 kB / 3.512 GB, free: 136.3 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/8.601, allocations: 18.56 kB / 3.513 GB, free: 136.3 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001011/8.601, allocations: 341.3 kB / 3.513 GB, free: 136 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/8.602, allocations: 449 kB / 3.513 GB, free: 136 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/8.603, allocations: 0.7744 MB / 3.514 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/8.605, allocations: 0.4921 MB / 3.514 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/8.605, allocations: 3.031 kB / 3.514 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003494/8.608, allocations: 1.284 MB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/8.608, allocations: 8.531 kB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/8.608, allocations: 7.812 kB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.081e-05/8.608, allocations: 13.66 kB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/8.609, allocations: 277.7 kB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/8.609, allocations: 22.48 kB / 3.516 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/8.611, allocations: 218.4 kB / 3.516 GB, free: 135.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/8.611, allocations: 54.08 kB / 3.516 GB, free: 135.4 MB / 0.7136 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005835/8.612, allocations: 295.7 kB / 3.517 GB, free: 135.3 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/8.612, allocations: 121 kB / 3.517 GB, free: 135.2 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003478/8.615, allocations: 1.425 MB / 3.518 GB, free: 135.2 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/8.615, allocations: 13.97 kB / 3.518 GB, free: 135.2 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/8.615, allocations: 0 / 3.518 GB, free: 135.2 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/8.615, allocations: 11.72 kB / 3.518 GB, free: 135.2 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/8.62, allocations: 2.486 MB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/8.62, allocations: 7.312 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/8.621, allocations: 198.8 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/8.621, allocations: 3.844 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-05/8.621, allocations: 34.67 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.645e-06/8.622, allocations: 2.969 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/8.622, allocations: 3.531 kB / 3.521 GB, free: 134.8 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004525/8.626, allocations: 2.13 MB / 3.523 GB, free: 134.4 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/8.627, allocations: 308.1 kB / 3.523 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/8.627, allocations: 17.38 kB / 3.523 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/8.628, allocations: 132.4 kB / 3.523 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/8.628, allocations: 53.42 kB / 3.523 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.241e-05/8.628, allocations: 38.52 kB / 3.523 GB, free: 134.2 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001165/8.629, allocations: 0.7617 MB / 3.524 GB, free: 134.1 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.71e-07/8.629, allocations: 3.938 kB / 3.524 GB, free: 134.1 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001655/8.631, allocations: 393.4 kB / 3.525 GB, free: 134.1 MB / 0.7136 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 (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.006686/8.638, allocations: 3.801 MB / 3.528 GB, free: 132.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003021/8.641, allocations: 1.14 MB / 3.529 GB, free: 132.7 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/8.641, allocations: 6.594 kB / 3.529 GB, free: 132.7 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001429/8.642, allocations: 0.5957 MB / 3.53 GB, free: 132.7 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/8.645, allocations: 435.2 kB / 3.53 GB, free: 132.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/8.66, allocations: 12.66 MB / 3.543 GB, free: 125.1 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/8.66, allocations: 1.136 MB / 3.544 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001553/8.662, allocations: 263.6 kB / 3.544 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007564/8.663, allocations: 469 kB / 3.545 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of SimCode: time 3.045e-06/8.663, allocations: 0 / 3.545 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06481/8.728, allocations: 33 MB / 3.577 GB, free: 119.2 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/8.728, allocations: 244.2 kB / 3.577 GB, free: 118.9 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.536/12.26, allocations: 0 / 3.577 GB, free: 118.9 MB / 0.7136 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)