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.0009986/0.0009986, 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.001074/0.001074, allocations: 191.5 kB / 16.13 MB, free: 6.668 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.33/1.33, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001957/0.001957, allocations: 286.7 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9311/0.9311, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.001681, allocations: 96.39 kB / 0.5945 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2162, allocations: 86.97 MB / 0.6794 GB, free: 1.215 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5977/0.814, allocations: 192.9 MB / 0.8678 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01654/0.8306, allocations: 14.4 MB / 0.8818 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.8323, allocations: 31.84 kB / 0.8819 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.8339, allocations: 418.7 kB / 0.8823 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005245/0.8391, allocations: 1.779 MB / 0.884 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002211/0.8414, allocations: 0.7715 MB / 0.8848 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003797/0.8452, allocations: 3.617 MB / 0.8883 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.8463, allocations: 0.9438 MB / 0.8892 GB, free: 14.22 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004445/0.8508, allocations: 1.441 MB / 0.8906 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.8526, allocations: 0.9693 MB / 0.8916 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000146/0.8528, allocations: 60.06 kB / 0.8916 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.8554, allocations: 1.253 MB / 0.8928 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004814/0.8559, allocations: 464 kB / 0.8933 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007068/0.8566, allocations: 0.5934 MB / 0.8939 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.859, allocations: 1.916 MB / 0.8957 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.859, allocations: 0 / 0.8957 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8591, allocations: 0 / 0.8957 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.937e-05/0.8591, allocations: 0 / 0.8957 GB, free: 10.28 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.002298/0.8614, allocations: 1.459 MB / 0.8972 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.8614, allocations: 12.03 kB / 0.8972 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.8628, allocations: 246.4 kB / 0.8974 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.864, allocations: 0.7608 MB / 0.8981 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.8641, allocations: 70 kB / 0.8982 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.8642, allocations: 88 kB / 0.8983 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.866, allocations: 1.184 MB / 0.8995 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.866, allocations: 0 / 0.8995 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.264e-05/0.8661, allocations: 36 kB / 0.8995 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.303e-05/0.8662, allocations: 37.94 kB / 0.8995 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.8675, allocations: 0.9054 MB / 0.9004 GB, free: 5.547 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.00561/0.8732, allocations: 5.731 MB / 0.906 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008636/0.874, allocations: 0.5322 MB / 0.9065 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/0.8745, allocations: 318.6 kB / 0.9068 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/0.8751, allocations: 315.7 kB / 0.9071 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.8751, allocations: 38.94 kB / 0.9072 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.8751, allocations: 0 / 0.9072 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001499/0.8766, allocations: 0.7987 MB / 0.9079 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.8767, allocations: 63.84 kB / 0.908 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008559/0.8775, allocations: 0.7393 MB / 0.9087 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.8776, allocations: 37.7 kB / 0.9088 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003732/0.878, allocations: 0.5181 MB / 0.9093 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.8781, allocations: 177.5 kB / 0.9094 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.8783, allocations: 138.5 kB / 0.9096 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8785, allocations: 341.9 kB / 0.9099 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.8788, allocations: 245.8 kB / 0.9101 GB, free: 11 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006073/0.8794, allocations: 0.563 MB / 0.9107 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009628/0.8804, allocations: 0.7957 MB / 0.9115 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.8804, allocations: 4 kB / 0.9115 GB, free: 9.395 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001239/0.8817, allocations: 0.8428 MB / 0.9123 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.8817, allocations: 10.03 kB / 0.9123 GB, free: 8.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.8817, allocations: 15.94 kB / 0.9123 GB, free: 8.52 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.8818, allocations: 15.94 kB / 0.9123 GB, free: 8.504 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.8823, allocations: 151.8 kB / 0.9125 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.8823, allocations: 15.92 kB / 0.9125 GB, free: 8.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008736/0.8832, allocations: 147.2 kB / 0.9126 GB, free: 8.195 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.8833, allocations: 32 kB / 0.9127 GB, free: 8.164 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.0004322/0.8837, allocations: 334.7 kB / 0.913 GB, free: 7.828 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.8839, allocations: 86.97 kB / 0.9131 GB, free: 7.742 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009732/0.8848, allocations: 0.6217 MB / 0.9137 GB, free: 7.105 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.8849, allocations: 7.938 kB / 0.9137 GB, free: 7.098 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.8849, allocations: 0 / 0.9137 GB, free: 7.098 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006865/0.8856, allocations: 0.5212 MB / 0.9142 GB, free: 6.566 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.888, allocations: 1.667 MB / 0.9158 GB, free: 4.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.888, allocations: 4 kB / 0.9158 GB, free: 4.816 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.8885, allocations: 115.8 kB / 0.9159 GB, free: 4.703 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.8885, allocations: 4 kB / 0.9159 GB, free: 4.699 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.8886, allocations: 12 kB / 0.9159 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.8886, allocations: 4 kB / 0.9159 GB, free: 4.684 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.8886, allocations: 7.938 kB / 0.916 GB, free: 4.676 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.8899, allocations: 1.015 MB / 0.9169 GB, free: 3.621 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.8903, allocations: 231.9 kB / 0.9172 GB, free: 3.375 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.8904, allocations: 12 kB / 0.9172 GB, free: 3.363 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/0.8909, allocations: 64.95 kB / 0.9172 GB, free: 3.301 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.52e-05/0.891, allocations: 35.94 kB / 0.9173 GB, free: 3.266 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.8911, allocations: 16 kB / 0.9173 GB, free: 3.25 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006248/0.8917, allocations: 0.5146 MB / 0.9178 GB, free: 2.738 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8917, allocations: 0 / 0.9178 GB, free: 2.738 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008973/0.8926, allocations: 299.3 kB / 0.9181 GB, free: 2.445 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.000502/0.8931, allocations: 211.3 kB / 0.9183 GB, free: 2.246 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009271/0.8941, allocations: 0.6072 MB / 0.9189 GB, free: 1.637 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.8941, allocations: 0 / 0.9189 GB, free: 1.637 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.8944, allocations: 275.6 kB / 0.9191 GB, free: 1.367 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/0.8964, allocations: 445.5 kB / 0.9196 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.8995, allocations: 2.312 MB / 0.9218 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006939/0.9002, allocations: 1.118 MB / 0.9229 GB, free: 13.44 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008399/0.901, allocations: 271.1 kB / 0.9232 GB, free: 13.17 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.9012, allocations: 75.42 kB / 0.9232 GB, free: 13.1 MB / 0.6387 GB Notification: Performance of SimCode: time 8.91e-07/0.9012, allocations: 0 / 0.9232 GB, free: 13.1 MB / 0.6387 GB Notification: Performance of Templates: time 0.0247/0.9259, allocations: 14.93 MB / 0.9378 GB, free: 14.42 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)