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.001251/0.001251, 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.001274/0.001274, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002434/0.002434, allocations: 291 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 178.5 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00259/0.00259, allocations: 101.5 kB / 0.6065 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1522, allocations: 89.14 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4789/0.6312, allocations: 195.1 MB / 0.8841 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01825/0.6495, allocations: 14.31 MB / 0.8981 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.6507, allocations: 39.75 kB / 0.8981 GB, free: 10 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.6522, allocations: 0.489 MB / 0.8986 GB, free: 9.512 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004482/0.6567, allocations: 1.89 MB / 0.9004 GB, free: 7.609 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002266/0.659, allocations: 0.8638 MB / 0.9013 GB, free: 6.75 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003197/0.6622, allocations: 2.565 MB / 0.9038 GB, free: 4.184 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001605/0.6638, allocations: 1.115 MB / 0.9049 GB, free: 3.051 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004076/0.6679, allocations: 1.592 MB / 0.9064 GB, free: 1.477 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001892/0.6698, allocations: 0.9221 MB / 0.9073 GB, free: 0.5547 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002755/0.6701, allocations: 108 kB / 0.9074 GB, free: 460 kB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002753/0.6729, allocations: 1.091 MB / 0.9085 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006078/0.6735, allocations: 0.5026 MB / 0.909 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0008679/0.6744, allocations: 0.6339 MB / 0.9096 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.00348/0.6778, allocations: 1.885 MB / 0.9115 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.6779, allocations: 4 kB / 0.9115 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.214e-06/0.6779, allocations: 4 kB / 0.9115 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.256e-05/0.678, allocations: 0 / 0.9115 GB, free: 12.32 MB / 0.6387 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.003185/0.6812, allocations: 1.45 MB / 0.9129 GB, free: 10.81 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.6812, allocations: 12.03 kB / 0.9129 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001924/0.6814, allocations: 139.6 kB / 0.913 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.6829, allocations: 259.8 kB / 0.9133 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.6843, allocations: 0.757 MB / 0.914 GB, free: 9.605 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.6844, allocations: 66 kB / 0.9141 GB, free: 9.539 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.6845, allocations: 95.91 kB / 0.9142 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.6863, allocations: 1.173 MB / 0.9153 GB, free: 8.203 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.6863, allocations: 3.938 kB / 0.9153 GB, free: 8.199 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.579e-05/0.6864, allocations: 47.94 kB / 0.9154 GB, free: 8.152 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.775e-05/0.6865, allocations: 34 kB / 0.9154 GB, free: 8.117 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.688, allocations: 0.8976 MB / 0.9163 GB, free: 7.223 MB / 0.6387 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.006295/0.6943, allocations: 5.774 MB / 0.9219 GB, free: 0.9922 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.6952, allocations: 0.5335 MB / 0.9224 GB, free: 460 kB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004728/0.6957, allocations: 326.5 kB / 0.9227 GB, free: 132 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006336/0.6963, allocations: 315.7 kB / 0.923 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.6964, allocations: 35 kB / 0.9231 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=49): time 2.524e-06/0.6964, allocations: 0 / 0.9231 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49): time 0.001614/0.698, allocations: 0.7948 MB / 0.9239 GB, free: 14.92 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.698, allocations: 63.84 kB / 0.9239 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.6991, allocations: 0.7547 MB / 0.9247 GB, free: 14.08 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.6991, allocations: 37.7 kB / 0.9247 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.6996, allocations: 0.5105 MB / 0.9252 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.6998, allocations: 173.5 kB / 0.9254 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.7, allocations: 146.5 kB / 0.9255 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.7002, allocations: 337.9 kB / 0.9258 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.7006, allocations: 249.8 kB / 0.9261 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006784/0.7012, allocations: 0.5546 MB / 0.9266 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.7023, allocations: 0.7956 MB / 0.9274 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7023, allocations: 4 kB / 0.9274 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00136/0.7037, allocations: 0.8435 MB / 0.9282 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.7037, allocations: 12 kB / 0.9282 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.7038, allocations: 8 kB / 0.9282 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.7038, allocations: 12 kB / 0.9282 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005597/0.7043, allocations: 159.7 kB / 0.9284 GB, free: 9.984 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.7044, allocations: 15.94 kB / 0.9284 GB, free: 9.969 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006872/0.7051, allocations: 87.05 kB / 0.9285 GB, free: 9.883 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/0.7051, allocations: 52.11 kB / 0.9285 GB, free: 9.832 MB / 0.6544 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.0004587/0.7056, allocations: 327.3 kB / 0.9288 GB, free: 9.504 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.7057, allocations: 82.97 kB / 0.9289 GB, free: 9.422 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.7068, allocations: 0.618 MB / 0.9295 GB, free: 8.797 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.7068, allocations: 4 kB / 0.9295 GB, free: 8.793 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.7068, allocations: 0 / 0.9295 GB, free: 8.793 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007668/0.7076, allocations: 0.525 MB / 0.93 GB, free: 8.262 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.7101, allocations: 1.671 MB / 0.9317 GB, free: 6.512 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.7101, allocations: 3.938 kB / 0.9317 GB, free: 6.508 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.7106, allocations: 112.1 kB / 0.9318 GB, free: 6.398 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.7106, allocations: 4 kB / 0.9318 GB, free: 6.395 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/0.7107, allocations: 15.98 kB / 0.9318 GB, free: 6.379 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.214e-06/0.7107, allocations: 7.938 kB / 0.9318 GB, free: 6.371 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.7107, allocations: 4 kB / 0.9318 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.7121, allocations: 1.019 MB / 0.9328 GB, free: 5.309 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.7124, allocations: 227.9 kB / 0.933 GB, free: 5.066 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.7125, allocations: 11.94 kB / 0.933 GB, free: 5.055 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.713, allocations: 20.73 kB / 0.9331 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.713, allocations: 31.97 kB / 0.9331 GB, free: 5.004 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/0.7131, allocations: 19.98 kB / 0.9331 GB, free: 4.984 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0006435/0.7137, allocations: 0.5107 MB / 0.9336 GB, free: 4.477 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7137, allocations: 0 / 0.9336 GB, free: 4.477 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0008305/0.7146, allocations: 303.2 kB / 0.9339 GB, free: 4.18 MB / 0.6544 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.00206/0.7166, allocations: 1.67 MB / 0.9355 GB, free: 2.473 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.7178, allocations: 0.7055 MB / 0.9362 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7178, allocations: 0 / 0.9362 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.7182, allocations: 276.4 kB / 0.9365 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.7201, allocations: 442.7 kB / 0.9369 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.7301, allocations: 7.516 MB / 0.9442 GB, free: 9.145 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008337/0.7309, allocations: 1.118 MB / 0.9453 GB, free: 8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0008688/0.7318, allocations: 271 kB / 0.9456 GB, free: 7.73 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004942/0.7323, allocations: 359.3 kB / 0.9459 GB, free: 7.379 MB / 0.67 GB Notification: Performance of SimCode: time 5.51e-07/0.7323, allocations: 0 / 0.9459 GB, free: 7.379 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05423/0.7866, allocations: 22.88 MB / 0.9683 GB, free: 0.8711 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.959/8.746, allocations: 6.328 kB / 0.9683 GB, free: 0.8672 MB / 0.6856 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)