Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_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.001089/0.001089, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 283.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9557/0.9557, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 105.3 kB / 0.5953 GB, free: 27.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1511, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5255/0.6767, allocations: 195.1 MB / 0.8708 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01701/0.6937, allocations: 14.32 MB / 0.8848 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.6953, allocations: 34.56 kB / 0.8848 GB, free: 0.6875 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.6967, allocations: 0.492 MB / 0.8853 GB, free: 280 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004671/0.7014, allocations: 1.891 MB / 0.8871 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.7038, allocations: 0.8596 MB / 0.888 GB, free: 14.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003115/0.707, allocations: 2.563 MB / 0.8905 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.7085, allocations: 1.122 MB / 0.8916 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003978/0.7125, allocations: 1.595 MB / 0.8931 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001567/0.7141, allocations: 0.9203 MB / 0.894 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002629/0.7144, allocations: 105.5 kB / 0.8941 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002312/0.7167, allocations: 1.098 MB / 0.8952 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005786/0.7173, allocations: 0.5023 MB / 0.8957 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.7189, allocations: 0.6338 MB / 0.8963 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003703/0.7226, allocations: 1.886 MB / 0.8981 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.7226, allocations: 0 / 0.8981 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7226, allocations: 0 / 0.8981 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.21e-05/0.7227, allocations: 0 / 0.8981 GB, free: 8.059 MB / 0.6075 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.002856/0.7256, allocations: 1.46 MB / 0.8996 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.7256, allocations: 8.031 kB / 0.8996 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002237/0.7258, allocations: 143.6 kB / 0.8997 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.7273, allocations: 254.4 kB / 0.9 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.7287, allocations: 0.7569 MB / 0.9007 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.461e-05/0.7287, allocations: 70 kB / 0.9008 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.7289, allocations: 92 kB / 0.9009 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.7306, allocations: 1.173 MB / 0.902 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.7306, allocations: 0 / 0.902 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/0.7307, allocations: 44.81 kB / 0.902 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.111e-05/0.7308, allocations: 38 kB / 0.9021 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.7322, allocations: 0.8976 MB / 0.903 GB, free: 3.129 MB / 0.6075 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.005927/0.7381, allocations: 5.778 MB / 0.9086 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/0.739, allocations: 0.5339 MB / 0.9091 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004201/0.7394, allocations: 326.5 kB / 0.9094 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005622/0.74, allocations: 315.7 kB / 0.9097 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.74, allocations: 35 kB / 0.9098 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.185e-06/0.74, allocations: 4 kB / 0.9098 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001492/0.7415, allocations: 0.7948 MB / 0.9105 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.7416, allocations: 59.84 kB / 0.9106 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009487/0.7425, allocations: 0.7509 MB / 0.9113 GB, free: 9.984 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/0.7426, allocations: 37.7 kB / 0.9114 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.743, allocations: 0.5065 MB / 0.9119 GB, free: 9.426 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.7431, allocations: 177.5 kB / 0.912 GB, free: 9.25 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.7433, allocations: 154.4 kB / 0.9122 GB, free: 9.094 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.7435, allocations: 337.9 kB / 0.9125 GB, free: 8.758 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/0.7438, allocations: 245.8 kB / 0.9127 GB, free: 8.516 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.7445, allocations: 0.5546 MB / 0.9133 GB, free: 7.828 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009762/0.7454, allocations: 0.7956 MB / 0.9141 GB, free: 6.922 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.7455, allocations: 11.94 kB / 0.9141 GB, free: 6.91 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001377/0.7468, allocations: 0.8383 MB / 0.9149 GB, free: 6.066 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.7469, allocations: 8 kB / 0.9149 GB, free: 6.059 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.7469, allocations: 8 kB / 0.9149 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.7469, allocations: 12 kB / 0.9149 GB, free: 6.039 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.7475, allocations: 156.5 kB / 0.9151 GB, free: 5.887 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.881e-05/0.7475, allocations: 16 kB / 0.9151 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008152/0.7483, allocations: 87.2 kB / 0.9152 GB, free: 5.785 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.7484, allocations: 39.98 kB / 0.9152 GB, free: 5.746 MB / 0.6231 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.0004755/0.7489, allocations: 329.4 kB / 0.9155 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.7491, allocations: 82.97 kB / 0.9156 GB, free: 5.332 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000957/0.7501, allocations: 0.6257 MB / 0.9162 GB, free: 4.695 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.7501, allocations: 4 kB / 0.9162 GB, free: 4.691 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7501, allocations: 0 / 0.9162 GB, free: 4.691 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006947/0.7508, allocations: 0.5134 MB / 0.9167 GB, free: 4.168 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.7534, allocations: 1.674 MB / 0.9183 GB, free: 2.414 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.7534, allocations: 4 kB / 0.9184 GB, free: 2.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/0.7539, allocations: 107.8 kB / 0.9185 GB, free: 2.305 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.7539, allocations: 4 kB / 0.9185 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.754, allocations: 19.98 kB / 0.9185 GB, free: 2.281 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.754, allocations: 7.938 kB / 0.9185 GB, free: 2.273 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.754, allocations: 4 kB / 0.9185 GB, free: 2.27 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.7554, allocations: 1.019 MB / 0.9195 GB, free: 1.211 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.7557, allocations: 227.9 kB / 0.9197 GB, free: 0.9688 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.7558, allocations: 16 kB / 0.9197 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.7563, allocations: 19.98 kB / 0.9197 GB, free: 0.9336 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.344e-05/0.7564, allocations: 27.97 kB / 0.9198 GB, free: 0.9062 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.7564, allocations: 20.12 kB / 0.9198 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006214/0.7571, allocations: 0.5107 MB / 0.9203 GB, free: 388 kB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7571, allocations: 0 / 0.9203 GB, free: 388 kB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000861/0.7579, allocations: 303.3 kB / 0.9206 GB, free: 84 kB / 0.6231 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.001942/0.7599, allocations: 1.674 MB / 0.9222 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.7611, allocations: 0.7139 MB / 0.9229 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.7611, allocations: 0 / 0.9229 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.7615, allocations: 275.8 kB / 0.9232 GB, free: 13.4 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.7635, allocations: 439.2 kB / 0.9236 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.7738, allocations: 7.516 MB / 0.9309 GB, free: 5.051 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000833/0.7747, allocations: 1.114 MB / 0.932 GB, free: 3.906 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0009351/0.7756, allocations: 275 kB / 0.9323 GB, free: 3.633 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005338/0.7762, allocations: 363.3 kB / 0.9326 GB, free: 3.281 MB / 0.6387 GB Notification: Performance of SimCode: time 7.51e-07/0.7762, allocations: 0 / 0.9326 GB, free: 3.281 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05426/0.8305, allocations: 22.87 MB / 0.955 GB, free: 12.78 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/8.7, allocations: 4.562 kB / 0.955 GB, free: 12.77 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)