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: translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001833/0.001834, allocations: 192.8 kB / 16.25 MB, free: 6.625 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.395/1.395, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 286.5 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9667/0.9667, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 93.69 kB / 0.5947 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2107, allocations: 86.98 MB / 0.6796 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.6562/0.8669, allocations: 192.6 MB / 0.8677 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01876/0.8857, allocations: 14.22 MB / 0.8815 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.8874, allocations: 31.47 kB / 0.8816 GB, free: 3.453 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.8893, allocations: 441 kB / 0.882 GB, free: 3.102 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005696/0.8951, allocations: 1.763 MB / 0.8837 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00277/0.8979, allocations: 0.7899 MB / 0.8845 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003385/0.9013, allocations: 2.573 MB / 0.887 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.903, allocations: 1.074 MB / 0.8881 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005119/0.9081, allocations: 1.583 MB / 0.8896 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002097/0.9102, allocations: 0.989 MB / 0.8906 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.9106, allocations: 105.3 kB / 0.8907 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002822/0.9134, allocations: 1.149 MB / 0.8918 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000789/0.9143, allocations: 0.5008 MB / 0.8923 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001407/0.9157, allocations: 0.6402 MB / 0.8929 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004797/0.9205, allocations: 1.965 MB / 0.8948 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.9205, allocations: 0 / 0.8948 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9205, allocations: 7.938 kB / 0.8948 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.366e-05/0.9206, allocations: 0 / 0.8948 GB, free: 11.02 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.003992/0.9246, allocations: 1.457 MB / 0.8963 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.9247, allocations: 7.5 kB / 0.8963 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.9264, allocations: 246.3 kB / 0.8965 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.9282, allocations: 0.76 MB / 0.8972 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.407e-05/0.9283, allocations: 70 kB / 0.8973 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.9285, allocations: 95.98 kB / 0.8974 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/0.9305, allocations: 1.173 MB / 0.8985 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.9306, allocations: 8 kB / 0.8985 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.9307, allocations: 37.5 kB / 0.8986 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/0.9308, allocations: 37.94 kB / 0.8986 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.9324, allocations: 0.9015 MB / 0.8995 GB, free: 6.742 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.006808/0.9392, allocations: 5.727 MB / 0.9051 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008701/0.9401, allocations: 0.5322 MB / 0.9056 GB, free: 16 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004499/0.9406, allocations: 314.6 kB / 0.9059 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000601/0.9412, allocations: 315.7 kB / 0.9062 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.9413, allocations: 39 kB / 0.9063 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.9413, allocations: 3.938 kB / 0.9063 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001658/0.9429, allocations: 0.7987 MB / 0.907 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.943, allocations: 59.84 kB / 0.9071 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.9441, allocations: 0.7471 MB / 0.9078 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 6.894e-05/0.9441, allocations: 41.7 kB / 0.9079 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.9446, allocations: 0.5103 MB / 0.9084 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.9448, allocations: 173.5 kB / 0.9085 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.945, allocations: 142.5 kB / 0.9087 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.9451, allocations: 341.8 kB / 0.909 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004001/0.9456, allocations: 245.8 kB / 0.9092 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000651/0.9462, allocations: 0.5632 MB / 0.9098 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.9472, allocations: 0.7957 MB / 0.9105 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.9473, allocations: 0 / 0.9105 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001329/0.9486, allocations: 0.8467 MB / 0.9114 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.9486, allocations: 8 kB / 0.9114 GB, free: 9.738 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.9486, allocations: 12.12 kB / 0.9114 GB, free: 9.727 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.9487, allocations: 12 kB / 0.9114 GB, free: 9.715 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/0.9492, allocations: 159.7 kB / 0.9116 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.9492, allocations: 19.94 kB / 0.9116 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009875/0.9502, allocations: 147.1 kB / 0.9117 GB, free: 9.395 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.689e-05/0.9503, allocations: 35.98 kB / 0.9118 GB, free: 9.359 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.0004562/0.9508, allocations: 330.7 kB / 0.9121 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.9509, allocations: 82.97 kB / 0.9121 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009921/0.9519, allocations: 0.6295 MB / 0.9128 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.952, allocations: 7.938 kB / 0.9128 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.952, allocations: 4 kB / 0.9128 GB, free: 8.289 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007063/0.9527, allocations: 0.5134 MB / 0.9133 GB, free: 7.766 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.9552, allocations: 1.678 MB / 0.9149 GB, free: 6.008 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.9553, allocations: 3.984 kB / 0.9149 GB, free: 6.004 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000536/0.9558, allocations: 107.8 kB / 0.915 GB, free: 5.898 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.9558, allocations: 4 kB / 0.915 GB, free: 5.895 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.163e-05/0.9559, allocations: 15.98 kB / 0.915 GB, free: 5.879 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.9559, allocations: 4 kB / 0.915 GB, free: 5.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.9559, allocations: 7.938 kB / 0.915 GB, free: 5.867 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.9572, allocations: 1.011 MB / 0.916 GB, free: 4.816 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/0.9577, allocations: 227.9 kB / 0.9163 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.9578, allocations: 15.94 kB / 0.9163 GB, free: 4.559 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006355/0.9585, allocations: 71.06 kB / 0.9163 GB, free: 4.492 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.9585, allocations: 31.91 kB / 0.9164 GB, free: 4.461 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.811e-05/0.9586, allocations: 19.98 kB / 0.9164 GB, free: 4.441 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006445/0.9592, allocations: 0.5107 MB / 0.9169 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9592, allocations: 0 / 0.9169 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009593/0.9602, allocations: 299.3 kB / 0.9172 GB, free: 3.641 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.0005381/0.9607, allocations: 209.6 kB / 0.9174 GB, free: 3.438 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001211/0.962, allocations: 0.7174 MB / 0.9181 GB, free: 2.719 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.962, allocations: 4 kB / 0.9181 GB, free: 2.715 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.9624, allocations: 275.6 kB / 0.9183 GB, free: 2.445 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/0.9643, allocations: 440.1 kB / 0.9188 GB, free: 2.027 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.9677, allocations: 2.314 MB / 0.921 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007858/0.9685, allocations: 1.114 MB / 0.9221 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000912/0.9694, allocations: 271.1 kB / 0.9224 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.9696, allocations: 71.42 kB / 0.9224 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of SimCode: time 9.02e-07/0.9696, allocations: 0 / 0.9224 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of Templates: time 0.02857/0.9982, allocations: 15.35 MB / 0.9374 GB, free: 15.11 MB / 0.6544 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)