Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 173.6 kB / 327.6 MB, free: 2.102 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.4 MB / 0.5786 GB, free: 20.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008638/0.0008638, allocations: 96.78 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003414, allocations: 9.75 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2039, allocations: 106.3 MB / 0.9014 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7713/0.9752, allocations: 299.4 MB / 1.194 GB, free: 1.719 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.03428/1.01, allocations: 25.78 MB / 1.219 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005482/1.015, allocations: 99.31 kB / 1.219 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.00554/1.021, allocations: 1.559 MB / 1.221 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.01727/1.038, allocations: 5.634 MB / 1.226 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.00794/1.046, allocations: 2.475 MB / 1.229 GB, free: 3.434 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.01753/1.063, allocations: 12.7 MB / 1.241 GB, free: 6.711 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006317/1.07, allocations: 3.026 MB / 1.244 GB, free: 3.605 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/1.08, allocations: 3.494 MB / 1.247 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007789/1.088, allocations: 2.996 MB / 1.25 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 0.00145/1.09, allocations: 156 kB / 1.25 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01362/1.103, allocations: 5.287 MB / 1.256 GB, free: 7.648 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.003533/1.107, allocations: 1.457 MB / 1.257 GB, free: 6.188 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.005849/1.113, allocations: 1.918 MB / 1.259 GB, free: 4.254 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.01214/1.125, allocations: 5.082 MB / 1.264 GB, free: 15.16 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 9.859e-06/1.125, allocations: 0 / 1.264 GB, free: 15.16 MB / 0.7917 GB Notification: Performance of FrontEnd: time 4.478e-06/1.125, allocations: 4 kB / 1.264 GB, free: 15.16 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0003856/1.125, allocations: 0 / 1.264 GB, free: 15.16 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 0.009958/1.135, allocations: 3.452 MB / 1.267 GB, free: 11.64 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.135, allocations: 8.031 kB / 1.267 GB, free: 11.63 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006515/1.142, allocations: 0.94 MB / 1.268 GB, free: 10.68 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006409/1.148, allocations: 2.459 MB / 1.27 GB, free: 8.148 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003616/1.149, allocations: 277.5 kB / 1.271 GB, free: 7.863 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008423/1.15, allocations: 295.9 kB / 1.271 GB, free: 7.574 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008016/1.158, allocations: 3.419 MB / 1.274 GB, free: 4.07 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.173e-05/1.158, allocations: 0 / 1.274 GB, free: 4.07 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000451/1.158, allocations: 116 kB / 1.274 GB, free: 3.957 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/1.158, allocations: 113.3 kB / 1.275 GB, free: 3.844 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005616/1.164, allocations: 2.824 MB / 1.277 GB, free: 1.008 MB / 0.7917 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.02047/1.185, allocations: 13.31 MB / 1.29 GB, free: 2.504 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/1.188, allocations: 1.844 MB / 1.292 GB, free: 0.6562 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/1.189, allocations: 1.11 MB / 1.293 GB, free: 15.54 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005187/1.19, allocations: 329.1 kB / 1.294 GB, free: 15.17 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.565e-05/1.19, allocations: 60.56 kB / 1.294 GB, free: 15.1 MB / 0.823 GB Notification: Performance of pre-optimization done (n=186): time 3.978e-06/1.19, allocations: 0 / 1.294 GB, free: 15.1 MB / 0.823 GB Notification: Performance of matching and sorting (n=186): time 0.005539/1.196, allocations: 2.75 MB / 1.296 GB, free: 12.35 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/1.196, allocations: 73.41 kB / 1.296 GB, free: 12.26 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/1.199, allocations: 2 MB / 1.298 GB, free: 10.24 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002822/1.199, allocations: 69.7 kB / 1.298 GB, free: 10.17 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001088/1.2, allocations: 1.4 MB / 1.3 GB, free: 8.754 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008179/1.201, allocations: 0.6546 MB / 1.3 GB, free: 8.09 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/1.201, allocations: 43.94 kB / 1.3 GB, free: 8.047 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0002171/1.201, allocations: 389.9 kB / 1.301 GB, free: 7.66 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/1.203, allocations: 0.8044 MB / 1.302 GB, free: 6.852 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/1.205, allocations: 1.448 MB / 1.303 GB, free: 5.137 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003333/1.208, allocations: 2.249 MB / 1.305 GB, free: 2.715 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/1.208, allocations: 4 kB / 1.305 GB, free: 2.711 MB / 0.823 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.004702/1.213, allocations: 2.497 MB / 1.308 GB, free: 208 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000385/1.213, allocations: 473 kB / 1.308 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/1.213, allocations: 16 kB / 1.308 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.511e-05/1.213, allocations: 24 kB / 1.308 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/1.216, allocations: 0.5578 MB / 1.309 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002631/1.219, allocations: 4.157 MB / 1.313 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003637/1.222, allocations: 385 kB / 1.313 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/1.223, allocations: 87.98 kB / 1.313 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/1.223, allocations: 4 kB / 1.313 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004055/1.227, allocations: 2.221 MB / 1.315 GB, free: 7.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.339e-05/1.227, allocations: 16.84 kB / 1.315 GB, free: 7.941 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.091e-05/1.227, allocations: 24 kB / 1.315 GB, free: 7.918 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/1.229, allocations: 483.3 kB / 1.316 GB, free: 7.445 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.062e-05/1.229, allocations: 31.86 kB / 1.316 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003571/1.232, allocations: 368.7 kB / 1.316 GB, free: 7.055 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002214/1.233, allocations: 91.97 kB / 1.316 GB, free: 6.965 MB / 0.8386 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 (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001966/1.235, allocations: 0.8733 MB / 1.317 GB, free: 6.082 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008236/1.236, allocations: 268.8 kB / 1.317 GB, free: 5.816 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/1.239, allocations: 2.13 MB / 1.32 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/1.24, allocations: 20 kB / 1.32 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.24, allocations: 0 / 1.32 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002838/1.242, allocations: 1.898 MB / 1.321 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/1.252, allocations: 5.224 MB / 1.326 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/1.252, allocations: 4 kB / 1.326 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/1.255, allocations: 0.5153 MB / 1.327 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.729e-05/1.255, allocations: 8 kB / 1.327 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/1.255, allocations: 51.98 kB / 1.327 GB, free: 11.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/1.257, allocations: 4.126 MB / 1.331 GB, free: 7.516 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.257, allocations: 4.281 kB / 1.331 GB, free: 7.512 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005474/1.263, allocations: 3.402 MB / 1.334 GB, free: 4.055 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.265, allocations: 0.595 MB / 1.335 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005359/1.265, allocations: 43.98 kB / 1.335 GB, free: 3.395 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002688/1.268, allocations: 266.8 kB / 1.335 GB, free: 3.137 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/1.268, allocations: 121.7 kB / 1.335 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001976/1.268, allocations: 79.89 kB / 1.335 GB, free: 2.941 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.002361/1.271, allocations: 1.329 MB / 1.337 GB, free: 1.602 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.1e-07/1.271, allocations: 0 / 1.337 GB, free: 1.602 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.004747/1.275, allocations: 1.745 MB / 1.338 GB, free: 15.85 MB / 0.8698 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 (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008727/1.276, allocations: 384.2 kB / 1.339 GB, free: 15.48 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00687/1.283, allocations: 3.337 MB / 1.342 GB, free: 12.14 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/1.283, allocations: 4 kB / 1.342 GB, free: 12.14 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001958/1.285, allocations: 1.043 MB / 1.343 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01072/1.296, allocations: 1.608 MB / 1.345 GB, free: 9.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.31, allocations: 8.379 MB / 1.353 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/1.313, allocations: 2.197 MB / 1.355 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/1.314, allocations: 243.4 kB / 1.355 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of SimCode: time 1.202e-06/1.314, allocations: 4 kB / 1.355 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of Templates: time 0.5362/1.85, allocations: 141.4 MB / 1.493 GB, free: 289 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)