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.0009758/0.0009758, 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.001005/0.001005, allocations: 194.3 kB / 16.14 MB, free: 6.707 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.298/1.298, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001906/0.001906, allocations: 282.7 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8718/0.8718, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 90.42 kB / 0.5946 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1332, allocations: 86.98 MB / 0.6795 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.443/0.5763, allocations: 192.8 MB / 0.8679 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01779/0.5941, allocations: 14.4 MB / 0.8819 GB, free: 2.891 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.5955, allocations: 31.81 kB / 0.882 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.5971, allocations: 420.7 kB / 0.8824 GB, free: 2.547 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004417/0.6016, allocations: 1.779 MB / 0.8841 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002169/0.6037, allocations: 0.7717 MB / 0.8849 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003611/0.6074, allocations: 3.624 MB / 0.8884 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.6087, allocations: 0.9427 MB / 0.8893 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004162/0.6129, allocations: 1.441 MB / 0.8907 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.6146, allocations: 0.973 MB / 0.8917 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000248/0.6149, allocations: 59.97 kB / 0.8917 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.6174, allocations: 1.264 MB / 0.893 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005966/0.618, allocations: 463.4 kB / 0.8934 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.6191, allocations: 0.5862 MB / 0.894 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002614/0.6217, allocations: 1.922 MB / 0.8959 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6217, allocations: 0 / 0.8959 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.42e-07/0.6217, allocations: 0 / 0.8959 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.691e-05/0.6218, allocations: 2.906 kB / 0.8959 GB, free: 10.17 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.002677/0.6244, allocations: 1.45 MB / 0.8973 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.6245, allocations: 16.02 kB / 0.8973 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.6247, allocations: 139.6 kB / 0.8974 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.6261, allocations: 258.4 kB / 0.8977 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.6273, allocations: 0.7492 MB / 0.8984 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.6274, allocations: 70 kB / 0.8985 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.6275, allocations: 92 kB / 0.8986 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.6291, allocations: 1.169 MB / 0.8997 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.381e-05/0.6291, allocations: 7.938 kB / 0.8997 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.729e-05/0.6292, allocations: 39.94 kB / 0.8997 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.199e-05/0.6292, allocations: 41.98 kB / 0.8998 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.6305, allocations: 0.9015 MB / 0.9007 GB, free: 5.309 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.005175/0.6357, allocations: 5.731 MB / 0.9063 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007868/0.6365, allocations: 0.5328 MB / 0.9068 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004199/0.637, allocations: 314.6 kB / 0.9071 GB, free: 14.27 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005592/0.6375, allocations: 315.7 kB / 0.9074 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.6376, allocations: 39 kB / 0.9074 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.494e-06/0.6376, allocations: 0 / 0.9074 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001393/0.639, allocations: 0.8026 MB / 0.9082 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.639, allocations: 55.84 kB / 0.9083 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000815/0.6398, allocations: 0.751 MB / 0.909 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.6399, allocations: 37.7 kB / 0.909 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.6402, allocations: 0.5142 MB / 0.9095 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.6404, allocations: 173.5 kB / 0.9097 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.6406, allocations: 142.5 kB / 0.9098 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.6407, allocations: 337.9 kB / 0.9101 GB, free: 11 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.6411, allocations: 249.9 kB / 0.9104 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/0.6416, allocations: 0.5546 MB / 0.9109 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009216/0.6426, allocations: 0.8034 MB / 0.9117 GB, free: 9.16 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.6426, allocations: 0 / 0.9117 GB, free: 9.16 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001157/0.6437, allocations: 0.8466 MB / 0.9125 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.6438, allocations: 11.94 kB / 0.9125 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.6438, allocations: 8 kB / 0.9126 GB, free: 8.285 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.6438, allocations: 12 kB / 0.9126 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000508/0.6443, allocations: 151.8 kB / 0.9127 GB, free: 8.125 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.935e-05/0.6443, allocations: 19.92 kB / 0.9127 GB, free: 8.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000832/0.6452, allocations: 151.3 kB / 0.9129 GB, free: 7.957 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/0.6452, allocations: 39.94 kB / 0.9129 GB, free: 7.918 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.0003894/0.6456, allocations: 329.5 kB / 0.9132 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.6458, allocations: 86.88 kB / 0.9133 GB, free: 7.5 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009119/0.6467, allocations: 0.6257 MB / 0.9139 GB, free: 6.859 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.6467, allocations: 4 kB / 0.9139 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.6467, allocations: 0 / 0.9139 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006665/0.6474, allocations: 0.5173 MB / 0.9144 GB, free: 6.328 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.6496, allocations: 1.663 MB / 0.9161 GB, free: 4.586 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.6497, allocations: 7.938 kB / 0.9161 GB, free: 4.578 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005001/0.6502, allocations: 115.8 kB / 0.9162 GB, free: 4.465 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.6502, allocations: 0 / 0.9162 GB, free: 4.465 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.6502, allocations: 16 kB / 0.9162 GB, free: 4.449 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.6502, allocations: 4 kB / 0.9162 GB, free: 4.445 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.6502, allocations: 8.219 kB / 0.9162 GB, free: 4.438 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.6515, allocations: 1.015 MB / 0.9172 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.6518, allocations: 223.9 kB / 0.9174 GB, free: 3.145 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.6519, allocations: 15.98 kB / 0.9174 GB, free: 3.129 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.6524, allocations: 64.83 kB / 0.9175 GB, free: 3.066 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.6525, allocations: 36.03 kB / 0.9175 GB, free: 3.031 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.6525, allocations: 16 kB / 0.9175 GB, free: 3.016 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005776/0.6531, allocations: 0.5146 MB / 0.918 GB, free: 2.504 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6531, allocations: 0 / 0.918 GB, free: 2.504 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007907/0.6539, allocations: 299.3 kB / 0.9183 GB, free: 2.211 MB / 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.001771/0.6557, allocations: 1.671 MB / 0.92 GB, free: 0.5117 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008652/0.6566, allocations: 0.6068 MB / 0.9205 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6566, allocations: 0 / 0.9205 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003459/0.6569, allocations: 273.4 kB / 0.9208 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.6588, allocations: 439.2 kB / 0.9212 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009328/0.6681, allocations: 7.861 MB / 0.9289 GB, free: 6.949 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000657/0.6688, allocations: 1.118 MB / 0.93 GB, free: 5.801 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008308/0.6697, allocations: 267.1 kB / 0.9302 GB, free: 5.535 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004395/0.6701, allocations: 363.3 kB / 0.9306 GB, free: 5.18 MB / 0.6387 GB Notification: Performance of SimCode: time 1.783e-06/0.6701, allocations: 0 / 0.9306 GB, free: 5.18 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5573/1.227, allocations: 22.31 MB / 0.9524 GB, free: 15.25 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/1.228, allocations: 259.9 kB / 0.9526 GB, free: 14.99 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/3.575, allocations: 0 / 0.9526 GB, free: 14.99 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)