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.277/2.277, allocations: 390.3 MB / 402.8 MB, free: 6.66 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.001044/0.001044, allocations: 188.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0008272/0.0008272, allocations: 87.84 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.224e-05, allocations: 11.98 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2378, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.994/5.232, allocations: 1.974 GB / 3.192 GB, free: 339.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/5.232, allocations: 91.95 kB / 3.192 GB, free: 339.2 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 2.027/7.259, allocations: 0.6664 GB / 3.859 GB, free: 109.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.272e-06/7.259, allocations: 0 / 3.859 GB, free: 109.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001157/7.259, allocations: 28 kB / 3.859 GB, free: 109.2 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.003296/7.263, allocations: 1.333 MB / 3.86 GB, free: 107.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/7.263, allocations: 11.97 kB / 3.86 GB, free: 107.9 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003621/7.263, allocations: 147.6 kB / 3.86 GB, free: 107.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00173/7.265, allocations: 250.3 kB / 3.861 GB, free: 107.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002839/7.268, allocations: 1.097 MB / 3.862 GB, free: 106.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/7.268, allocations: 73.98 kB / 3.862 GB, free: 106.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002176/7.268, allocations: 96 kB / 3.862 GB, free: 106.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/7.27, allocations: 1.107 MB / 3.863 GB, free: 105 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/7.27, allocations: 3.938 kB / 3.863 GB, free: 105 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-05/7.27, allocations: 44 kB / 3.863 GB, free: 104.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.703e-05/7.27, allocations: 30 kB / 3.863 GB, free: 104.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/7.271, allocations: 0.8315 MB / 3.864 GB, free: 104.1 MB / 1.167 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.005178/7.276, allocations: 5.699 MB / 3.869 GB, free: 97.91 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007445/7.277, allocations: 0.5414 MB / 3.87 GB, free: 97.36 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/7.278, allocations: 302.6 kB / 3.87 GB, free: 97.06 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005008/7.278, allocations: 307.8 kB / 3.87 GB, free: 96.71 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/7.278, allocations: 42.95 kB / 3.87 GB, free: 96.66 MB / 1.167 GB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/7.278, allocations: 0 / 3.87 GB, free: 96.66 MB / 1.167 GB Notification: Performance of matching and sorting (n=49): time 0.001192/7.279, allocations: 0.5848 MB / 3.871 GB, free: 96.06 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/7.279, allocations: 59.84 kB / 3.871 GB, free: 95.99 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008504/7.28, allocations: 0.641 MB / 3.872 GB, free: 95.35 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 6.783e-05/7.28, allocations: 41.7 kB / 3.872 GB, free: 95.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000311/7.281, allocations: 0.5142 MB / 3.872 GB, free: 94.78 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/7.281, allocations: 177.5 kB / 3.872 GB, free: 94.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/7.281, allocations: 12 kB / 3.872 GB, free: 94.59 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.444e-05/7.281, allocations: 334.3 kB / 3.873 GB, free: 94.26 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/7.281, allocations: 237.4 kB / 3.873 GB, free: 94.03 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/7.282, allocations: 0.5741 MB / 3.874 GB, free: 93.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005466/7.282, allocations: 343.1 kB / 3.874 GB, free: 92.97 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/7.282, allocations: 4 kB / 3.874 GB, free: 92.96 MB / 1.167 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001403/7.284, allocations: 0.8193 MB / 3.875 GB, free: 92.14 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/7.284, allocations: 13.44 kB / 3.875 GB, free: 92.13 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/7.284, allocations: 11.98 kB / 3.875 GB, free: 92.12 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.926e-05/7.284, allocations: 15.95 kB / 3.875 GB, free: 92.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/7.285, allocations: 151.8 kB / 3.875 GB, free: 91.95 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.669e-05/7.285, allocations: 15.94 kB / 3.875 GB, free: 91.94 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/7.286, allocations: 151 kB / 3.875 GB, free: 91.79 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/7.286, allocations: 36 kB / 3.875 GB, free: 91.75 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 () * 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.0001803/7.286, allocations: 152.7 kB / 3.875 GB, free: 91.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/7.286, allocations: 82.97 kB / 3.875 GB, free: 91.52 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/7.287, allocations: 0.5982 MB / 3.876 GB, free: 90.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/7.287, allocations: 15.95 kB / 3.876 GB, free: 90.89 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/7.287, allocations: 0 / 3.876 GB, free: 90.89 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006691/7.288, allocations: 0.5016 MB / 3.876 GB, free: 90.38 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/7.291, allocations: 1.656 MB / 3.878 GB, free: 88.64 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/7.291, allocations: 0 / 3.878 GB, free: 88.64 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004937/7.291, allocations: 107.9 kB / 3.878 GB, free: 88.54 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/7.292, allocations: 7.938 kB / 3.878 GB, free: 88.53 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/7.292, allocations: 15.98 kB / 3.878 GB, free: 88.51 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/7.292, allocations: 7.984 kB / 3.878 GB, free: 88.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/7.292, allocations: 4 kB / 3.878 GB, free: 88.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/7.293, allocations: 1.081 MB / 3.879 GB, free: 87.33 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/7.293, allocations: 219.9 kB / 3.879 GB, free: 87.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.682e-05/7.293, allocations: 19.92 kB / 3.879 GB, free: 87.08 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/7.294, allocations: 63.86 kB / 3.879 GB, free: 87.02 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.442e-05/7.294, allocations: 35.91 kB / 3.879 GB, free: 86.98 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/7.294, allocations: 19.98 kB / 3.88 GB, free: 86.96 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005664/7.295, allocations: 0.4991 MB / 3.88 GB, free: 86.47 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.7e-07/7.295, allocations: 0 / 3.88 GB, free: 86.47 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001927/7.297, allocations: 475.3 kB / 3.88 GB, free: 86 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 () * 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.004828/7.301, allocations: 3.905 MB / 3.884 GB, free: 81.96 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0008961/7.302, allocations: 0.584 MB / 3.885 GB, free: 81.38 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/7.302, allocations: 0 / 3.885 GB, free: 81.38 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000278/7.303, allocations: 263.7 kB / 3.885 GB, free: 81.12 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/7.305, allocations: 439.9 kB / 3.886 GB, free: 80.69 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/7.307, allocations: 1.798 MB / 3.887 GB, free: 78.84 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/7.308, allocations: 1.142 MB / 3.888 GB, free: 77.67 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0007818/7.309, allocations: 267.1 kB / 3.889 GB, free: 77.41 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/7.309, allocations: 359.3 kB / 3.889 GB, free: 77.05 MB / 1.167 GB Notification: Performance of SimCode: time 6.21e-07/7.309, allocations: 0 / 3.889 GB, free: 77.05 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0732/7.382, allocations: 56.26 MB / 3.944 GB, free: 21.07 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/7.382, allocations: 202.9 kB / 3.944 GB, free: 20.83 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.877/11.26, allocations: 3.5 kB / 3.944 GB, free: 20.83 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