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.001166/0.001166, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.008872/0.008872, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.564/2.564, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003501, allocations: 8 kB / 0.8729 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6975/0.6978, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2087/0.9066, allocations: 190.3 MB / 1.209 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01766/0.9243, allocations: 14.22 MB / 1.223 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.9256, allocations: 31.81 kB / 1.223 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.9272, allocations: 429.7 kB / 1.223 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004782/0.932, allocations: 1.778 MB / 1.225 GB, free: 352 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002389/0.9344, allocations: 0.7598 MB / 1.226 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004094/0.9385, allocations: 3.618 MB / 1.229 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.9401, allocations: 0.904 MB / 1.23 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005128/0.9452, allocations: 1.411 MB / 1.232 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.9471, allocations: 0.9213 MB / 1.232 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002774/0.9474, allocations: 48 kB / 1.233 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.9503, allocations: 1.247 MB / 1.234 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007053/0.9511, allocations: 442.8 kB / 1.234 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.9523, allocations: 0.5808 MB / 1.235 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003194/0.9555, allocations: 1.888 MB / 1.237 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.9555, allocations: 7.938 kB / 1.237 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.354e-06/0.9555, allocations: 0 / 1.237 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.42e-05/0.9556, allocations: 0 / 1.237 GB, free: 4.488 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.002634/0.9582, allocations: 1.235 MB / 1.238 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.9583, allocations: 8.031 kB / 1.238 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003109/0.9586, allocations: 147.6 kB / 1.238 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001527/0.9601, allocations: 258.3 kB / 1.238 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.9615, allocations: 0.7453 MB / 1.239 GB, free: 2 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.9616, allocations: 74 kB / 1.239 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.9618, allocations: 88 kB / 1.239 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.9636, allocations: 1.177 MB / 1.24 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.9637, allocations: 7.844 kB / 1.24 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.579e-05/0.9637, allocations: 43.94 kB / 1.24 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.254e-05/0.9638, allocations: 34 kB / 1.24 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6219/1.586, allocations: 0.8964 MB / 1.241 GB, free: 14.79 MB / 0.9825 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.005333/1.591, allocations: 5.726 MB / 1.247 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/1.592, allocations: 0.5372 MB / 1.247 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/1.592, allocations: 317.9 kB / 1.248 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005836/1.593, allocations: 327.6 kB / 1.248 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/1.593, allocations: 40.5 kB / 1.248 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/1.593, allocations: 0.6562 kB / 1.248 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49): time 0.001599/1.595, allocations: 0.7983 MB / 1.249 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/1.595, allocations: 59.84 kB / 1.249 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/1.596, allocations: 0.7527 MB / 1.25 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/1.596, allocations: 36.95 kB / 1.25 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/1.596, allocations: 0.506 MB / 1.25 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/1.596, allocations: 178.8 kB / 1.25 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-05/1.596, allocations: 62.66 kB / 1.25 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 6.424e-05/1.597, allocations: 337.5 kB / 1.251 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004137/1.597, allocations: 248.6 kB / 1.251 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000585/1.598, allocations: 0.5531 MB / 1.251 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009898/1.599, allocations: 0.8024 MB / 1.252 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/1.599, allocations: 2.969 kB / 1.252 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001403/1.6, allocations: 0.8483 MB / 1.253 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/1.6, allocations: 7.75 kB / 1.253 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/1.6, allocations: 11.97 kB / 1.253 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.133e-05/1.6, allocations: 12.47 kB / 1.253 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005927/1.601, allocations: 152.6 kB / 1.253 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-05/1.601, allocations: 19.56 kB / 1.253 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009836/1.602, allocations: 145 kB / 1.253 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/1.602, allocations: 38.86 kB / 1.253 GB, free: 8.941 MB / 0.9825 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.0004266/1.602, allocations: 335.6 kB / 1.254 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/1.602, allocations: 87.97 kB / 1.254 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/1.603, allocations: 0.616 MB / 1.254 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/1.603, allocations: 4.656 kB / 1.254 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/1.603, allocations: 4 kB / 1.254 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008039/1.604, allocations: 0.5181 MB / 1.255 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/1.607, allocations: 1.665 MB / 1.257 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1.607, allocations: 3.125 kB / 1.257 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005932/1.608, allocations: 114.6 kB / 1.257 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/1.608, allocations: 4.156 kB / 1.257 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/1.608, allocations: 11.23 kB / 1.257 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.124e-05/1.608, allocations: 4.469 kB / 1.257 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.608, allocations: 2.219 kB / 1.257 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/1.609, allocations: 1.028 MB / 1.258 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/1.61, allocations: 229.8 kB / 1.258 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-05/1.61, allocations: 18.03 kB / 1.258 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005856/1.61, allocations: 65.06 kB / 1.258 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/1.61, allocations: 34.72 kB / 1.258 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/1.61, allocations: 18.19 kB / 1.258 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0006372/1.611, allocations: 0.5093 MB / 1.258 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/1.611, allocations: 0 / 1.258 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009193/1.612, allocations: 300.2 kB / 1.259 GB, free: 7.715 MB / 0.9825 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.001802/1.614, allocations: 1.673 MB / 1.26 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009911/1.615, allocations: 0.6042 MB / 1.261 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.615, allocations: 1.156 kB / 1.261 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003647/1.615, allocations: 273 kB / 1.261 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/1.618, allocations: 434 kB / 1.262 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009524/1.627, allocations: 7.943 MB / 1.269 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/1.628, allocations: 1.123 MB / 1.271 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0009627/1.629, allocations: 264.7 kB / 1.271 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/1.629, allocations: 360.5 kB / 1.271 GB, free: 2.621 MB / 0.9825 GB Notification: Performance of SimCode: time 6.62e-07/1.629, allocations: 0 / 1.271 GB, free: 2.621 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0367/1.666, allocations: 22.08 MB / 1.293 GB, free: 1.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/1.666, allocations: 250.7 kB / 1.293 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/4.057, allocations: 0 / 1.293 GB, free: 1.004 MB / 0.9825 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)