Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007857/0.0007857, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009777/0.0009777, allocations: 168.7 kB / 15.95 MB, free: 204 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.368/1.368, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.582/1.582, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.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: Performance of FrontEnd - loaded program: time 0.0005454/0.0005454, allocations: 15 kB / 0.6737 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2634, allocations: 116.3 MB / 0.7873 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7566/1.02, allocations: 278.7 MB / 1.059 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.03285/1.053, allocations: 23.97 MB / 1.083 GB, free: 13.21 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004572/1.058, allocations: 95.31 kB / 1.083 GB, free: 13.11 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004836/1.062, allocations: 1.196 MB / 1.084 GB, free: 11.91 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01597/1.078, allocations: 4.358 MB / 1.088 GB, free: 7.535 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.007717/1.086, allocations: 1.946 MB / 1.09 GB, free: 5.609 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01548/1.102, allocations: 10.4 MB / 1.1 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006195/1.108, allocations: 2.528 MB / 1.103 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009445/1.117, allocations: 3.194 MB / 1.106 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006125/1.124, allocations: 2.815 MB / 1.109 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001511/1.125, allocations: 152 kB / 1.109 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00994/1.135, allocations: 2.409 MB / 1.111 GB, free: 32 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.003601/1.139, allocations: 1.426 MB / 1.113 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.003011/1.142, allocations: 0.7654 MB / 1.113 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.008632/1.15, allocations: 4.731 MB / 1.118 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/1.15, allocations: 0 / 1.118 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.025e-06/1.15, allocations: 3.938 kB / 1.118 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0002322/1.151, allocations: 0 / 1.118 GB, free: 9.082 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.007484/1.158, allocations: 3.468 MB / 1.121 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/1.158, allocations: 12.02 kB / 1.121 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006022/1.164, allocations: 0.94 MB / 1.122 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006402/1.171, allocations: 2.355 MB / 1.125 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003861/1.171, allocations: 281.4 kB / 1.125 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009955/1.172, allocations: 295.9 kB / 1.125 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008679/1.181, allocations: 3.347 MB / 1.128 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.3e-05/1.181, allocations: 3.938 kB / 1.128 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005044/1.182, allocations: 116 kB / 1.129 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/1.182, allocations: 113.3 kB / 1.129 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005861/1.188, allocations: 2.785 MB / 1.131 GB, free: 11.12 MB / 0.8419 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.01937/1.207, allocations: 13.24 MB / 1.144 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/1.21, allocations: 1.875 MB / 1.146 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/1.212, allocations: 1.118 MB / 1.147 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004854/1.212, allocations: 325.2 kB / 1.148 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/1.212, allocations: 64.44 kB / 1.148 GB, free: 9.258 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=186): time 3.847e-06/1.212, allocations: 4 kB / 1.148 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of matching and sorting (n=186): time 0.005235/1.218, allocations: 2.77 MB / 1.15 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/1.218, allocations: 69.41 kB / 1.15 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/1.221, allocations: 1.953 MB / 1.152 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000265/1.221, allocations: 73.7 kB / 1.152 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001195/1.223, allocations: 1.395 MB / 1.154 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007197/1.223, allocations: 0.6584 MB / 1.154 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/1.224, allocations: 40 kB / 1.154 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002399/1.224, allocations: 390 kB / 1.155 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/1.225, allocations: 0.7965 MB / 1.156 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/1.227, allocations: 1.462 MB / 1.157 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/1.229, allocations: 1.06 MB / 1.158 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/1.229, allocations: 4 kB / 1.158 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.004429/1.233, allocations: 2.498 MB / 1.161 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003609/1.234, allocations: 470.5 kB / 1.161 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/1.234, allocations: 12 kB / 1.161 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.35e-05/1.234, allocations: 27.98 kB / 1.161 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002549/1.236, allocations: 0.5655 MB / 1.162 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/1.239, allocations: 4.149 MB / 1.166 GB, free: 6.176 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/1.242, allocations: 388 kB / 1.166 GB, free: 5.801 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003293/1.243, allocations: 87.98 kB / 1.166 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/1.243, allocations: 4 kB / 1.166 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00413/1.247, allocations: 2.222 MB / 1.168 GB, free: 3.488 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.61e-05/1.247, allocations: 12 kB / 1.168 GB, free: 3.477 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/1.247, allocations: 24 kB / 1.168 GB, free: 3.453 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/1.249, allocations: 479.3 kB / 1.169 GB, free: 2.984 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.355e-05/1.249, allocations: 35.86 kB / 1.169 GB, free: 2.949 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003056/1.252, allocations: 346.4 kB / 1.169 GB, free: 2.609 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001902/1.252, allocations: 87.97 kB / 1.169 GB, free: 2.523 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001791/1.254, allocations: 0.8596 MB / 1.17 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007916/1.255, allocations: 276.8 kB / 1.17 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003828/1.259, allocations: 2.146 MB / 1.172 GB, free: 15.22 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/1.259, allocations: 16 kB / 1.172 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.259, allocations: 3.938 kB / 1.172 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002682/1.261, allocations: 1.906 MB / 1.174 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009817/1.271, allocations: 5.204 MB / 1.179 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.271, allocations: 8.312 kB / 1.179 GB, free: 7.93 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002362/1.274, allocations: 0.5072 MB / 1.18 GB, free: 7.422 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.03e-05/1.274, allocations: 8 kB / 1.18 GB, free: 7.414 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/1.274, allocations: 55.97 kB / 1.18 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/1.276, allocations: 4.134 MB / 1.184 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.276, allocations: 4 kB / 1.184 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/1.281, allocations: 3.42 MB / 1.187 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/1.283, allocations: 0.5755 MB / 1.188 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006237/1.283, allocations: 44 kB / 1.188 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00249/1.286, allocations: 251.3 kB / 1.188 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/1.286, allocations: 121.9 kB / 1.188 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.286, allocations: 67.97 kB / 1.188 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002463/1.289, allocations: 1.302 MB / 1.19 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.7e-07/1.289, allocations: 0 / 1.19 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.005781/1.295, allocations: 1.722 MB / 1.191 GB, free: 11.48 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009455/1.295, allocations: 395.2 kB / 1.192 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006502/1.302, allocations: 3.33 MB / 1.195 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/1.302, allocations: 4 kB / 1.195 GB, free: 7.766 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001875/1.304, allocations: 1.047 MB / 1.196 GB, free: 6.723 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008183/1.312, allocations: 1.606 MB / 1.197 GB, free: 5.121 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.325, allocations: 7.863 MB / 1.205 GB, free: 13.19 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002657/1.327, allocations: 2.182 MB / 1.207 GB, free: 10.98 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.004614/1.332, allocations: 1.107 MB / 1.208 GB, free: 9.863 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008468/1.333, allocations: 231.4 kB / 1.209 GB, free: 9.637 MB / 0.92 GB Notification: Performance of SimCode: time 9.01e-07/1.333, allocations: 3.938 kB / 1.209 GB, free: 9.633 MB / 0.92 GB Notification: Performance of Templates: time 0.08572/1.419, allocations: 52.27 MB / 1.26 GB, free: 6.023 MB / 0.9669 GB make -j1 -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) Environment - environmentSimulation: