Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_10_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.001422/0.001422, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001731/0.00173, allocations: 190.9 kB / 16.13 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.749/2.749, allocations: 437 MB / 0.71 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 63.91 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8169/0.8185, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2299/1.049, allocations: 192.9 MB / 1.205 GB, free: 1.211 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0191/1.068, allocations: 14.41 MB / 1.219 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/1.07, allocations: 35.75 kB / 1.219 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001702/1.071, allocations: 421.7 kB / 1.22 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004944/1.076, allocations: 1.782 MB / 1.221 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00251/1.079, allocations: 0.7677 MB / 1.222 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004251/1.083, allocations: 3.614 MB / 1.226 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/1.084, allocations: 0.948 MB / 1.227 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004636/1.089, allocations: 1.444 MB / 1.228 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/1.091, allocations: 0.9652 MB / 1.229 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001462/1.091, allocations: 60 kB / 1.229 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002588/1.093, allocations: 1.251 MB / 1.23 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004892/1.094, allocations: 478.7 kB / 1.231 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007266/1.095, allocations: 0.5831 MB / 1.231 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002561/1.097, allocations: 1.92 MB / 1.233 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/1.097, allocations: 3.984 kB / 1.233 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.082e-06/1.097, allocations: 0 / 1.233 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.051e-05/1.097, allocations: 0 / 1.233 GB, free: 4.469 MB / 0.9825 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.002455/1.1, allocations: 1.449 MB / 1.234 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/1.1, allocations: 15.98 kB / 1.234 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001813/1.1, allocations: 139.6 kB / 1.235 GB, free: 2.805 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/1.102, allocations: 254.4 kB / 1.235 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/1.103, allocations: 0.7531 MB / 1.236 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.42e-05/1.103, allocations: 66 kB / 1.236 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/1.103, allocations: 99.98 kB / 1.236 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/1.105, allocations: 1.169 MB / 1.237 GB, free: 368 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/1.105, allocations: 7.938 kB / 1.237 GB, free: 360 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.82e-05/1.105, allocations: 43.92 kB / 1.237 GB, free: 316 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.243e-05/1.105, allocations: 34 kB / 1.237 GB, free: 280 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/1.106, allocations: 0.8977 MB / 1.238 GB, free: 15.38 MB / 0.9981 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.0059/1.112, allocations: 5.735 MB / 1.243 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009185/1.113, allocations: 0.5369 MB / 1.244 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004514/1.114, allocations: 314.6 kB / 1.244 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000668/1.114, allocations: 315.7 kB / 1.245 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/1.114, allocations: 39 kB / 1.245 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.365e-06/1.114, allocations: 0 / 1.245 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001618/1.116, allocations: 0.8026 MB / 1.245 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/1.116, allocations: 59.78 kB / 1.245 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009659/1.117, allocations: 0.7548 MB / 1.246 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/1.117, allocations: 37.7 kB / 1.246 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/1.118, allocations: 0.5065 MB / 1.247 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/1.118, allocations: 169.5 kB / 1.247 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/1.118, allocations: 146.4 kB / 1.247 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.118, allocations: 345.8 kB / 1.247 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/1.119, allocations: 245.9 kB / 1.248 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/1.119, allocations: 0.5585 MB / 1.248 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/1.12, allocations: 0.7956 MB / 1.249 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.12, allocations: 0 / 1.249 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001401/1.122, allocations: 0.8464 MB / 1.25 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/1.122, allocations: 9.094 kB / 1.25 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/1.122, allocations: 8 kB / 1.25 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/1.122, allocations: 12 kB / 1.25 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/1.122, allocations: 159.7 kB / 1.25 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/1.122, allocations: 15.94 kB / 1.25 GB, free: 2.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009541/1.123, allocations: 147.4 kB / 1.25 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/1.123, allocations: 36 kB / 1.25 GB, free: 1.984 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005014/1.124, allocations: 333.5 kB / 1.25 GB, free: 1.648 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/1.124, allocations: 86.97 kB / 1.251 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/1.125, allocations: 0.6179 MB / 1.251 GB, free: 0.9375 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/1.125, allocations: 8 kB / 1.251 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.125, allocations: 0 / 1.251 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007961/1.126, allocations: 0.5289 MB / 1.252 GB, free: 396 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6936/1.82, allocations: 1.664 MB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/1.82, allocations: 2.219 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006046/1.82, allocations: 109.4 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/1.82, allocations: 4.156 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/1.82, allocations: 15.75 kB / 1.253 GB, free: 235.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.867e-06/1.82, allocations: 7.016 kB / 1.253 GB, free: 235.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.82, allocations: 2.062 kB / 1.253 GB, free: 235.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/1.822, allocations: 1.02 MB / 1.254 GB, free: 235.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/1.822, allocations: 226.1 kB / 1.255 GB, free: 235 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/1.822, allocations: 15.16 kB / 1.255 GB, free: 235 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006134/1.823, allocations: 60.14 kB / 1.255 GB, free: 235 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.671e-05/1.823, allocations: 31.52 kB / 1.255 GB, free: 234.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/1.823, allocations: 23.98 kB / 1.255 GB, free: 234.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007914/1.824, allocations: 0.5137 MB / 1.255 GB, free: 234.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.824, allocations: 0.6875 kB / 1.255 GB, free: 234.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001086/1.825, allocations: 296 kB / 1.256 GB, free: 234.7 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002195/1.827, allocations: 1.669 MB / 1.257 GB, free: 233.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001236/1.829, allocations: 0.6097 MB / 1.258 GB, free: 233.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/1.829, allocations: 0.8438 kB / 1.258 GB, free: 233.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004335/1.829, allocations: 269.6 kB / 1.258 GB, free: 233.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/1.831, allocations: 441.6 kB / 1.258 GB, free: 233.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/1.843, allocations: 7.848 MB / 1.266 GB, free: 228.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/1.844, allocations: 1.119 MB / 1.267 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001187/1.845, allocations: 270.8 kB / 1.267 GB, free: 227.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004724/1.846, allocations: 361 kB / 1.268 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of SimCode: time 8.32e-07/1.846, allocations: 0 / 1.268 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04071/1.886, allocations: 22.29 MB / 1.29 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/1.887, allocations: 238.3 kB / 1.29 GB, free: 214.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/4.312, allocations: 0 / 1.29 GB, free: 214.9 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)