Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.275/2.275, allocations: 390.3 MB / 402.8 MB, free: 6.711 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 176.3 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.759/1.759, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 99.92 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.636e-05/3.639e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.331, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.775/6.106, allocations: 2.159 GB / 3.378 GB, free: 107.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/6.106, allocations: 83.95 kB / 3.378 GB, free: 107.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 2.793/8.899, allocations: 0.6001 GB / 3.978 GB, free: 304.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.855e-06/8.899, allocations: 1.125 kB / 3.978 GB, free: 304.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001285/8.9, allocations: 41.22 kB / 3.978 GB, free: 304.6 MB / 1.167 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.003301/8.903, allocations: 1.352 MB / 3.979 GB, free: 304.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/8.903, allocations: 8.625 kB / 3.979 GB, free: 304.1 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/8.903, allocations: 114.8 kB / 3.979 GB, free: 304 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003328/8.906, allocations: 0.5714 MB / 3.98 GB, free: 304 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/8.91, allocations: 0.9184 MB / 3.981 GB, free: 303.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.783e-05/8.91, allocations: 55.62 kB / 3.981 GB, free: 303.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/8.91, allocations: 75.33 kB / 3.981 GB, free: 303.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/8.912, allocations: 0.9109 MB / 3.982 GB, free: 303.4 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/8.912, allocations: 2.344 kB / 3.982 GB, free: 303.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.729e-05/8.912, allocations: 36.95 kB / 3.982 GB, free: 303.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.556e-05/8.912, allocations: 28.59 kB / 3.982 GB, free: 303.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/8.913, allocations: 0.6328 MB / 3.983 GB, free: 303.4 MB / 1.167 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.006841/8.92, allocations: 4.97 MB / 3.987 GB, free: 300.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/8.921, allocations: 0.5873 MB / 3.988 GB, free: 300.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005506/8.922, allocations: 305.2 kB / 3.988 GB, free: 300.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00124/8.923, allocations: 1.593 MB / 3.99 GB, free: 298.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00072/8.924, allocations: 397.8 kB / 3.99 GB, free: 298.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=61): time 4.278e-06/8.924, allocations: 4.406 kB / 3.99 GB, free: 298.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=61): time 0.001809/8.926, allocations: 0.7193 MB / 3.991 GB, free: 298.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/8.926, allocations: 58.5 kB / 3.991 GB, free: 298.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/8.927, allocations: 0.9769 MB / 3.992 GB, free: 298.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 8.477e-05/8.927, allocations: 42.45 kB / 3.992 GB, free: 298.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/8.928, allocations: 0.5462 MB / 3.993 GB, free: 298 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/8.928, allocations: 209.8 kB / 3.993 GB, free: 297.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/8.928, allocations: 19.62 kB / 3.993 GB, free: 297.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001008/8.928, allocations: 335.8 kB / 3.993 GB, free: 297.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005383/8.929, allocations: 261.9 kB / 3.993 GB, free: 297.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007346/8.93, allocations: 0.56 MB / 3.994 GB, free: 297.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000577/8.93, allocations: 315.6 kB / 3.994 GB, free: 297.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/8.93, allocations: 2.25 kB / 3.994 GB, free: 297.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001789/8.932, allocations: 0.9104 MB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/8.932, allocations: 8.219 kB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/8.932, allocations: 7.969 kB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.648e-05/8.932, allocations: 16.77 kB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/8.933, allocations: 280.1 kB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.919e-05/8.933, allocations: 12.91 kB / 3.995 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/8.935, allocations: 214 kB / 3.996 GB, free: 297.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/8.935, allocations: 52.84 kB / 3.996 GB, free: 297.1 MB / 1.167 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.0002278/8.935, allocations: 157.1 kB / 3.996 GB, free: 297 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/8.935, allocations: 122.7 kB / 3.996 GB, free: 296.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/8.938, allocations: 1.057 MB / 3.997 GB, free: 296.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/8.938, allocations: 11 kB / 3.997 GB, free: 296.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/8.938, allocations: 8.344 kB / 3.997 GB, free: 296.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/8.938, allocations: 3.469 kB / 3.997 GB, free: 296.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003494/8.941, allocations: 2.112 MB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/8.941, allocations: 5.719 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/8.942, allocations: 202.9 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/8.942, allocations: 3.906 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-05/8.942, allocations: 32.7 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.828e-06/8.942, allocations: 7.844 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/8.942, allocations: 2.438 kB / 3.999 GB, free: 296.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/8.945, allocations: 1.564 MB / 4.001 GB, free: 296.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/8.946, allocations: 302.5 kB / 4.001 GB, free: 295.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/8.946, allocations: 20.86 kB / 4.001 GB, free: 295.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009896/8.947, allocations: 135.1 kB / 4.001 GB, free: 295.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/8.947, allocations: 53.48 kB / 4.001 GB, free: 295.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.6e-05/8.947, allocations: 34.7 kB / 4.001 GB, free: 295.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001178/8.948, allocations: 0.7526 MB / 4.002 GB, free: 295.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.91e-07/8.948, allocations: 0 / 4.002 GB, free: 295.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001602/8.95, allocations: 400.5 kB / 4.002 GB, free: 295.8 MB / 1.167 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.004287/8.954, allocations: 3.17 MB / 4.006 GB, free: 294.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001402/8.955, allocations: 0.7682 MB / 4.006 GB, free: 294.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/8.955, allocations: 0 / 4.006 GB, free: 294.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005848/8.956, allocations: 419.2 kB / 4.007 GB, free: 294.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/8.958, allocations: 430.5 kB / 4.007 GB, free: 294.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004441/8.962, allocations: 2.099 MB / 4.009 GB, free: 293.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/8.963, allocations: 1.135 MB / 4.01 GB, free: 293.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001036/8.964, allocations: 259.8 kB / 4.011 GB, free: 293.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006084/8.965, allocations: 465.8 kB / 4.011 GB, free: 293.1 MB / 1.167 GB Notification: Performance of SimCode: time 2.756e-06/8.965, allocations: 0 / 4.011 GB, free: 293.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0581/9.023, allocations: 32.68 MB / 4.043 GB, free: 292.2 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/9.023, allocations: 205.1 kB / 4.043 GB, free: 292 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.099/12.12, allocations: 0 / 4.043 GB, free: 292 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat does not exist to compare? outputFormat=mat