Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001224/0.001224, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001374/0.001374, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.4 MB / 222.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.621/0.621, allocations: 95.62 MB / 366 MB, free: 10.32 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005781/0.0005781, allocations: 20 kB / 446.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4417/0.4423, allocations: 70.33 MB / 0.5051 GB, free: 16.47 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.6538/1.096, allocations: 144.2 MB / 0.6459 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01277/1.109, allocations: 7.34 MB / 0.6531 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/1.111, allocations: 29.12 kB / 0.6531 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/1.112, allocations: 288.1 kB / 0.6534 GB, free: 1.738 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00351/1.116, allocations: 0.8106 MB / 0.6542 GB, free: 1.695 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003305/1.119, allocations: 0.7743 MB / 0.6549 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004757/1.124, allocations: 2.61 MB / 0.6575 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/1.125, allocations: 0.6021 MB / 0.6581 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002002/1.127, allocations: 0.7175 MB / 0.6588 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/1.129, allocations: 0.6791 MB / 0.6594 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/1.129, allocations: 37.53 kB / 0.6595 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/1.13, allocations: 225.8 kB / 0.6597 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003628/1.13, allocations: 256.6 kB / 0.6599 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004278/1.131, allocations: 207.8 kB / 0.6601 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/1.132, allocations: 1.006 MB / 0.6611 GB, free: 1.441 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.475e-06/1.132, allocations: 3.312 kB / 0.6611 GB, free: 1.441 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.345e-06/1.132, allocations: 0 / 0.6611 GB, free: 1.441 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/1.132, allocations: 0 / 0.6611 GB, free: 1.441 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002005/1.134, allocations: 1.137 MB / 0.6622 GB, free: 16.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/1.134, allocations: 15.48 kB / 0.6622 GB, free: 16.65 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/1.135, allocations: 116.3 kB / 0.6624 GB, free: 16.61 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/1.136, allocations: 0.6201 MB / 0.663 GB, free: 16.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.221e-05/1.136, allocations: 56.19 kB / 0.663 GB, free: 16.33 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/1.136, allocations: 79.8 kB / 0.6631 GB, free: 16.33 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/1.138, allocations: 0.873 MB / 0.6639 GB, free: 16.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/1.138, allocations: 0 / 0.6639 GB, free: 16.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.116e-05/1.138, allocations: 33.66 kB / 0.664 GB, free: 16.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/1.138, allocations: 17.44 kB / 0.664 GB, free: 16.13 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009856/1.139, allocations: 0.6444 MB / 0.6646 GB, free: 16.12 MB / 0.4981 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.004534/1.143, allocations: 4.067 MB / 0.6686 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007106/1.144, allocations: 421.3 kB / 0.669 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/1.144, allocations: 205.4 kB / 0.6692 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001821/1.146, allocations: 1.327 MB / 0.6705 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/1.146, allocations: 35.56 kB / 0.6705 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 2.134e-06/1.146, allocations: 0 / 0.6705 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.003036/1.149, allocations: 1.434 MB / 0.6719 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/1.149, allocations: 138.5 kB / 0.6721 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009606/1.15, allocations: 0.6907 MB / 0.6727 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.592e-05/1.15, allocations: 38.02 kB / 0.6728 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003765/1.151, allocations: 434.2 kB / 0.6732 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/1.151, allocations: 150.2 kB / 0.6733 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/1.151, allocations: 19.25 kB / 0.6733 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002043/1.151, allocations: 381.8 kB / 0.6737 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/1.152, allocations: 228.3 kB / 0.6739 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005927/1.152, allocations: 472.4 kB / 0.6744 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/1.153, allocations: 416.3 kB / 0.6748 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/1.153, allocations: 3.094 kB / 0.6748 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001623/1.155, allocations: 0.907 MB / 0.6757 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/1.155, allocations: 132.3 kB / 0.6758 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/1.155, allocations: 5.125 kB / 0.6758 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.819e-05/1.155, allocations: 11.47 kB / 0.6758 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/1.155, allocations: 161.8 kB / 0.676 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.657e-05/1.155, allocations: 18.38 kB / 0.676 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007726/1.156, allocations: 66.42 kB / 0.676 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-05/1.156, allocations: 42.83 kB / 0.6761 GB, free: 10.25 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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): 82 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005446/1.157, allocations: 269.7 kB / 0.6763 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/1.157, allocations: 79.5 kB / 0.6764 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009251/1.158, allocations: 452.3 kB / 0.6768 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.709e-06/1.158, allocations: 6.562 kB / 0.6768 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/1.158, allocations: 0 / 0.6768 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/1.158, allocations: 3.094 kB / 0.6768 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/1.16, allocations: 1.163 MB / 0.678 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/1.16, allocations: 0 / 0.678 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/1.161, allocations: 95.31 kB / 0.6781 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/1.161, allocations: 0 / 0.6781 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/1.161, allocations: 11.44 kB / 0.6781 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/1.161, allocations: 2.875 kB / 0.6781 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/1.161, allocations: 3.953 kB / 0.6781 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/1.162, allocations: 0.7984 MB / 0.6789 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/1.162, allocations: 148.5 kB / 0.679 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.953e-05/1.162, allocations: 10.41 kB / 0.679 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/1.163, allocations: 35.16 kB / 0.6791 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/1.163, allocations: 28.45 kB / 0.6791 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/1.163, allocations: 25.88 kB / 0.6791 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000584/1.163, allocations: 470.5 kB / 0.6796 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/1.163, allocations: 0 / 0.6796 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009458/1.164, allocations: 248.9 kB / 0.6798 GB, free: 9.207 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (vol.dynBal.medium.p,vol.dynBal.medium.T,vol.dynBal.mC[1],senTraSub.C) * 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 (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006242/1.165, allocations: 257.8 kB / 0.68 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00137/1.166, allocations: 0.7332 MB / 0.6808 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.166, allocations: 4.766 kB / 0.6808 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000306/1.167, allocations: 188.9 kB / 0.6809 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/1.169, allocations: 375.6 kB / 0.6813 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/1.172, allocations: 1.851 MB / 0.6831 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007464/1.173, allocations: 0.9977 MB / 0.6841 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008242/1.174, allocations: 180.2 kB / 0.6843 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/1.174, allocations: 63.05 kB / 0.6843 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of SimCode: time 1.122e-06/1.174, allocations: 0 / 0.6843 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of Templates: time 0.026/1.2, allocations: 13.31 MB / 0.6973 GB, free: 15.68 MB / 0.5137 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) Environment - environmentSimulation: