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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001329/0.001329, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.323/1.323, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.317/2.317, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5865/0.588, allocations: 140.4 MB / 0.949 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1887/0.7768, allocations: 192.9 MB / 1.137 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01702/0.7939, allocations: 14.4 MB / 1.151 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.795, allocations: 31.81 kB / 1.151 GB, free: 2.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.7965, allocations: 429.7 kB / 1.152 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.8008, allocations: 1.766 MB / 1.154 GB, free: 15.88 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.803, allocations: 0.7794 MB / 1.154 GB, free: 15.1 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003693/0.8067, allocations: 3.62 MB / 1.158 GB, free: 11.47 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.808, allocations: 0.9402 MB / 1.159 GB, free: 10.51 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003951/0.8119, allocations: 1.438 MB / 1.16 GB, free: 9.078 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.8135, allocations: 0.9711 MB / 1.161 GB, free: 8.105 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.8136, allocations: 60 kB / 1.161 GB, free: 8.047 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002228/0.8159, allocations: 1.251 MB / 1.162 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004332/0.8163, allocations: 466.7 kB / 1.163 GB, free: 6.336 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0006055/0.8169, allocations: 0.5792 MB / 1.163 GB, free: 5.754 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.8191, allocations: 1.924 MB / 1.165 GB, free: 3.824 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.8191, allocations: 0 / 1.165 GB, free: 3.824 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.525e-06/0.8191, allocations: 0 / 1.165 GB, free: 3.824 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.8191, allocations: 3.938 kB / 1.165 GB, free: 3.82 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.002073/0.8212, allocations: 1.447 MB / 1.167 GB, free: 2.32 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.8212, allocations: 12.03 kB / 1.167 GB, free: 2.309 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/0.8214, allocations: 147.6 kB / 1.167 GB, free: 2.156 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.8228, allocations: 258.3 kB / 1.167 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.8239, allocations: 0.7531 MB / 1.168 GB, free: 1.105 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.012e-05/0.824, allocations: 74 kB / 1.168 GB, free: 1.031 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.8241, allocations: 96 kB / 1.168 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.8258, allocations: 1.166 MB / 1.169 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.8258, allocations: 0 / 1.169 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.273e-05/0.8259, allocations: 43.94 kB / 1.169 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.904e-05/0.8259, allocations: 37.94 kB / 1.169 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.8273, allocations: 0.9015 MB / 1.17 GB, free: 14.72 MB / 0.9356 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.005126/0.8324, allocations: 5.731 MB / 1.176 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008261/0.8332, allocations: 0.5316 MB / 1.176 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/0.8337, allocations: 327.3 kB / 1.177 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005825/0.8343, allocations: 307.8 kB / 1.177 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.8343, allocations: 46.98 kB / 1.177 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.8343, allocations: 0 / 1.177 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001432/0.8358, allocations: 0.7948 MB / 1.178 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.8358, allocations: 55.84 kB / 1.178 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008393/0.8366, allocations: 0.7432 MB / 1.178 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.8367, allocations: 37.7 kB / 1.179 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.8371, allocations: 0.5297 MB / 1.179 GB, free: 5.059 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.8372, allocations: 173.5 kB / 1.179 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.8374, allocations: 138.5 kB / 1.179 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.8375, allocations: 341.9 kB / 1.18 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003678/0.8379, allocations: 245.9 kB / 1.18 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005867/0.8385, allocations: 0.5508 MB / 1.18 GB, free: 3.48 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009545/0.8395, allocations: 0.7995 MB / 1.181 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8395, allocations: 4 kB / 1.181 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001213/0.8407, allocations: 0.8498 MB / 1.182 GB, free: 1.707 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.8407, allocations: 8 kB / 1.182 GB, free: 1.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.8408, allocations: 8.906 kB / 1.182 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.8408, allocations: 12 kB / 1.182 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.8413, allocations: 155.8 kB / 1.182 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.8414, allocations: 15.98 kB / 1.182 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008503/0.8422, allocations: 146.9 kB / 1.182 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.8423, allocations: 39.94 kB / 1.182 GB, free: 1.328 MB / 0.9356 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.0003936/0.8427, allocations: 328 kB / 1.183 GB, free: 1 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.8428, allocations: 86.97 kB / 1.183 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009458/0.8438, allocations: 0.6218 MB / 1.183 GB, free: 292 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.8438, allocations: 4 kB / 1.183 GB, free: 288 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.8438, allocations: 0 / 1.183 GB, free: 288 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007254/0.8445, allocations: 0.525 MB / 1.184 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.8469, allocations: 1.67 MB / 1.186 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.8469, allocations: 224 / 1.186 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.8475, allocations: 115.9 kB / 1.186 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.8475, allocations: 4 kB / 1.186 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.82e-05/0.8475, allocations: 12 kB / 1.186 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/0.8475, allocations: 3.938 kB / 1.186 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.8475, allocations: 4 kB / 1.186 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.8489, allocations: 1.03 MB / 1.187 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003115/0.8492, allocations: 224 kB / 1.187 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.8494, allocations: 12 kB / 1.187 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.8499, allocations: 63.88 kB / 1.187 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.85, allocations: 31.95 kB / 1.187 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.8501, allocations: 16 kB / 1.187 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005997/0.8507, allocations: 0.5146 MB / 1.188 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8507, allocations: 0 / 1.188 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007885/0.8515, allocations: 307.2 kB / 1.188 GB, free: 11.62 MB / 0.9512 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.002008/0.8535, allocations: 1.666 MB / 1.189 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008977/0.8544, allocations: 0.6004 MB / 1.19 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8544, allocations: 0 / 1.19 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.8548, allocations: 283.8 kB / 1.19 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.8566, allocations: 444.8 kB / 1.191 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009764/0.8664, allocations: 7.848 MB / 1.198 GB, free: 356 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007404/0.8672, allocations: 1.118 MB / 1.2 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0008561/0.8681, allocations: 267.1 kB / 1.2 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005362/0.8686, allocations: 363.3 kB / 1.2 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of SimCode: time 8.21e-07/0.8686, allocations: 3.938 kB / 1.2 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03875/0.9074, allocations: 22.29 MB / 1.222 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002999/0.9077, allocations: 241 kB / 1.222 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/3.136, allocations: 3.938 kB / 1.222 GB, free: 8.367 MB / 0.9825 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/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)