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.001798/0.001798, 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.002263/0.002263, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.545/1.545, 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.002625/0.002625, allocations: 290.8 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.177/1.177, allocations: 178.6 MB / 0.507 GB, free: 4.672 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.002729, allocations: 103.9 kB / 0.6059 GB, free: 24.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.2013, allocations: 89.15 MB / 0.693 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5609/0.7623, allocations: 192.6 MB / 0.881 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02106/0.7834, allocations: 14.21 MB / 0.8949 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.7855, allocations: 35.75 kB / 0.8949 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.7875, allocations: 433.8 kB / 0.8954 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006055/0.7936, allocations: 1.77 MB / 0.8971 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002797/0.7964, allocations: 0.786 MB / 0.8979 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004086/0.8005, allocations: 2.565 MB / 0.9004 GB, free: 7.555 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.8022, allocations: 1.079 MB / 0.9014 GB, free: 6.461 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005241/0.8074, allocations: 1.588 MB / 0.903 GB, free: 4.895 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.8094, allocations: 0.9818 MB / 0.9039 GB, free: 3.914 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001973/0.8096, allocations: 104 kB / 0.904 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.8121, allocations: 1.153 MB / 0.9052 GB, free: 2.656 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000655/0.8128, allocations: 0.4988 MB / 0.9056 GB, free: 2.156 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0008441/0.8136, allocations: 0.6338 MB / 0.9063 GB, free: 1.52 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002837/0.8165, allocations: 1.963 MB / 0.9082 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.8165, allocations: 0 / 0.9082 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8165, allocations: 0 / 0.9082 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.907e-05/0.8165, allocations: 0 / 0.9082 GB, free: 15.55 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.002385/0.8189, allocations: 1.461 MB / 0.9096 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.819, allocations: 8.031 kB / 0.9096 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/0.8204, allocations: 250.3 kB / 0.9098 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.8216, allocations: 0.7492 MB / 0.9106 GB, free: 12.99 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.8217, allocations: 74 kB / 0.9107 GB, free: 12.92 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.8219, allocations: 92 kB / 0.9107 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.8238, allocations: 1.177 MB / 0.9119 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.19e-05/0.8238, allocations: 7.844 kB / 0.9119 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.8239, allocations: 40 kB / 0.9119 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.033e-05/0.824, allocations: 41.94 kB / 0.912 GB, free: 11.49 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.8255, allocations: 0.8976 MB / 0.9129 GB, free: 10.6 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.006321/0.8318, allocations: 5.725 MB / 0.9184 GB, free: 4.418 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009324/0.8327, allocations: 0.5399 MB / 0.919 GB, free: 3.867 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.8332, allocations: 326.5 kB / 0.9193 GB, free: 3.547 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006238/0.8339, allocations: 307.8 kB / 0.9196 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.8339, allocations: 43 kB / 0.9196 GB, free: 3.141 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.8339, allocations: 0 / 0.9196 GB, free: 3.141 MB / 0.6387 GB Notification: Performance of matching and sorting (n=49): time 0.001668/0.8356, allocations: 0.8026 MB / 0.9204 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.8357, allocations: 59.78 kB / 0.9205 GB, free: 2.266 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.8367, allocations: 0.7509 MB / 0.9212 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.788e-05/0.8368, allocations: 33.7 kB / 0.9212 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004357/0.8372, allocations: 0.5065 MB / 0.9217 GB, free: 0.9492 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.8374, allocations: 177.5 kB / 0.9219 GB, free: 0.7734 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.8377, allocations: 142.5 kB / 0.922 GB, free: 0.6289 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.8378, allocations: 337.9 kB / 0.9223 GB, free: 300 kB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.8382, allocations: 253.8 kB / 0.9226 GB, free: 44 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007099/0.839, allocations: 0.5546 MB / 0.9231 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.8401, allocations: 0.7995 MB / 0.9239 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.8401, allocations: 4 kB / 0.9239 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001404/0.8415, allocations: 0.8497 MB / 0.9247 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.8416, allocations: 8.969 kB / 0.9247 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.8416, allocations: 8.875 kB / 0.9248 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.8416, allocations: 12 kB / 0.9248 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005797/0.8422, allocations: 159.8 kB / 0.9249 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.8422, allocations: 15.94 kB / 0.9249 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009604/0.8432, allocations: 151 kB / 0.9251 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.546e-05/0.8433, allocations: 32 kB / 0.9251 GB, free: 13.21 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.0005948/0.8439, allocations: 337.4 kB / 0.9254 GB, free: 12.87 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.844, allocations: 82.97 kB / 0.9255 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.8452, allocations: 0.618 MB / 0.9261 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.8452, allocations: 4 kB / 0.9261 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.8452, allocations: 4 kB / 0.9261 GB, free: 12.15 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000765/0.846, allocations: 0.5211 MB / 0.9266 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.8488, allocations: 1.659 MB / 0.9283 GB, free: 9.883 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.8488, allocations: 8.219 kB / 0.9283 GB, free: 9.875 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.8494, allocations: 115.8 kB / 0.9284 GB, free: 9.762 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.8494, allocations: 4 kB / 0.9284 GB, free: 9.758 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/0.8494, allocations: 16 kB / 0.9284 GB, free: 9.742 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.8494, allocations: 4 kB / 0.9284 GB, free: 9.738 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.8494, allocations: 0 / 0.9284 GB, free: 9.738 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.8509, allocations: 1.015 MB / 0.9294 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004262/0.8514, allocations: 231.9 kB / 0.9296 GB, free: 8.438 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.8515, allocations: 12 kB / 0.9296 GB, free: 8.426 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.8521, allocations: 74.91 kB / 0.9297 GB, free: 8.355 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.8522, allocations: 31.95 kB / 0.9297 GB, free: 8.324 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.8522, allocations: 20 kB / 0.9297 GB, free: 8.305 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007162/0.853, allocations: 0.5068 MB / 0.9302 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.91e-07/0.853, allocations: 0 / 0.9302 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009722/0.854, allocations: 299.4 kB / 0.9305 GB, free: 7.508 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.0005635/0.8545, allocations: 210.6 kB / 0.9307 GB, free: 7.309 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00131/0.8558, allocations: 0.7173 MB / 0.9314 GB, free: 6.59 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.8559, allocations: 4.188 kB / 0.9314 GB, free: 6.586 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004053/0.8563, allocations: 271.8 kB / 0.9317 GB, free: 6.32 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/0.8582, allocations: 443.6 kB / 0.9321 GB, free: 5.898 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/0.8621, allocations: 2.321 MB / 0.9344 GB, free: 3.523 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008938/0.8631, allocations: 1.122 MB / 0.9355 GB, free: 2.375 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001089/0.8642, allocations: 271.1 kB / 0.9357 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.8644, allocations: 75.42 kB / 0.9358 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of SimCode: time 9.82e-07/0.8644, allocations: 0 / 0.9358 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of Templates: time 0.03205/0.8964, allocations: 15.36 MB / 0.9508 GB, free: 2.938 MB / 0.67 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)