Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0008669/0.0008669, allocations: 97.64 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.005659/0.00566, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.921/2.921, allocations: 473.4 MB / 0.7469 GB, free: 6.145 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.000358, allocations: 8.031 kB / 0.9158 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3357, allocations: 162.2 MB / 1.074 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 1.038/1.374, allocations: 298.8 MB / 1.366 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03842/1.412, allocations: 25.75 MB / 1.391 GB, free: 14.52 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006998/1.419, allocations: 109.9 kB / 1.391 GB, free: 14.52 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.006342/1.426, allocations: 1.546 MB / 1.393 GB, free: 14.2 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01905/1.445, allocations: 5.623 MB / 1.398 GB, free: 12.85 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.008238/1.453, allocations: 2.379 MB / 1.4 GB, free: 11.34 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01665/1.47, allocations: 12.41 MB / 1.413 GB, free: 5.008 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005811/1.476, allocations: 2.978 MB / 1.416 GB, free: 3.371 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01255/1.488, allocations: 3.549 MB / 1.419 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007139/1.495, allocations: 2.94 MB / 1.422 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0009345/1.496, allocations: 150.2 kB / 1.422 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01123/1.507, allocations: 5.272 MB / 1.427 GB, free: 12.9 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.002179/1.51, allocations: 1.424 MB / 1.429 GB, free: 12.03 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.004031/1.514, allocations: 1.885 MB / 1.43 GB, free: 10.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01334/1.527, allocations: 6.749 MB / 1.437 GB, free: 4.262 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.527, allocations: 4 kB / 1.437 GB, free: 4.258 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.046e-06/1.527, allocations: 0 / 1.437 GB, free: 4.258 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001286/1.527, allocations: 0 / 1.437 GB, free: 4.258 MB / 1.029 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.007116/1.534, allocations: 3.429 MB / 1.44 GB, free: 0.7617 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/1.534, allocations: 8.031 kB / 1.44 GB, free: 0.7539 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006186/1.541, allocations: 0.9399 MB / 1.441 GB, free: 15.81 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/1.545, allocations: 2.271 MB / 1.443 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002714/1.545, allocations: 277.3 kB / 1.444 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005382/1.546, allocations: 291.9 kB / 1.444 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0061/1.552, allocations: 3.363 MB / 1.447 GB, free: 9.441 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-05/1.552, allocations: 11.97 kB / 1.447 GB, free: 9.43 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002736/1.552, allocations: 116 kB / 1.447 GB, free: 9.316 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/1.553, allocations: 109.3 kB / 1.447 GB, free: 9.207 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004749/1.557, allocations: 2.8 MB / 1.45 GB, free: 6.395 MB / 1.045 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.01761/1.575, allocations: 13.25 MB / 1.463 GB, free: 7.953 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/1.578, allocations: 1.685 MB / 1.465 GB, free: 6.262 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/1.579, allocations: 1.106 MB / 1.466 GB, free: 5.152 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004981/1.58, allocations: 333.2 kB / 1.466 GB, free: 4.77 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.156e-05/1.58, allocations: 60.44 kB / 1.466 GB, free: 4.703 MB / 1.061 GB Notification: Performance of pre-optimization done (n=182): time 3.767e-06/1.58, allocations: 4 kB / 1.466 GB, free: 4.699 MB / 1.061 GB Notification: Performance of matching and sorting (n=182): time 0.005233/1.585, allocations: 2.735 MB / 1.469 GB, free: 1.961 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/1.585, allocations: 73.41 kB / 1.469 GB, free: 1.875 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003217/1.588, allocations: 1.998 MB / 1.471 GB, free: 15.86 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0003921/1.589, allocations: 65.7 kB / 1.471 GB, free: 15.79 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.00112/1.59, allocations: 1.402 MB / 1.472 GB, free: 14.37 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008712/1.591, allocations: 0.6469 MB / 1.473 GB, free: 13.71 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/1.591, allocations: 165.6 kB / 1.473 GB, free: 13.55 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001069/1.591, allocations: 305.1 kB / 1.473 GB, free: 13.25 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/1.593, allocations: 0.8082 MB / 1.474 GB, free: 12.43 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/1.595, allocations: 1.415 MB / 1.476 GB, free: 10.76 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003296/1.598, allocations: 2.263 MB / 1.478 GB, free: 8.316 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/1.598, allocations: 4 kB / 1.478 GB, free: 8.312 MB / 1.076 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004694/1.603, allocations: 2.506 MB / 1.48 GB, free: 5.797 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003651/1.603, allocations: 485.2 kB / 1.481 GB, free: 5.141 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/1.603, allocations: 12 kB / 1.481 GB, free: 5.129 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-05/1.603, allocations: 28 kB / 1.481 GB, free: 5.102 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/1.606, allocations: 0.5616 MB / 1.481 GB, free: 4.539 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/1.608, allocations: 4.161 MB / 1.485 GB, free: 220 kB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00438/1.613, allocations: 397.8 kB / 1.486 GB, free: 15.82 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/1.613, allocations: 87.98 kB / 1.486 GB, free: 15.74 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/1.613, allocations: 4 kB / 1.486 GB, free: 15.73 MB / 1.092 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003687/1.617, allocations: 2.229 MB / 1.488 GB, free: 13.5 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/1.617, allocations: 12 kB / 1.488 GB, free: 13.49 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/1.617, allocations: 24 kB / 1.488 GB, free: 13.47 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/1.618, allocations: 475.9 kB / 1.489 GB, free: 13 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.008e-05/1.618, allocations: 35.92 kB / 1.489 GB, free: 12.97 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003483/1.622, allocations: 377.9 kB / 1.489 GB, free: 12.6 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/1.622, allocations: 91.92 kB / 1.489 GB, free: 12.51 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (257): * Single equations (assignments): 250 * 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.001902/1.624, allocations: 0.8712 MB / 1.49 GB, free: 11.62 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007209/1.625, allocations: 264.8 kB / 1.49 GB, free: 11.36 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/1.628, allocations: 2.099 MB / 1.492 GB, free: 9.246 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/1.629, allocations: 24 kB / 1.492 GB, free: 9.223 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/1.629, allocations: 0 / 1.492 GB, free: 9.223 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002867/1.631, allocations: 1.906 MB / 1.494 GB, free: 7.27 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/1.642, allocations: 5.178 MB / 1.499 GB, free: 1.988 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.642, allocations: 12.05 kB / 1.499 GB, free: 1.977 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/1.645, allocations: 0.4954 MB / 1.5 GB, free: 1.48 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.195e-05/1.645, allocations: 12 kB / 1.5 GB, free: 1.469 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001654/1.645, allocations: 51.98 kB / 1.5 GB, free: 1.418 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/1.647, allocations: 4.13 MB / 1.504 GB, free: 13.12 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.83e-06/1.647, allocations: 4.031 kB / 1.504 GB, free: 13.12 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/1.652, allocations: 3.227 MB / 1.507 GB, free: 9.84 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/1.654, allocations: 0.5792 MB / 1.507 GB, free: 9.238 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.655, allocations: 39.98 kB / 1.507 GB, free: 9.199 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003355/1.659, allocations: 251.5 kB / 1.508 GB, free: 8.953 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/1.659, allocations: 109.8 kB / 1.508 GB, free: 8.848 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/1.659, allocations: 75.95 kB / 1.508 GB, free: 8.773 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002824/1.662, allocations: 1.326 MB / 1.509 GB, free: 7.438 MB / 1.107 GB Notification: Performance of sort global known variables: time 7.92e-07/1.662, allocations: 0 / 1.509 GB, free: 7.438 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.005632/1.668, allocations: 1.722 MB / 1.511 GB, free: 5.711 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,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 (182): * Single equations (assignments): 175 * 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.0009368/1.669, allocations: 364.3 kB / 1.511 GB, free: 5.359 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.007023/1.676, allocations: 3.314 MB / 1.514 GB, free: 2.055 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.676, allocations: 320 / 1.514 GB, free: 2.055 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.00207/1.678, allocations: 1.038 MB / 1.515 GB, free: 1.016 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/1.69, allocations: 1.597 MB / 1.517 GB, free: 15.43 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/1.705, allocations: 8.144 MB / 1.525 GB, free: 7.215 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002716/1.708, allocations: 2.19 MB / 1.527 GB, free: 4.992 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.005002/1.713, allocations: 1.1 MB / 1.528 GB, free: 3.887 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009146/1.714, allocations: 219.4 kB / 1.528 GB, free: 3.672 MB / 1.123 GB Notification: Performance of SimCode: time 1.312e-06/1.714, allocations: 0 / 1.528 GB, free: 3.672 MB / 1.123 GB Notification: Performance of Templates: time 0.09742/1.811, allocations: 52.65 MB / 1.58 GB, free: 15.62 MB / 1.186 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)