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.0008941/0.0008942, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007793/0.007793, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.396/1.396, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001734/0.001733, allocations: 266.9 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005449/0.0005452, allocations: 11.44 kB / 0.5987 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.212, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5869/0.7989, allocations: 190.3 MB / 0.871 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02097/0.8199, allocations: 14.21 MB / 0.8848 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.8216, allocations: 32.91 kB / 0.8849 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.8233, allocations: 419.6 kB / 0.8853 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005608/0.8289, allocations: 1.769 MB / 0.887 GB, free: 224 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002495/0.8314, allocations: 0.7747 MB / 0.8878 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004371/0.8358, allocations: 3.614 MB / 0.8913 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001738/0.8376, allocations: 0.9156 MB / 0.8922 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005522/0.8431, allocations: 1.408 MB / 0.8936 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002224/0.8454, allocations: 0.9141 MB / 0.8944 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.8456, allocations: 48 kB / 0.8945 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.8485, allocations: 1.243 MB / 0.8957 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005952/0.8492, allocations: 442.7 kB / 0.8961 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.8502, allocations: 0.5809 MB / 0.8967 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003064/0.8533, allocations: 1.888 MB / 0.8985 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.8533, allocations: 0 / 0.8985 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.525e-06/0.8533, allocations: 0 / 0.8985 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.252e-05/0.8533, allocations: 3.938 kB / 0.8985 GB, free: 5.336 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.002255/0.8556, allocations: 1.235 MB / 0.8998 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.8556, allocations: 12.03 kB / 0.8998 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.8571, allocations: 250.3 kB / 0.9 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.8584, allocations: 0.7492 MB / 0.9007 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.991e-05/0.8585, allocations: 70 kB / 0.9008 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.8586, allocations: 99.91 kB / 0.9009 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.8606, allocations: 1.176 MB / 0.902 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.8606, allocations: 0 / 0.902 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.222e-05/0.8607, allocations: 40 kB / 0.9021 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.59e-05/0.8607, allocations: 33.94 kB / 0.9021 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.8622, allocations: 0.9132 MB / 0.903 GB, free: 0.6016 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.006588/0.8688, allocations: 5.735 MB / 0.9086 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009045/0.8698, allocations: 0.5322 MB / 0.9091 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004984/0.8703, allocations: 318.6 kB / 0.9094 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006663/0.8709, allocations: 323.7 kB / 0.9097 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.871, allocations: 39 kB / 0.9098 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.796e-06/0.871, allocations: 0 / 0.9098 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001754/0.8728, allocations: 0.8026 MB / 0.9106 GB, free: 8.328 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.8728, allocations: 55.84 kB / 0.9106 GB, free: 8.262 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.8739, allocations: 0.7509 MB / 0.9113 GB, free: 7.5 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.874, allocations: 37.7 kB / 0.9114 GB, free: 7.457 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/0.8744, allocations: 0.5105 MB / 0.9119 GB, free: 6.938 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.8746, allocations: 177.5 kB / 0.9121 GB, free: 6.762 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.928e-05/0.8747, allocations: 57.69 kB / 0.9121 GB, free: 6.699 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.8749, allocations: 337.9 kB / 0.9124 GB, free: 6.363 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/0.8753, allocations: 257.8 kB / 0.9127 GB, free: 6.109 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000654/0.876, allocations: 0.5556 MB / 0.9132 GB, free: 5.422 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.877, allocations: 0.8034 MB / 0.914 GB, free: 4.508 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.877, allocations: 0 / 0.914 GB, free: 4.508 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001391/0.8784, allocations: 0.8467 MB / 0.9148 GB, free: 3.652 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.8785, allocations: 8.156 kB / 0.9148 GB, free: 3.645 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.8785, allocations: 12 kB / 0.9148 GB, free: 3.633 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.736e-05/0.8785, allocations: 12 kB / 0.9149 GB, free: 3.621 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/0.8791, allocations: 155.7 kB / 0.915 GB, free: 3.469 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-05/0.8791, allocations: 15.94 kB / 0.915 GB, free: 3.453 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009359/0.88, allocations: 147 kB / 0.9152 GB, free: 3.309 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.8801, allocations: 32 kB / 0.9152 GB, free: 3.277 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.0005336/0.8806, allocations: 338.7 kB / 0.9155 GB, free: 2.938 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.8808, allocations: 82.97 kB / 0.9156 GB, free: 2.855 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.8818, allocations: 0.6179 MB / 0.9162 GB, free: 2.227 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.8818, allocations: 12 kB / 0.9162 GB, free: 2.215 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.8818, allocations: 7.922 kB / 0.9162 GB, free: 2.207 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007356/0.8826, allocations: 0.5134 MB / 0.9167 GB, free: 1.684 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.8853, allocations: 1.671 MB / 0.9184 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.8853, allocations: 4 kB / 0.9184 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005082/0.8858, allocations: 107.8 kB / 0.9185 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.8858, allocations: 4 kB / 0.9185 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.8859, allocations: 19.98 kB / 0.9185 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.8859, allocations: 4 kB / 0.9185 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.8859, allocations: 4 kB / 0.9185 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.8874, allocations: 1.015 MB / 0.9195 GB, free: 14.74 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.8878, allocations: 227.8 kB / 0.9197 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.411e-05/0.8879, allocations: 16 kB / 0.9197 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.8884, allocations: 63.83 kB / 0.9198 GB, free: 14.42 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.8885, allocations: 35.89 kB / 0.9198 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.8885, allocations: 23.98 kB / 0.9198 GB, free: 14.36 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006609/0.8892, allocations: 0.5146 MB / 0.9203 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8892, allocations: 0 / 0.9203 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009701/0.8902, allocations: 299.3 kB / 0.9206 GB, free: 13.55 MB / 0.6387 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.00057/0.8908, allocations: 213.4 kB / 0.9208 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001024/0.8918, allocations: 0.6119 MB / 0.9214 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.8918, allocations: 0 / 0.9214 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.8922, allocations: 275.6 kB / 0.9217 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/0.8945, allocations: 434.4 kB / 0.9221 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.8979, allocations: 2.418 MB / 0.9245 GB, free: 9.59 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008319/0.8988, allocations: 1.118 MB / 0.9255 GB, free: 8.445 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001002/0.8998, allocations: 267.1 kB / 0.9258 GB, free: 8.18 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.9, allocations: 71.44 kB / 0.9259 GB, free: 8.109 MB / 0.6387 GB Notification: Performance of SimCode: time 7.21e-07/0.9, allocations: 0 / 0.9259 GB, free: 8.109 MB / 0.6387 GB Notification: Performance of Templates: time 0.02676/0.9268, allocations: 14.87 MB / 0.9404 GB, free: 9.484 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)