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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.347/2.347, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.00124/0.00124, allocations: 185 kB / 498.1 MB, free: 5.746 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.567/1.567, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.000938/0.0009379, allocations: 94.56 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003773, allocations: 8.594 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3149, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.5/4.815, allocations: 1.973 GB / 3.196 GB, free: 39.57 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/4.815, allocations: 91.95 kB / 3.196 GB, free: 39.48 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 2.615/7.43, allocations: 0.667 GB / 3.863 GB, free: 278.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.214e-06/7.43, allocations: 0 / 3.863 GB, free: 278.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001657/7.43, allocations: 30.97 kB / 3.863 GB, free: 278.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.005284/7.436, allocations: 1.473 MB / 3.864 GB, free: 276.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/7.436, allocations: 8.031 kB / 3.864 GB, free: 276.9 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005219/7.436, allocations: 147.3 kB / 3.864 GB, free: 276.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/7.438, allocations: 252.4 kB / 3.865 GB, free: 276.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002889/7.441, allocations: 1.121 MB / 3.866 GB, free: 275.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/7.441, allocations: 66 kB / 3.866 GB, free: 275.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/7.441, allocations: 103.9 kB / 3.866 GB, free: 275.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/7.443, allocations: 1.119 MB / 3.867 GB, free: 274 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/7.443, allocations: 0 / 3.867 GB, free: 274 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/7.443, allocations: 40 kB / 3.867 GB, free: 274 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/7.443, allocations: 33.94 kB / 3.867 GB, free: 274 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/7.444, allocations: 0.8508 MB / 3.868 GB, free: 273.1 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.004695/7.449, allocations: 5.698 MB / 3.873 GB, free: 267 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006917/7.45, allocations: 0.5426 MB / 3.874 GB, free: 266.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00048/7.45, allocations: 314 kB / 3.874 GB, free: 266.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/7.45, allocations: 42.94 kB / 3.874 GB, free: 266.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/7.45, allocations: 3.844 kB / 3.874 GB, free: 266.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=49): time 0.001304/7.451, allocations: 0.778 MB / 3.875 GB, free: 265.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/7.452, allocations: 59.84 kB / 3.875 GB, free: 265.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006734/7.452, allocations: 0.6525 MB / 3.876 GB, free: 264.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/7.452, allocations: 37.7 kB / 3.876 GB, free: 264.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/7.453, allocations: 0.5014 MB / 3.876 GB, free: 264 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/7.453, allocations: 181.5 kB / 3.876 GB, free: 263.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/7.453, allocations: 12 kB / 3.876 GB, free: 263.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.135e-05/7.453, allocations: 334 kB / 3.877 GB, free: 263.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/7.453, allocations: 245.8 kB / 3.877 GB, free: 263.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/7.453, allocations: 0.5711 MB / 3.878 GB, free: 262.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/7.454, allocations: 347 kB / 3.878 GB, free: 262.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/7.454, allocations: 4 kB / 3.878 GB, free: 262.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009969/7.455, allocations: 0.8393 MB / 3.879 GB, free: 261.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/7.455, allocations: 9.094 kB / 3.879 GB, free: 261.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/7.455, allocations: 8 kB / 3.879 GB, free: 261.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/7.455, allocations: 12 kB / 3.879 GB, free: 261.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/7.455, allocations: 155.8 kB / 3.879 GB, free: 261.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/7.456, allocations: 19.92 kB / 3.879 GB, free: 261.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009304/7.456, allocations: 150.9 kB / 3.879 GB, free: 261.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.551e-05/7.457, allocations: 35.98 kB / 3.879 GB, free: 261 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.0003802/7.457, allocations: 333.4 kB / 3.879 GB, free: 260.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/7.457, allocations: 86.92 kB / 3.88 GB, free: 260.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008236/7.458, allocations: 0.6197 MB / 3.88 GB, free: 260 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/7.458, allocations: 4 kB / 3.88 GB, free: 260 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/7.458, allocations: 0 / 3.88 GB, free: 260 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005809/7.458, allocations: 0.5129 MB / 3.881 GB, free: 259.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/7.461, allocations: 1.653 MB / 3.882 GB, free: 257.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/7.461, allocations: 0 / 3.882 GB, free: 257.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/7.461, allocations: 111.9 kB / 3.882 GB, free: 257.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/7.461, allocations: 4 kB / 3.882 GB, free: 257.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/7.461, allocations: 8 kB / 3.882 GB, free: 257.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/7.461, allocations: 4 kB / 3.882 GB, free: 257.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/7.461, allocations: 4 kB / 3.882 GB, free: 257.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/7.462, allocations: 1.097 MB / 3.883 GB, free: 256.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003221/7.463, allocations: 223.9 kB / 3.884 GB, free: 256.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/7.463, allocations: 19.92 kB / 3.884 GB, free: 256.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005848/7.463, allocations: 61.67 kB / 3.884 GB, free: 256.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/7.463, allocations: 39.84 kB / 3.884 GB, free: 256.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/7.463, allocations: 19.98 kB / 3.884 GB, free: 256.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0004912/7.464, allocations: 0.5029 MB / 3.884 GB, free: 255.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.6e-07/7.464, allocations: 0 / 3.884 GB, free: 255.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001433/7.465, allocations: 490.6 kB / 3.885 GB, free: 255.1 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.003615/7.469, allocations: 3.904 MB / 3.889 GB, free: 251.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0007918/7.47, allocations: 0.6019 MB / 3.889 GB, free: 251 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/7.47, allocations: 0 / 3.889 GB, free: 251 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002819/7.47, allocations: 269 kB / 3.889 GB, free: 250.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/7.472, allocations: 438.9 kB / 3.89 GB, free: 250.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007176/7.479, allocations: 10.88 MB / 3.9 GB, free: 239.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/7.479, allocations: 1.142 MB / 3.902 GB, free: 237.9 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008578/7.48, allocations: 279 kB / 3.902 GB, free: 237.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003834/7.481, allocations: 355.3 kB / 3.902 GB, free: 237.3 MB / 1.167 GB Notification: Performance of SimCode: time 9.82e-07/7.481, allocations: 0 / 3.902 GB, free: 237.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06727/7.548, allocations: 51.38 MB / 3.952 GB, free: 186.5 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/7.548, allocations: 216.1 kB / 3.953 GB, free: 186.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.782/11.33, allocations: 0 / 3.953 GB, free: 186.2 MB / 1.167 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