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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 99.31 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.001322/0.001322, allocations: 177.3 kB / 15.94 MB, free: 228 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.548/1.548, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.652/2.652, allocations: 409.2 MB / 0.6838 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005802/0.0005804, allocations: 8 kB / 0.8375 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7783/0.7789, allocations: 146.8 MB / 0.9809 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1933/0.9722, allocations: 161.8 MB / 1.139 GB, free: 4.055 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01739/0.9897, allocations: 12.17 MB / 1.151 GB, free: 7.855 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.9911, allocations: 27.81 kB / 1.151 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.9929, allocations: 0.4938 MB / 1.151 GB, free: 7.332 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005407/0.9983, allocations: 1.558 MB / 1.153 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003166/1.002, allocations: 0.9521 MB / 1.154 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.002598/1.004, allocations: 1.476 MB / 1.155 GB, free: 3.348 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/1.005, allocations: 0.832 MB / 1.156 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/1.008, allocations: 1.102 MB / 1.157 GB, free: 1.398 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/1.009, allocations: 0.6306 MB / 1.158 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000106/1.009, allocations: 48 kB / 1.158 GB, free: 0.7188 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/1.011, allocations: 0.5266 MB / 1.158 GB, free: 196 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004765/1.011, allocations: 415 kB / 1.159 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002989/1.011, allocations: 249.1 kB / 1.159 GB, free: 15.54 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001541/1.013, allocations: 1.317 MB / 1.16 GB, free: 14.21 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/1.013, allocations: 0 / 1.16 GB, free: 14.21 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.124e-06/1.013, allocations: 4 kB / 1.16 GB, free: 14.21 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.402e-05/1.013, allocations: 0 / 1.16 GB, free: 14.21 MB / 0.92 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.002013/1.015, allocations: 1.238 MB / 1.161 GB, free: 12.92 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/1.015, allocations: 8.031 kB / 1.161 GB, free: 12.91 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/1.015, allocations: 147.6 kB / 1.161 GB, free: 12.76 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/1.017, allocations: 254.3 kB / 1.162 GB, free: 12.51 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/1.018, allocations: 0.7536 MB / 1.162 GB, free: 11.71 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/1.018, allocations: 73.98 kB / 1.163 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/1.018, allocations: 92 kB / 1.163 GB, free: 11.55 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/1.02, allocations: 1.153 MB / 1.164 GB, free: 10.33 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/1.02, allocations: 11.94 kB / 1.164 GB, free: 10.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-05/1.02, allocations: 40 kB / 1.164 GB, free: 10.28 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.524e-05/1.02, allocations: 38 kB / 1.164 GB, free: 10.24 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/1.022, allocations: 0.9015 MB / 1.165 GB, free: 9.34 MB / 0.92 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.00638/1.028, allocations: 5.743 MB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/1.029, allocations: 0.5696 MB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004294/1.029, allocations: 149.5 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/1.029, allocations: 39 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of pre-optimization done (n=51): time 3.888e-06/1.029, allocations: 0 / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of matching and sorting (n=51): time 0.001646/1.031, allocations: 0.8299 MB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/1.031, allocations: 81.55 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000875/1.032, allocations: 0.747 MB / 1.173 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.66e-05/1.032, allocations: 41.7 kB / 1.173 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000358/1.032, allocations: 0.5026 MB / 1.173 GB, free: 92 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/1.033, allocations: 185.6 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/1.033, allocations: 15.94 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001168/1.033, allocations: 337.7 kB / 1.174 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003783/1.033, allocations: 257.9 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/1.034, allocations: 0.5731 MB / 1.175 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/1.034, allocations: 352.6 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.034, allocations: 8 kB / 1.175 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001247/1.036, allocations: 0.854 MB / 1.176 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/1.036, allocations: 8.781 kB / 1.176 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/1.036, allocations: 8 kB / 1.176 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/1.036, allocations: 12 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/1.036, allocations: 163.7 kB / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/1.036, allocations: 20.52 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009313/1.037, allocations: 147 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/1.037, allocations: 32 kB / 1.176 GB, free: 12.99 MB / 0.9356 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.0004737/1.038, allocations: 341.4 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/1.038, allocations: 82.97 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/1.039, allocations: 0.6335 MB / 1.177 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/1.039, allocations: 4 kB / 1.177 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/1.039, allocations: 0 / 1.177 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007189/1.04, allocations: 0.5367 MB / 1.178 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/1.043, allocations: 1.777 MB / 1.179 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/1.043, allocations: 7.938 kB / 1.179 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/1.043, allocations: 116.1 kB / 1.179 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/1.043, allocations: 4 kB / 1.179 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/1.043, allocations: 12 kB / 1.18 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.214e-05/1.043, allocations: 15.94 kB / 1.18 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.043, allocations: 3.938 kB / 1.18 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/1.045, allocations: 1.136 MB / 1.181 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005309/1.045, allocations: 228 kB / 1.181 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/1.045, allocations: 12 kB / 1.181 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000636/1.046, allocations: 73.31 kB / 1.181 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/1.046, allocations: 39.89 kB / 1.181 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/1.046, allocations: 16 kB / 1.181 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0006926/1.047, allocations: 0.5068 MB / 1.181 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/1.047, allocations: 0 / 1.181 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001037/1.048, allocations: 303.4 kB / 1.182 GB, free: 6.949 MB / 0.9356 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.002435/1.05, allocations: 2.34 MB / 1.184 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001046/1.052, allocations: 0.62 MB / 1.185 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.052, allocations: 0 / 1.185 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000362/1.052, allocations: 287.9 kB / 1.185 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/1.054, allocations: 440 kB / 1.185 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/1.064, allocations: 10.77 MB / 1.196 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00083/1.065, allocations: 1.142 MB / 1.197 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001023/1.066, allocations: 275.3 kB / 1.197 GB, free: 6.691 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/1.066, allocations: 371.3 kB / 1.198 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of SimCode: time 8.62e-07/1.066, allocations: 0 / 1.198 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.198/1.264, allocations: 23.32 MB / 1.22 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002978/1.265, allocations: 228.4 kB / 1.221 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.446/3.711, allocations: 3.938 kB / 1.221 GB, free: 15.12 MB / 0.9825 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) Environment - environmentSimulation: 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