Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",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.392/2.392, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001874/0.001874, allocations: 176 kB / 0.4901 GB, free: 2.207 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.553/1.553, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009289/0.0009288, allocations: 96.2 kB / 0.9396 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004299, allocations: 10.19 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3098, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.689/4.999, allocations: 1.974 GB / 3.203 GB, free: 6.105 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/4.999, allocations: 100.5 kB / 3.203 GB, free: 6.008 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.267/8.267, allocations: 0.667 GB / 3.87 GB, free: 244.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.978e-06/8.267, allocations: 0 / 3.87 GB, free: 244.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001672/8.267, allocations: 35.98 kB / 3.87 GB, free: 244.3 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006007/8.273, allocations: 1.478 MB / 3.871 GB, free: 242.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.791e-05/8.273, allocations: 8.031 kB / 3.871 GB, free: 242.7 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006765/8.274, allocations: 147.6 kB / 3.872 GB, free: 242.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002152/8.276, allocations: 254.3 kB / 3.872 GB, free: 242.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004202/8.28, allocations: 1.124 MB / 3.873 GB, free: 241.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/8.281, allocations: 70 kB / 3.873 GB, free: 241.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003316/8.281, allocations: 92 kB / 3.873 GB, free: 241 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/8.283, allocations: 1.115 MB / 3.874 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.937e-05/8.283, allocations: 3.938 kB / 3.874 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/8.283, allocations: 44 kB / 3.874 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.71e-05/8.283, allocations: 32.95 kB / 3.874 GB, free: 239.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/8.285, allocations: 0.8469 MB / 3.875 GB, free: 238.9 MB / 1.167 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.007071/8.292, allocations: 5.695 MB / 3.881 GB, free: 232.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009137/8.293, allocations: 0.547 MB / 3.881 GB, free: 232.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005834/8.294, allocations: 315.7 kB / 3.881 GB, free: 231.8 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/8.294, allocations: 39 kB / 3.881 GB, free: 231.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=49): time 4.98e-06/8.294, allocations: 3.984 kB / 3.881 GB, free: 231.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=49): time 0.001769/8.295, allocations: 0.783 MB / 3.882 GB, free: 231 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/8.295, allocations: 59.84 kB / 3.882 GB, free: 230.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/8.297, allocations: 0.6526 MB / 3.883 GB, free: 230.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.469e-05/8.297, allocations: 37.7 kB / 3.883 GB, free: 230.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/8.297, allocations: 0.5027 MB / 3.883 GB, free: 229.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/8.297, allocations: 181.4 kB / 3.884 GB, free: 229.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/8.297, allocations: 12 kB / 3.884 GB, free: 229.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001291/8.297, allocations: 334 kB / 3.884 GB, free: 229.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/8.298, allocations: 241.9 kB / 3.884 GB, free: 229 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006302/8.298, allocations: 0.58 MB / 3.885 GB, free: 228.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/8.299, allocations: 352.5 kB / 3.885 GB, free: 227.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/8.299, allocations: 4 kB / 3.885 GB, free: 227.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001367/8.3, allocations: 0.8267 MB / 3.886 GB, free: 227 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/8.3, allocations: 9.875 kB / 3.886 GB, free: 227 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/8.3, allocations: 8 kB / 3.886 GB, free: 227 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.26e-05/8.301, allocations: 12.75 kB / 3.886 GB, free: 227 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/8.301, allocations: 159.7 kB / 3.886 GB, free: 226.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/8.301, allocations: 19.94 kB / 3.886 GB, free: 226.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/8.302, allocations: 147 kB / 3.886 GB, free: 226.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/8.303, allocations: 43.27 kB / 3.886 GB, free: 226.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0006659/8.303, allocations: 334.8 kB / 3.887 GB, free: 226.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/8.303, allocations: 82.97 kB / 3.887 GB, free: 226.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/8.305, allocations: 0.614 MB / 3.887 GB, free: 225.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/8.305, allocations: 4 kB / 3.887 GB, free: 225.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/8.305, allocations: 0 / 3.887 GB, free: 225.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006501/8.305, allocations: 0.5133 MB / 3.888 GB, free: 225.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/8.308, allocations: 1.657 MB / 3.889 GB, free: 223.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/8.308, allocations: 0 / 3.889 GB, free: 223.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/8.309, allocations: 116.1 kB / 3.89 GB, free: 223.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.575e-05/8.309, allocations: 4 kB / 3.89 GB, free: 223.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/8.309, allocations: 11.94 kB / 3.89 GB, free: 223.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/8.309, allocations: 4 kB / 3.89 GB, free: 223.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/8.309, allocations: 4 kB / 3.89 GB, free: 223.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/8.31, allocations: 1.095 MB / 3.891 GB, free: 222 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/8.311, allocations: 224 kB / 3.891 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/8.311, allocations: 12 kB / 3.891 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008137/8.312, allocations: 63.88 kB / 3.891 GB, free: 221.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/8.312, allocations: 35.92 kB / 3.891 GB, free: 221.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/8.312, allocations: 19.98 kB / 3.891 GB, free: 221.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0007058/8.313, allocations: 0.5029 MB / 3.891 GB, free: 221.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.81e-07/8.313, allocations: 0 / 3.891 GB, free: 221.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002379/8.315, allocations: 487.2 kB / 3.892 GB, free: 220.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * 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 Backend phase and start with SimCode phase: time 0.006205/8.322, allocations: 3.912 MB / 3.896 GB, free: 216.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001165/8.323, allocations: 0.6025 MB / 3.896 GB, free: 216.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/8.323, allocations: 1.938 kB / 3.896 GB, free: 216.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003176/8.323, allocations: 263.7 kB / 3.897 GB, free: 215.8 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/8.325, allocations: 425.9 kB / 3.897 GB, free: 215.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/8.337, allocations: 10.89 MB / 3.908 GB, free: 204.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007853/8.338, allocations: 1.149 MB / 3.909 GB, free: 203 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001163/8.339, allocations: 267.1 kB / 3.909 GB, free: 202.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004676/8.339, allocations: 359.2 kB / 3.909 GB, free: 202.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.573e-06/8.34, allocations: 0 / 3.909 GB, free: 202.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09077/8.43, allocations: 51.39 MB / 3.96 GB, free: 151.3 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/8.43, allocations: 221.2 kB / 3.96 GB, free: 151.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.319/12.75, allocations: 4.062 kB / 3.96 GB, free: 151.1 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat does not exist to compare? outputFormat=mat