Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_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.0007945/0.0007945, allocations: 98.27 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.005485/0.005485, allocations: 169 kB / 16.26 MB, free: 6.66 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.464/1.464, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.699/2.699, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003605, allocations: 8.75 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3028, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.9601/1.263, allocations: 298.8 MB / 1.35 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02873/1.292, allocations: 25.73 MB / 1.376 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006115/1.298, allocations: 112 kB / 1.376 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005471/1.303, allocations: 1.538 MB / 1.377 GB, free: 1.051 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01694/1.32, allocations: 5.628 MB / 1.383 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006224/1.327, allocations: 2.376 MB / 1.385 GB, free: 116 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01581/1.342, allocations: 12.46 MB / 1.397 GB, free: 11.6 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005032/1.347, allocations: 2.987 MB / 1.4 GB, free: 9.949 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01267/1.36, allocations: 3.541 MB / 1.404 GB, free: 8.246 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008121/1.368, allocations: 2.938 MB / 1.406 GB, free: 6.902 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001042/1.369, allocations: 149.3 kB / 1.407 GB, free: 6.902 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.013/1.382, allocations: 5.269 MB / 1.412 GB, free: 4.477 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002494/1.385, allocations: 1.427 MB / 1.413 GB, free: 3.621 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.004017/1.389, allocations: 1.882 MB / 1.415 GB, free: 2.5 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0126/1.401, allocations: 6.75 MB / 1.422 GB, free: 14.55 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/1.402, allocations: 0 / 1.422 GB, free: 14.55 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.076e-06/1.402, allocations: 0 / 1.422 GB, free: 14.55 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001725/1.402, allocations: 0 / 1.422 GB, free: 14.55 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.006921/1.409, allocations: 3.434 MB / 1.425 GB, free: 11.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/1.409, allocations: 8.031 kB / 1.425 GB, free: 11.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006148/1.415, allocations: 0.9424 MB / 1.426 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004473/1.419, allocations: 2.264 MB / 1.428 GB, free: 8.371 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/1.42, allocations: 272 kB / 1.428 GB, free: 8.094 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004907/1.42, allocations: 291.3 kB / 1.429 GB, free: 7.812 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006416/1.427, allocations: 3.369 MB / 1.432 GB, free: 4.359 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.488e-05/1.427, allocations: 4 kB / 1.432 GB, free: 4.355 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002829/1.427, allocations: 119 kB / 1.432 GB, free: 4.242 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001119/1.427, allocations: 113.2 kB / 1.432 GB, free: 4.129 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004705/1.432, allocations: 2.804 MB / 1.435 GB, free: 1.312 MB / 1.029 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.01859/1.45, allocations: 13.25 MB / 1.448 GB, free: 3.004 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003413/1.454, allocations: 1.693 MB / 1.449 GB, free: 1.305 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/1.456, allocations: 1.114 MB / 1.45 GB, free: 200 kB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005366/1.456, allocations: 322.5 kB / 1.451 GB, free: 15.83 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.088e-05/1.456, allocations: 60.56 kB / 1.451 GB, free: 15.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=182): time 4.729e-06/1.456, allocations: 0 / 1.451 GB, free: 15.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=182): time 0.005315/1.462, allocations: 2.735 MB / 1.454 GB, free: 13.03 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/1.462, allocations: 77.33 kB / 1.454 GB, free: 12.94 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/1.465, allocations: 1.994 MB / 1.456 GB, free: 10.93 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0003219/1.465, allocations: 65.7 kB / 1.456 GB, free: 10.86 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001174/1.466, allocations: 1.41 MB / 1.457 GB, free: 9.434 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008151/1.467, allocations: 0.6376 MB / 1.458 GB, free: 8.801 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/1.467, allocations: 173.6 kB / 1.458 GB, free: 8.625 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001102/1.467, allocations: 309.1 kB / 1.458 GB, free: 8.32 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/1.469, allocations: 0.8043 MB / 1.459 GB, free: 7.512 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/1.471, allocations: 1.414 MB / 1.46 GB, free: 5.844 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/1.474, allocations: 2.256 MB / 1.462 GB, free: 3.406 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/1.474, allocations: 7.938 kB / 1.462 GB, free: 3.398 MB / 1.061 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004521/1.479, allocations: 2.502 MB / 1.465 GB, free: 0.8867 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003282/1.479, allocations: 493.3 kB / 1.465 GB, free: 228 kB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/1.479, allocations: 20 kB / 1.465 GB, free: 208 kB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.861e-05/1.479, allocations: 24 kB / 1.465 GB, free: 184 kB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/1.482, allocations: 0.5499 MB / 1.466 GB, free: 15.63 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/1.484, allocations: 4.169 MB / 1.47 GB, free: 11.3 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/1.488, allocations: 393.7 kB / 1.47 GB, free: 10.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/1.488, allocations: 87.98 kB / 1.47 GB, free: 10.83 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/1.488, allocations: 8 kB / 1.47 GB, free: 10.82 MB / 1.076 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003516/1.491, allocations: 2.221 MB / 1.473 GB, free: 8.598 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/1.491, allocations: 16 kB / 1.473 GB, free: 8.582 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/1.491, allocations: 28.78 kB / 1.473 GB, free: 8.555 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/1.493, allocations: 475.3 kB / 1.473 GB, free: 8.09 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.279e-05/1.493, allocations: 31.88 kB / 1.473 GB, free: 8.059 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/1.497, allocations: 378 kB / 1.474 GB, free: 7.688 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/1.497, allocations: 83.98 kB / 1.474 GB, free: 7.605 MB / 1.076 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.001889/1.499, allocations: 0.8596 MB / 1.474 GB, free: 6.734 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006102/1.499, allocations: 276.7 kB / 1.475 GB, free: 6.461 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/1.503, allocations: 2.107 MB / 1.477 GB, free: 4.336 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/1.503, allocations: 20 kB / 1.477 GB, free: 4.316 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.503, allocations: 4 kB / 1.477 GB, free: 4.312 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002909/1.506, allocations: 1.894 MB / 1.479 GB, free: 2.371 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/1.516, allocations: 5.193 MB / 1.484 GB, free: 13.12 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/1.516, allocations: 0 / 1.484 GB, free: 13.12 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002232/1.518, allocations: 499.4 kB / 1.484 GB, free: 12.63 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.969e-05/1.518, allocations: 8.188 kB / 1.484 GB, free: 12.62 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/1.518, allocations: 59.97 kB / 1.484 GB, free: 12.57 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/1.52, allocations: 4.13 MB / 1.488 GB, free: 8.273 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.52, allocations: 4 kB / 1.488 GB, free: 8.27 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00499/1.525, allocations: 3.246 MB / 1.491 GB, free: 4.969 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/1.527, allocations: 0.5599 MB / 1.492 GB, free: 4.387 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003948/1.528, allocations: 40 kB / 1.492 GB, free: 4.348 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/1.53, allocations: 260 kB / 1.492 GB, free: 4.094 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/1.53, allocations: 117.7 kB / 1.492 GB, free: 3.98 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/1.53, allocations: 67.97 kB / 1.492 GB, free: 3.914 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001848/1.532, allocations: 1.334 MB / 1.494 GB, free: 2.57 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.3e-07/1.532, allocations: 0 / 1.494 GB, free: 2.57 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003997/1.536, allocations: 1.714 MB / 1.495 GB, free: 0.8516 MB / 1.092 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.0007528/1.537, allocations: 351.8 kB / 1.496 GB, free: 0.5195 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.005975/1.543, allocations: 3.322 MB / 1.499 GB, free: 13.21 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.543, allocations: 4 kB / 1.499 GB, free: 13.2 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001707/1.545, allocations: 1.026 MB / 1.5 GB, free: 12.18 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009534/1.554, allocations: 1.602 MB / 1.502 GB, free: 10.58 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/1.566, allocations: 8.156 MB / 1.51 GB, free: 2.359 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/1.568, allocations: 2.19 MB / 1.512 GB, free: 140 kB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.004247/1.572, allocations: 1.1 MB / 1.513 GB, free: 15.03 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006248/1.573, allocations: 219.4 kB / 1.513 GB, free: 14.82 MB / 1.123 GB Notification: Performance of SimCode: time 1.703e-06/1.573, allocations: 0 / 1.513 GB, free: 14.82 MB / 1.123 GB Notification: Performance of Templates: time 0.09376/1.667, allocations: 52.65 MB / 1.564 GB, free: 10.81 MB / 1.17 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches