Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",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.001202/0.001203, allocations: 99.08 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.001406/0.001407, allocations: 177.3 kB / 15.94 MB, free: 220 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.426/1.426, allocations: 223.2 MB / 239.9 MB, free: 5.465 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.52/2.52, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.000353, allocations: 12 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7125/0.7129, allocations: 142.3 MB / 0.9536 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1927/0.9057, allocations: 161.8 MB / 1.112 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01519/0.9209, allocations: 12.17 MB / 1.123 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.9222, allocations: 27.81 kB / 1.124 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.924, allocations: 497.7 kB / 1.124 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00568/0.9297, allocations: 1.562 MB / 1.126 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003576/0.9333, allocations: 0.9509 MB / 1.126 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002966/0.9363, allocations: 1.477 MB / 1.128 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.9377, allocations: 0.8242 MB / 1.129 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.9403, allocations: 1.106 MB / 1.13 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.9414, allocations: 0.6228 MB / 1.13 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.9416, allocations: 52 kB / 1.13 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.9432, allocations: 0.5305 MB / 1.131 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004532/0.9437, allocations: 418.9 kB / 1.131 GB, free: 9.715 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.944, allocations: 249.1 kB / 1.132 GB, free: 9.465 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.9456, allocations: 1.305 MB / 1.133 GB, free: 8.156 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.9456, allocations: 4 kB / 1.133 GB, free: 8.152 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.192e-06/0.9456, allocations: 0 / 1.133 GB, free: 8.152 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.587e-05/0.9456, allocations: 0 / 1.133 GB, free: 8.152 MB / 0.8887 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.002019/0.9477, allocations: 1.238 MB / 1.134 GB, free: 6.859 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.9477, allocations: 8.031 kB / 1.134 GB, free: 6.852 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.9479, allocations: 143.6 kB / 1.134 GB, free: 6.703 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.9492, allocations: 250.4 kB / 1.134 GB, free: 6.457 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.9508, allocations: 0.7574 MB / 1.135 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.839e-05/0.9509, allocations: 74 kB / 1.135 GB, free: 5.586 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.951, allocations: 96 kB / 1.135 GB, free: 5.492 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.9528, allocations: 1.161 MB / 1.136 GB, free: 4.262 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.9528, allocations: 0 / 1.136 GB, free: 4.262 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.528e-05/0.9529, allocations: 40 kB / 1.137 GB, free: 4.223 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.957e-05/0.953, allocations: 38 kB / 1.137 GB, free: 4.184 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.9544, allocations: 0.9092 MB / 1.137 GB, free: 3.277 MB / 0.8887 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.00642/0.9609, allocations: 5.743 MB / 1.143 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009076/0.9618, allocations: 0.5841 MB / 1.144 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00047/0.9623, allocations: 149.5 kB / 1.144 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.9623, allocations: 35 kB / 1.144 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=51): time 2.375e-06/0.9623, allocations: 0 / 1.144 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=51): time 0.001589/0.9639, allocations: 0.8182 MB / 1.145 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.964, allocations: 93.67 kB / 1.145 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.965, allocations: 0.747 MB / 1.145 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.9651, allocations: 37.7 kB / 1.145 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004963/0.9656, allocations: 0.5065 MB / 1.146 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.9659, allocations: 181.4 kB / 1.146 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.9659, allocations: 16 kB / 1.146 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.966, allocations: 337.9 kB / 1.146 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003952/0.9664, allocations: 253.8 kB / 1.147 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006946/0.9671, allocations: 0.5728 MB / 1.147 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005579/0.9677, allocations: 360.5 kB / 1.148 GB, free: 8.172 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.9677, allocations: 3.938 kB / 1.148 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001494/0.9692, allocations: 0.8621 MB / 1.148 GB, free: 7.297 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.9693, allocations: 8 kB / 1.148 GB, free: 7.289 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.9693, allocations: 8 kB / 1.148 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.9693, allocations: 16 kB / 1.148 GB, free: 7.266 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.9699, allocations: 159.7 kB / 1.149 GB, free: 7.109 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.443e-05/0.9699, allocations: 15.94 kB / 1.149 GB, free: 7.094 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.971, allocations: 147.3 kB / 1.149 GB, free: 6.949 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.971, allocations: 40 kB / 1.149 GB, free: 6.91 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 89 * 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.0005897/0.9716, allocations: 329.5 kB / 1.149 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.9718, allocations: 94.92 kB / 1.149 GB, free: 6.484 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.973, allocations: 0.6374 MB / 1.15 GB, free: 5.844 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.973, allocations: 4 kB / 1.15 GB, free: 5.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.973, allocations: 4 kB / 1.15 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007901/0.9738, allocations: 0.5212 MB / 1.15 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.977, allocations: 1.777 MB / 1.152 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.977, allocations: 0 / 1.152 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.9777, allocations: 119.8 kB / 1.152 GB, free: 3.324 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.9777, allocations: 4.344 kB / 1.152 GB, free: 3.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.9778, allocations: 16 kB / 1.152 GB, free: 3.305 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.9778, allocations: 4 kB / 1.152 GB, free: 3.301 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.9778, allocations: 7.984 kB / 1.152 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.9795, allocations: 1.148 MB / 1.153 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005083/0.98, allocations: 232 kB / 1.154 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.9801, allocations: 12 kB / 1.154 GB, free: 1.801 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005914/0.9807, allocations: 67.77 kB / 1.154 GB, free: 1.734 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.064e-05/0.9808, allocations: 35.89 kB / 1.154 GB, free: 1.699 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.9808, allocations: 24 kB / 1.154 GB, free: 1.676 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000873/0.9817, allocations: 0.5068 MB / 1.154 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9817, allocations: 0 / 1.154 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001142/0.9829, allocations: 303.3 kB / 1.155 GB, free: 0.875 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (51): * Single equations (assignments): 51 * 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.002648/0.9855, allocations: 2.333 MB / 1.157 GB, free: 14.47 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.9869, allocations: 0.6114 MB / 1.157 GB, free: 13.86 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.9869, allocations: 4 kB / 1.157 GB, free: 13.86 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.9873, allocations: 285.1 kB / 1.158 GB, free: 13.58 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.9895, allocations: 441.9 kB / 1.158 GB, free: 13.16 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/1.002, allocations: 10.77 MB / 1.169 GB, free: 2.074 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007882/1.003, allocations: 1.146 MB / 1.17 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0009774/1.004, allocations: 271.3 kB / 1.17 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006914/1.005, allocations: 371.3 kB / 1.17 GB, free: 272 kB / 0.92 GB Notification: Performance of SimCode: time 9.51e-07/1.005, allocations: 0 / 1.17 GB, free: 272 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0446/1.049, allocations: 23.31 MB / 1.193 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/1.049, allocations: 223.9 kB / 1.193 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/3.339, allocations: 0 / 1.193 GB, free: 9.07 MB / 0.9512 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat does not exist to compare? outputFormat=mat