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.234/2.234, allocations: 390.5 MB / 398 MB, free: 10.98 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.001101/0.001101, allocations: 173 kB / 491.2 MB, free: 1.602 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.539/1.539, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001202/0.001202, allocations: 95.83 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.659e-05/2.662e-05, allocations: 9.641 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2765, allocations: 143 MB / 1.212 GB, free: 39.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.94/5.216, allocations: 1.973 GB / 3.185 GB, free: 298.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/5.217, allocations: 90.52 kB / 3.185 GB, free: 298.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.169/7.386, allocations: 0.6589 GB / 3.844 GB, free: 77.96 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.984e-06/7.386, allocations: 0 / 3.844 GB, free: 77.96 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001954/7.386, allocations: 28 kB / 3.844 GB, free: 77.93 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.005512/7.392, allocations: 1.333 MB / 3.846 GB, free: 76.55 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.487e-05/7.392, allocations: 8.031 kB / 3.846 GB, free: 76.54 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002366/7.394, allocations: 250.3 kB / 3.846 GB, free: 76.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004258/7.398, allocations: 1.109 MB / 3.847 GB, free: 75.15 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.927e-05/7.399, allocations: 28 kB / 3.847 GB, free: 75.12 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003839/7.399, allocations: 63.98 kB / 3.847 GB, free: 75.06 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001993/7.401, allocations: 0.7575 MB / 3.848 GB, free: 74.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/7.403, allocations: 0.9783 MB / 3.849 GB, free: 73.25 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/7.403, allocations: 0 / 3.849 GB, free: 73.25 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.794e-05/7.403, allocations: 4 kB / 3.849 GB, free: 73.25 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-05/7.403, allocations: 30 kB / 3.849 GB, free: 73.21 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.006236/7.409, allocations: 5.521 MB / 3.854 GB, free: 67.25 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007546/7.41, allocations: 0.5086 MB / 3.855 GB, free: 66.74 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003327/7.41, allocations: 290.6 kB / 3.855 GB, free: 66.45 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005506/7.411, allocations: 311.8 kB / 3.855 GB, free: 66.09 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/7.411, allocations: 43 kB / 3.855 GB, free: 66.04 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 3.337e-06/7.411, allocations: 0 / 3.855 GB, free: 66.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=49): time 0.001473/7.413, allocations: 0.5849 MB / 3.856 GB, free: 65.45 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/7.413, allocations: 55.84 kB / 3.856 GB, free: 65.38 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/7.413, allocations: 0.5154 MB / 3.856 GB, free: 64.86 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.125e-05/7.414, allocations: 25.7 kB / 3.856 GB, free: 64.82 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/7.414, allocations: 0.5063 MB / 3.857 GB, free: 64.31 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/7.414, allocations: 173.5 kB / 3.857 GB, free: 64.14 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/7.414, allocations: 3.938 kB / 3.857 GB, free: 64.13 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001446/7.414, allocations: 394.7 kB / 3.857 GB, free: 63.74 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/7.415, allocations: 217.5 kB / 3.858 GB, free: 63.53 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004724/7.415, allocations: 0.5375 MB / 3.858 GB, free: 62.84 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005476/7.416, allocations: 360.5 kB / 3.858 GB, free: 62.48 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/7.416, allocations: 4 kB / 3.858 GB, free: 62.48 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001276/7.417, allocations: 0.7726 MB / 3.859 GB, free: 61.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/7.417, allocations: 8 kB / 3.859 GB, free: 61.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/7.417, allocations: 8 kB / 3.859 GB, free: 61.69 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/7.417, allocations: 16 kB / 3.859 GB, free: 61.67 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/7.418, allocations: 159.7 kB / 3.859 GB, free: 61.52 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/7.418, allocations: 19.92 kB / 3.859 GB, free: 61.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/7.419, allocations: 119.4 kB / 3.86 GB, free: 61.38 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/7.419, allocations: 32 kB / 3.86 GB, free: 61.35 MB / 1.151 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 () * 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.0001557/7.419, allocations: 136.7 kB / 3.86 GB, free: 61.21 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008727/7.42, allocations: 0.5381 MB / 3.86 GB, free: 60.66 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/7.42, allocations: 79.06 kB / 3.86 GB, free: 60.58 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009892/7.421, allocations: 0.5895 MB / 3.861 GB, free: 59.99 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/7.421, allocations: 8 kB / 3.861 GB, free: 59.98 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/7.421, allocations: 0 / 3.861 GB, free: 59.98 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006372/7.422, allocations: 0.5016 MB / 3.861 GB, free: 59.46 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/7.424, allocations: 1.528 MB / 3.863 GB, free: 57.87 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/7.424, allocations: 8.219 kB / 3.863 GB, free: 57.86 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/7.425, allocations: 107.9 kB / 3.863 GB, free: 57.76 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/7.425, allocations: 4 kB / 3.863 GB, free: 57.75 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.173e-05/7.425, allocations: 12 kB / 3.863 GB, free: 57.74 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/7.425, allocations: 4 kB / 3.863 GB, free: 57.74 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/7.425, allocations: 3.938 kB / 3.863 GB, free: 57.73 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/7.426, allocations: 1.06 MB / 3.864 GB, free: 56.59 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004389/7.427, allocations: 216 kB / 3.864 GB, free: 56.36 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/7.427, allocations: 4 kB / 3.864 GB, free: 56.36 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007485/7.428, allocations: 63.72 kB / 3.864 GB, free: 56.29 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/7.428, allocations: 43.84 kB / 3.864 GB, free: 56.25 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/7.428, allocations: 16 kB / 3.864 GB, free: 56.23 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005058/7.428, allocations: 399.1 kB / 3.865 GB, free: 55.85 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/7.428, allocations: 4 kB / 3.865 GB, free: 55.84 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001734/7.43, allocations: 411.2 kB / 3.865 GB, free: 55.44 MB / 1.151 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 () * 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.005051/7.435, allocations: 4.111 MB / 3.869 GB, free: 51.19 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001058/7.436, allocations: 0.5566 MB / 3.87 GB, free: 50.63 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/7.436, allocations: 4 kB / 3.87 GB, free: 50.62 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003652/7.436, allocations: 247.7 kB / 3.87 GB, free: 50.38 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/7.439, allocations: 370 kB / 3.87 GB, free: 50.03 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/7.444, allocations: 1.738 MB / 3.872 GB, free: 48.23 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008116/7.444, allocations: 1.141 MB / 3.873 GB, free: 47.06 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001113/7.446, allocations: 258.5 kB / 3.873 GB, free: 46.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005721/7.446, allocations: 355.3 kB / 3.874 GB, free: 46.45 MB / 1.151 GB Notification: Performance of SimCode: time 2.796e-06/7.446, allocations: 0 / 3.874 GB, free: 46.45 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06936/7.516, allocations: 34.41 MB / 3.907 GB, free: 12.23 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/7.516, allocations: 176.7 kB / 3.907 GB, free: 12.03 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.346/10.86, allocations: 4 kB / 3.907 GB, free: 12.03 MB / 1.151 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