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.7063/0.7063, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009432/0.0009433, allocations: 189.5 kB / 187.3 MB, free: 11.88 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.288/1.288, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.0009163/0.0009162, allocations: 91.86 kB / 0.5124 GB, free: 24.13 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001702/0.001702, allocations: 273.6 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.297e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3698, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.933/4.303, allocations: 2.119 GB / 2.883 GB, free: 209.7 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/4.303, allocations: 87.89 kB / 2.883 GB, free: 209.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.668/5.971, allocations: 0.6013 GB / 3.484 GB, free: 134.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.303e-06/5.971, allocations: 2.531 kB / 3.484 GB, free: 134.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.874e-05/5.971, allocations: 45.09 kB / 3.485 GB, free: 134.4 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.00229/5.973, allocations: 1.344 MB / 3.486 GB, free: 133.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/5.973, allocations: 10.25 kB / 3.486 GB, free: 133.4 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/5.974, allocations: 113.8 kB / 3.486 GB, free: 133.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/5.976, allocations: 0.5856 MB / 3.487 GB, free: 133.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/5.978, allocations: 0.9476 MB / 3.487 GB, free: 132.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/5.978, allocations: 61.75 kB / 3.488 GB, free: 132.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/5.979, allocations: 68.62 kB / 3.488 GB, free: 132.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/5.98, allocations: 0.914 MB / 3.488 GB, free: 131.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/5.98, allocations: 7.594 kB / 3.488 GB, free: 131.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/5.98, allocations: 27.81 kB / 3.489 GB, free: 131.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.38e-05/5.98, allocations: 35.27 kB / 3.489 GB, free: 131.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009201/5.981, allocations: 0.6337 MB / 3.489 GB, free: 131.5 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.00435/5.985, allocations: 4.962 MB / 3.494 GB, free: 127.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009501/5.986, allocations: 0.5828 MB / 3.495 GB, free: 126.9 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/5.987, allocations: 305.1 kB / 3.495 GB, free: 126.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008828/5.987, allocations: 1.597 MB / 3.496 GB, free: 124.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000546/5.988, allocations: 404.1 kB / 3.497 GB, free: 124.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=61): time 3.827e-06/5.988, allocations: 0 / 3.497 GB, free: 124.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=61): time 0.001134/5.989, allocations: 0.7138 MB / 3.498 GB, free: 124.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/5.989, allocations: 59.97 kB / 3.498 GB, free: 124.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009167/5.99, allocations: 0.9871 MB / 3.499 GB, free: 123.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.027e-05/5.99, allocations: 45.7 kB / 3.499 GB, free: 123 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000264/5.99, allocations: 0.5511 MB / 3.499 GB, free: 122.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/5.991, allocations: 210.8 kB / 3.499 GB, free: 122.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/5.991, allocations: 16 kB / 3.499 GB, free: 122.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.252e-05/5.991, allocations: 334 kB / 3.5 GB, free: 121.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/5.991, allocations: 268.9 kB / 3.5 GB, free: 121.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004971/5.992, allocations: 0.5912 MB / 3.5 GB, free: 120.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/5.992, allocations: 317.1 kB / 3.501 GB, free: 120.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/5.992, allocations: 4 kB / 3.501 GB, free: 120.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001186/5.993, allocations: 0.9113 MB / 3.502 GB, free: 119.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/5.993, allocations: 14.61 kB / 3.502 GB, free: 119.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/5.993, allocations: 8 kB / 3.502 GB, free: 119.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/5.993, allocations: 12 kB / 3.502 GB, free: 119.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/5.994, allocations: 273 kB / 3.502 GB, free: 119.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/5.994, allocations: 15.94 kB / 3.502 GB, free: 119.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/5.996, allocations: 222.9 kB / 3.502 GB, free: 119.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.289e-05/5.996, allocations: 53.09 kB / 3.502 GB, free: 119.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.0001544/5.996, allocations: 162.9 kB / 3.502 GB, free: 119 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/5.996, allocations: 122.5 kB / 3.503 GB, free: 118.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/5.997, allocations: 1.06 MB / 3.504 GB, free: 117.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/5.997, allocations: 8 kB / 3.504 GB, free: 117.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/5.997, allocations: 0 / 3.504 GB, free: 117.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/5.997, allocations: 3.984 kB / 3.504 GB, free: 117.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/6, allocations: 2.128 MB / 3.506 GB, free: 115.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/6, allocations: 0 / 3.506 GB, free: 115.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009111/6.001, allocations: 208.7 kB / 3.506 GB, free: 115.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/6.001, allocations: 4 kB / 3.506 GB, free: 115.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.874e-05/6.001, allocations: 30.41 kB / 3.506 GB, free: 115.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/6.001, allocations: 4 kB / 3.506 GB, free: 115.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/6.001, allocations: 0 / 3.506 GB, free: 115.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/6.003, allocations: 1.566 MB / 3.507 GB, free: 113.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/6.003, allocations: 307.2 kB / 3.508 GB, free: 113.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/6.003, allocations: 22.45 kB / 3.508 GB, free: 113.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008953/6.004, allocations: 131.2 kB / 3.508 GB, free: 113.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.684e-05/6.004, allocations: 52.5 kB / 3.508 GB, free: 113.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.055e-05/6.004, allocations: 34.91 kB / 3.508 GB, free: 113.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000696/6.005, allocations: 0.7578 MB / 3.509 GB, free: 112.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/6.005, allocations: 0 / 3.509 GB, free: 112.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009707/6.006, allocations: 397.5 kB / 3.509 GB, free: 112.1 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.003202/6.009, allocations: 3.192 MB / 3.512 GB, free: 109.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00116/6.01, allocations: 0.762 MB / 3.513 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/6.01, allocations: 3.25 kB / 3.513 GB, free: 108.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005394/6.011, allocations: 427.2 kB / 3.513 GB, free: 108 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/6.013, allocations: 432.2 kB / 3.514 GB, free: 107.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/6.016, allocations: 2.103 MB / 3.516 GB, free: 105.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/6.017, allocations: 1.137 MB / 3.517 GB, free: 104.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008778/6.018, allocations: 262.4 kB / 3.517 GB, free: 104.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005253/6.018, allocations: 475.2 kB / 3.518 GB, free: 103.6 MB / 0.698 GB Notification: Performance of SimCode: time 1.693e-06/6.018, allocations: 0 / 3.518 GB, free: 103.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/6.06, allocations: 33.28 MB / 3.55 GB, free: 71.22 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/6.06, allocations: 223.4 kB / 3.55 GB, free: 70.99 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/8.827, allocations: 0 / 3.55 GB, free: 70.99 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)