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.373/2.373, allocations: 390.5 MB / 398 MB, free: 10.92 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.001215/0.001214, allocations: 190.8 kB / 491.2 MB, free: 1.605 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.904/1.904, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009964/0.0009964, allocations: 83.97 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.752e-05/2.747e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3907, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.43/6.82, allocations: 2.158 GB / 3.371 GB, free: 144.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/6.821, allocations: 88.83 kB / 3.371 GB, free: 144.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.621/9.442, allocations: 0.5968 GB / 3.968 GB, free: 290.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.675e-06/9.442, allocations: 1.156 kB / 3.968 GB, free: 290.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002301/9.442, allocations: 36.42 kB / 3.968 GB, free: 290.9 MB / 1.151 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.005546/9.448, allocations: 1.35 MB / 3.969 GB, free: 290.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/9.448, allocations: 10.16 kB / 3.969 GB, free: 290.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005747/9.454, allocations: 0.5701 MB / 3.969 GB, free: 290.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/9.458, allocations: 0.9176 MB / 3.97 GB, free: 290.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/9.458, allocations: 22.73 kB / 3.97 GB, free: 290.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003251/9.458, allocations: 47.89 kB / 3.97 GB, free: 290.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001866/9.46, allocations: 0.5669 MB / 3.971 GB, free: 290.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/9.463, allocations: 0.8193 MB / 3.972 GB, free: 289.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/9.463, allocations: 4.062 kB / 3.972 GB, free: 289.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/9.463, allocations: 6.281 kB / 3.972 GB, free: 289.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.206e-05/9.463, allocations: 33.77 kB / 3.972 GB, free: 289.8 MB / 1.151 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.009562/9.472, allocations: 4.807 MB / 3.977 GB, free: 286.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/9.474, allocations: 0.5525 MB / 3.977 GB, free: 286.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008089/9.475, allocations: 292.9 kB / 3.977 GB, free: 286.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/9.477, allocations: 1.592 MB / 3.979 GB, free: 285 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009462/9.478, allocations: 389.5 kB / 3.979 GB, free: 284.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=61): time 4.368e-06/9.478, allocations: 0 / 3.979 GB, free: 284.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=61): time 0.002206/9.48, allocations: 0.7278 MB / 3.98 GB, free: 284.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/9.48, allocations: 56.62 kB / 3.98 GB, free: 284.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/9.482, allocations: 0.8356 MB / 3.981 GB, free: 284.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.96e-05/9.482, allocations: 29.55 kB / 3.981 GB, free: 284.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005563/9.482, allocations: 0.5566 MB / 3.981 GB, free: 284.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/9.483, allocations: 196.9 kB / 3.982 GB, free: 284.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/9.483, allocations: 0 / 3.982 GB, free: 284.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.119e-05/9.483, allocations: 336.7 kB / 3.982 GB, free: 284 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/9.483, allocations: 249.7 kB / 3.982 GB, free: 284 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/9.484, allocations: 0.5426 MB / 3.983 GB, free: 283.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/9.485, allocations: 348.5 kB / 3.983 GB, free: 283.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.936e-06/9.485, allocations: 2.031 kB / 3.983 GB, free: 283.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002254/9.487, allocations: 0.8766 MB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/9.488, allocations: 8.281 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/9.488, allocations: 7.688 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.62e-05/9.488, allocations: 13.41 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/9.489, allocations: 277.6 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.895e-05/9.489, allocations: 23.83 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/9.49, allocations: 180.9 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/9.491, allocations: 49.45 kB / 3.984 GB, free: 283.5 MB / 1.151 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.0002382/9.491, allocations: 139.4 kB / 3.985 GB, free: 283.4 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001913/9.493, allocations: 0.7163 MB / 3.985 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/9.493, allocations: 110.9 kB / 3.985 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/9.496, allocations: 1.019 MB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/9.496, allocations: 13.39 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/9.496, allocations: 1.156 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/9.496, allocations: 4.031 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/9.5, allocations: 2 MB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/9.5, allocations: 2.094 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/9.501, allocations: 198.4 kB / 3.989 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.811e-05/9.501, allocations: 4.562 kB / 3.989 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.08e-05/9.501, allocations: 23.39 kB / 3.989 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/9.501, allocations: 4.875 kB / 3.989 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/9.501, allocations: 4.656 kB / 3.989 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/9.504, allocations: 1.523 MB / 3.99 GB, free: 282.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006643/9.504, allocations: 298.7 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/9.505, allocations: 11.33 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/9.506, allocations: 119 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/9.506, allocations: 56.39 kB / 3.991 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/9.506, allocations: 33.97 kB / 3.991 GB, free: 282.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001174/9.507, allocations: 0.6268 MB / 3.991 GB, free: 282.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.31e-07/9.507, allocations: 0 / 3.991 GB, free: 282.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002033/9.509, allocations: 377.8 kB / 3.992 GB, free: 282.2 MB / 1.151 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.004531/9.514, allocations: 3.119 MB / 3.995 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001386/9.515, allocations: 0.7197 MB / 3.995 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/9.515, allocations: 4.312 kB / 3.995 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006605/9.516, allocations: 406.8 kB / 3.996 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/9.518, allocations: 334 kB / 3.996 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005122/9.523, allocations: 2.014 MB / 3.998 GB, free: 280.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/9.524, allocations: 1.136 MB / 3.999 GB, free: 279.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001265/9.525, allocations: 240.3 kB / 3.999 GB, free: 279.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006546/9.526, allocations: 453.2 kB / 4 GB, free: 279.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.152e-06/9.526, allocations: 0 / 4 GB, free: 279.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05984/9.586, allocations: 27.04 MB / 4.026 GB, free: 279.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/9.586, allocations: 189.2 kB / 4.026 GB, free: 279 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.891/12.48, allocations: 0 / 4.026 GB, free: 279 MB / 1.151 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