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.001371/0.001371, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001435/0.001435, allocations: 198.3 kB / 16.14 MB, free: 6.797 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.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002543/0.002543, allocations: 282.1 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.075/1.075, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003931/0.003931, allocations: 103.1 kB / 0.6057 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1921, allocations: 89.15 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5577/0.7499, allocations: 192.9 MB / 0.8811 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0209/0.7708, allocations: 14.4 MB / 0.8952 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.7727, allocations: 39.75 kB / 0.8952 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001589/0.7743, allocations: 413.7 kB / 0.8956 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005167/0.7795, allocations: 1.774 MB / 0.8973 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.782, allocations: 0.7718 MB / 0.8981 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004603/0.7866, allocations: 3.622 MB / 0.9016 GB, free: 6.207 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.7882, allocations: 0.9411 MB / 0.9026 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005232/0.7934, allocations: 1.446 MB / 0.904 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.7958, allocations: 0.9636 MB / 0.9049 GB, free: 2.848 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.796, allocations: 60 kB / 0.905 GB, free: 2.789 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003101/0.7991, allocations: 1.251 MB / 0.9062 GB, free: 1.535 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006325/0.7997, allocations: 462.8 kB / 0.9066 GB, free: 1.082 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0009444/0.8007, allocations: 0.5947 MB / 0.9072 GB, free: 496 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003184/0.8039, allocations: 1.92 MB / 0.9091 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.8039, allocations: 0 / 0.9091 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of FrontEnd: time 9.82e-07/0.8039, allocations: 7.938 kB / 0.9091 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.476e-05/0.8039, allocations: 0 / 0.9091 GB, free: 14.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.002486/0.8064, allocations: 1.449 MB / 0.9105 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.8065, allocations: 12.03 kB / 0.9105 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.8079, allocations: 246.3 kB / 0.9108 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.8092, allocations: 0.757 MB / 0.9115 GB, free: 12 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.8093, allocations: 70 kB / 0.9116 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.8094, allocations: 92 kB / 0.9116 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.8113, allocations: 1.173 MB / 0.9128 GB, free: 10.59 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.8113, allocations: 11.84 kB / 0.9128 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.793e-05/0.8114, allocations: 36 kB / 0.9128 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-05/0.8115, allocations: 37.94 kB / 0.9129 GB, free: 10.51 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.813, allocations: 0.9015 MB / 0.9138 GB, free: 9.609 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.00659/0.8196, allocations: 5.735 MB / 0.9194 GB, free: 3.418 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009837/0.8206, allocations: 0.5399 MB / 0.9199 GB, free: 2.867 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.8211, allocations: 322.5 kB / 0.9202 GB, free: 2.551 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006623/0.8218, allocations: 319.7 kB / 0.9205 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.8218, allocations: 35 kB / 0.9205 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.8218, allocations: 0 / 0.9205 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of matching and sorting (n=49): time 0.001688/0.8235, allocations: 0.7948 MB / 0.9213 GB, free: 1.344 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.8236, allocations: 63.78 kB / 0.9214 GB, free: 1.27 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.8246, allocations: 0.747 MB / 0.9221 GB, free: 0.5117 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.8247, allocations: 41.7 kB / 0.9221 GB, free: 476 kB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004552/0.8251, allocations: 0.5067 MB / 0.9226 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.8253, allocations: 177.5 kB / 0.9228 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.8256, allocations: 138.5 kB / 0.9229 GB, free: 15.63 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.8257, allocations: 341.9 kB / 0.9233 GB, free: 15.29 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.8262, allocations: 245.9 kB / 0.9235 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007052/0.8269, allocations: 0.5546 MB / 0.924 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.828, allocations: 0.8034 MB / 0.9248 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.828, allocations: 4 kB / 0.9248 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001496/0.8295, allocations: 0.8428 MB / 0.9256 GB, free: 12.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.8296, allocations: 9.875 kB / 0.9257 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.8296, allocations: 12.12 kB / 0.9257 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.289e-05/0.8296, allocations: 12 kB / 0.9257 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005971/0.8302, allocations: 151.8 kB / 0.9258 GB, free: 12.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.833e-05/0.8303, allocations: 19.92 kB / 0.9258 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.8313, allocations: 155 kB / 0.926 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/0.8314, allocations: 35.98 kB / 0.926 GB, free: 12.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.0005995/0.832, allocations: 333.4 kB / 0.9263 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.8322, allocations: 86.97 kB / 0.9264 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.8333, allocations: 0.618 MB / 0.927 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.8334, allocations: 7.938 kB / 0.927 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.8334, allocations: 4 kB / 0.927 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007882/0.8342, allocations: 0.5172 MB / 0.9275 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.8371, allocations: 1.671 MB / 0.9292 GB, free: 8.867 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.8371, allocations: 0 / 0.9292 GB, free: 8.867 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.8377, allocations: 119.8 kB / 0.9293 GB, free: 8.75 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.8378, allocations: 4 kB / 0.9293 GB, free: 8.746 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.8378, allocations: 8 kB / 0.9293 GB, free: 8.738 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/0.8378, allocations: 4 kB / 0.9293 GB, free: 8.734 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.8378, allocations: 4 kB / 0.9293 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.8394, allocations: 1.015 MB / 0.9303 GB, free: 7.68 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004043/0.8398, allocations: 223.9 kB / 0.9305 GB, free: 7.441 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.8399, allocations: 16 kB / 0.9305 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.8405, allocations: 67.78 kB / 0.9306 GB, free: 7.359 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.528e-05/0.8406, allocations: 31.95 kB / 0.9306 GB, free: 7.328 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.8406, allocations: 16 kB / 0.9306 GB, free: 7.312 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007107/0.8413, allocations: 0.5146 MB / 0.9311 GB, free: 6.801 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8413, allocations: 0 / 0.9311 GB, free: 6.801 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009307/0.8423, allocations: 299.4 kB / 0.9314 GB, free: 6.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.0005134/0.8428, allocations: 211.8 kB / 0.9316 GB, free: 6.309 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001093/0.8439, allocations: 0.6119 MB / 0.9322 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.8439, allocations: 0 / 0.9322 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004029/0.8443, allocations: 279.8 kB / 0.9325 GB, free: 5.422 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/0.8464, allocations: 432 kB / 0.9329 GB, free: 5.008 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003782/0.8501, allocations: 2.319 MB / 0.9352 GB, free: 2.637 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009063/0.8511, allocations: 1.118 MB / 0.9363 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009941/0.8521, allocations: 269.2 kB / 0.9365 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.8523, allocations: 75.42 kB / 0.9366 GB, free: 1.152 MB / 0.6544 GB Notification: Performance of SimCode: time 1.102e-06/0.8523, allocations: 4 kB / 0.9366 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of Templates: time 0.02998/0.8823, allocations: 14.94 MB / 0.9512 GB, free: 2.457 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)