Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json 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/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004035, allocations: 15.98 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7162/0.7166, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02464/0.7413, allocations: 24.57 MB / 0.9776 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01102/0.7524, allocations: 5.945 MB / 0.9834 GB, free: 20 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.7542, allocations: 39.42 kB / 0.9834 GB, free: 16 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.7565, allocations: 0.643 MB / 0.984 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005545/0.7621, allocations: 1.21 MB / 0.9852 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004815/0.7669, allocations: 1.296 MB / 0.9865 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.004296/0.7712, allocations: 1.579 MB / 0.988 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001652/0.7729, allocations: 0.6749 MB / 0.9887 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.7753, allocations: 0.8369 MB / 0.9895 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.7765, allocations: 0.5679 MB / 0.9901 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001441/0.7767, allocations: 36 kB / 0.9901 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001945/0.7787, allocations: 0.5228 MB / 0.9906 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.779, allocations: 239.1 kB / 0.9908 GB, free: 9.977 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.7794, allocations: 233 kB / 0.9911 GB, free: 9.742 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.781, allocations: 1.015 MB / 0.9921 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.781, allocations: 0 / 0.9921 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.545e-06/0.781, allocations: 0 / 0.9921 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.371e-05/0.781, allocations: 0 / 0.9921 GB, free: 8.727 MB / 0.7481 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.002623/0.7836, allocations: 1.373 MB / 0.9934 GB, free: 7.297 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.7837, allocations: 12.03 kB / 0.9934 GB, free: 7.285 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.7838, allocations: 122.4 kB / 0.9935 GB, free: 7.156 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003466/0.7873, allocations: 0.6344 MB / 0.9941 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.7888, allocations: 0.7624 MB / 0.9949 GB, free: 5.703 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.466e-05/0.7889, allocations: 54 kB / 0.9949 GB, free: 5.648 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.789, allocations: 72 kB / 0.995 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.7913, allocations: 1.103 MB / 0.9961 GB, free: 4.395 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.7914, allocations: 0 / 0.9961 GB, free: 4.395 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.659e-05/0.7915, allocations: 32 kB / 0.9961 GB, free: 4.363 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.7915, allocations: 27.94 kB / 0.9961 GB, free: 4.336 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.7945, allocations: 1.02 MB / 0.9971 GB, free: 3.316 MB / 0.7481 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.006134/0.8006, allocations: 4.959 MB / 1.002 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.8036, allocations: 0.9619 MB / 1.003 GB, free: 13.1 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001434/0.805, allocations: 1.588 MB / 1.004 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001638/0.8067, allocations: 0.5846 MB / 1.005 GB, free: 10.57 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=61): time 3.046e-06/0.8067, allocations: 0 / 1.005 GB, free: 10.57 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61): time 0.004799/0.8115, allocations: 1.52 MB / 1.007 GB, free: 9.043 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.8116, allocations: 59.91 kB / 1.007 GB, free: 8.973 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.8131, allocations: 1.116 MB / 1.008 GB, free: 7.844 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 9.612e-05/0.8132, allocations: 37.7 kB / 1.008 GB, free: 7.801 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.8137, allocations: 0.5396 MB / 1.008 GB, free: 7.254 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.8139, allocations: 209 kB / 1.008 GB, free: 7.047 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.814, allocations: 16 kB / 1.008 GB, free: 7.031 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.8141, allocations: 341.9 kB / 1.009 GB, free: 6.691 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.8156, allocations: 453.6 kB / 1.009 GB, free: 6.25 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.8172, allocations: 0.7242 MB / 1.01 GB, free: 5.41 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.8186, allocations: 0.49 MB / 1.01 GB, free: 4.918 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.8187, allocations: 0 / 1.01 GB, free: 4.918 MB / 0.7637 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003628/0.8223, allocations: 1.282 MB / 1.012 GB, free: 3.625 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.8223, allocations: 11.95 kB / 1.012 GB, free: 3.613 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.8224, allocations: 12.09 kB / 1.012 GB, free: 3.602 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.8224, allocations: 12 kB / 1.012 GB, free: 3.59 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.8237, allocations: 279.5 kB / 1.012 GB, free: 3.316 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.8237, allocations: 11.98 kB / 1.012 GB, free: 3.305 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.825, allocations: 207 kB / 1.012 GB, free: 3.102 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.8251, allocations: 55.91 kB / 1.012 GB, free: 3.047 MB / 0.7637 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.0004951/0.8256, allocations: 295.7 kB / 1.012 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.8258, allocations: 118.5 kB / 1.013 GB, free: 2.633 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.8297, allocations: 1.382 MB / 1.014 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/0.8297, allocations: 15.98 kB / 1.014 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.8297, allocations: 0 / 1.014 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.8297, allocations: 7.984 kB / 1.014 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00511/0.8349, allocations: 2.386 MB / 1.016 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.8349, allocations: 8 kB / 1.016 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.836, allocations: 199.8 kB / 1.017 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.201e-05/0.836, allocations: 11.94 kB / 1.017 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.489e-05/0.8361, allocations: 23.97 kB / 1.017 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.8361, allocations: 4 kB / 1.017 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.8361, allocations: 4 kB / 1.017 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005291/0.8414, allocations: 2.081 MB / 1.019 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005876/0.842, allocations: 283.3 kB / 1.019 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.8422, allocations: 12 kB / 1.019 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.8433, allocations: 135.8 kB / 1.019 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.8434, allocations: 48.55 kB / 1.019 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.563e-05/0.8435, allocations: 31.97 kB / 1.019 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009445/0.8444, allocations: 0.7677 MB / 1.02 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8444, allocations: 0 / 1.02 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001101/0.8455, allocations: 339.6 kB / 1.02 GB, free: 10.74 MB / 0.7794 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 (70): * Single equations (assignments): 55 * 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.006991/0.8525, allocations: 3.572 MB / 1.024 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003416/0.856, allocations: 1.134 MB / 1.025 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.856, allocations: 4 kB / 1.025 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.8577, allocations: 0.5814 MB / 1.025 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.86, allocations: 422.3 kB / 1.026 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/0.8778, allocations: 12.52 MB / 1.038 GB, free: 8.156 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006832/0.8786, allocations: 1.129 MB / 1.039 GB, free: 7 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001182/0.8797, allocations: 252.6 kB / 1.039 GB, free: 6.75 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006538/0.8804, allocations: 455.2 kB / 1.04 GB, free: 6.305 MB / 0.795 GB Notification: Performance of SimCode: time 1.623e-06/0.8804, allocations: 3.938 kB / 1.04 GB, free: 6.301 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05037/0.9308, allocations: 29.09 MB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.931, allocations: 224 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.46, allocations: 0 / 1.068 GB, free: 9.402 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat does not exist to compare? outputFormat=mat