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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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="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.0009625/0.0009625, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.414/1.414, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.822/2.822, allocations: 462.6 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003713, allocations: 13.42 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3697, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 1.023/1.393, allocations: 298.8 MB / 1.351 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03117/1.424, allocations: 25.73 MB / 1.376 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005867/1.43, allocations: 108.4 kB / 1.376 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005316/1.435, allocations: 1.543 MB / 1.378 GB, free: 0.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01758/1.453, allocations: 5.623 MB / 1.383 GB, free: 416 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007998/1.461, allocations: 2.412 MB / 1.386 GB, free: 15.96 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0159/1.477, allocations: 12.4 MB / 1.398 GB, free: 11.22 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006457/1.483, allocations: 2.992 MB / 1.401 GB, free: 9.562 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0143/1.497, allocations: 3.549 MB / 1.404 GB, free: 7.855 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008117/1.506, allocations: 2.936 MB / 1.407 GB, free: 6.52 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001696/1.507, allocations: 150 kB / 1.407 GB, free: 6.52 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/1.521, allocations: 5.273 MB / 1.412 GB, free: 4.09 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.003487/1.524, allocations: 1.429 MB / 1.414 GB, free: 3.23 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.006309/1.531, allocations: 1.884 MB / 1.416 GB, free: 2.109 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.009844/1.541, allocations: 4.97 MB / 1.42 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/1.541, allocations: 3.938 kB / 1.42 GB, free: 15.17 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.865e-06/1.541, allocations: 0 / 1.42 GB, free: 15.17 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0002865/1.541, allocations: 0 / 1.42 GB, free: 15.17 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.009203/1.55, allocations: 3.429 MB / 1.424 GB, free: 12.77 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/1.55, allocations: 12.03 kB / 1.424 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00698/1.557, allocations: 0.9466 MB / 1.425 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006389/1.564, allocations: 2.259 MB / 1.427 GB, free: 9.531 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000378/1.564, allocations: 277.3 kB / 1.427 GB, free: 9.246 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/1.565, allocations: 295.8 kB / 1.427 GB, free: 8.961 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008848/1.574, allocations: 3.363 MB / 1.431 GB, free: 5.516 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/1.574, allocations: 4 kB / 1.431 GB, free: 5.512 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005939/1.575, allocations: 116 kB / 1.431 GB, free: 5.398 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/1.575, allocations: 109.3 kB / 1.431 GB, free: 5.289 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006012/1.581, allocations: 2.8 MB / 1.434 GB, free: 2.477 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.02147/1.602, allocations: 13.26 MB / 1.447 GB, free: 4.156 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003251/1.606, allocations: 1.693 MB / 1.448 GB, free: 2.457 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002026/1.608, allocations: 1.11 MB / 1.449 GB, free: 1.348 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005686/1.608, allocations: 332 kB / 1.45 GB, free: 0.9766 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.542e-05/1.608, allocations: 56.56 kB / 1.45 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of pre-optimization done (n=182): time 4.428e-06/1.608, allocations: 3.938 kB / 1.45 GB, free: 0.9102 MB / 1.045 GB Notification: Performance of matching and sorting (n=182): time 0.006384/1.615, allocations: 2.731 MB / 1.452 GB, free: 14.18 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/1.615, allocations: 77.34 kB / 1.452 GB, free: 14.09 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004041/1.619, allocations: 1.998 MB / 1.454 GB, free: 12.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0003746/1.619, allocations: 69.7 kB / 1.455 GB, free: 12 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001363/1.621, allocations: 1.402 MB / 1.456 GB, free: 10.58 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001065/1.622, allocations: 0.6446 MB / 1.457 GB, free: 9.941 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003999/1.622, allocations: 165.6 kB / 1.457 GB, free: 9.773 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.622, allocations: 305.1 kB / 1.457 GB, free: 9.473 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/1.624, allocations: 0.8121 MB / 1.458 GB, free: 8.656 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/1.626, allocations: 1.41 MB / 1.459 GB, free: 6.992 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003789/1.63, allocations: 2.252 MB / 1.461 GB, free: 4.562 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.356e-05/1.63, allocations: 4 kB / 1.461 GB, free: 4.559 MB / 1.061 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005231/1.635, allocations: 2.51 MB / 1.464 GB, free: 2.039 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004187/1.636, allocations: 493.2 kB / 1.464 GB, free: 1.371 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/1.636, allocations: 12 kB / 1.464 GB, free: 1.359 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.755e-05/1.636, allocations: 31.98 kB / 1.464 GB, free: 1.328 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/1.638, allocations: 0.5479 MB / 1.465 GB, free: 0.7812 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/1.641, allocations: 4.161 MB / 1.469 GB, free: 12.46 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/1.645, allocations: 397.8 kB / 1.469 GB, free: 12.07 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003876/1.646, allocations: 87.92 kB / 1.469 GB, free: 11.98 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/1.646, allocations: 4 kB / 1.469 GB, free: 11.98 MB / 1.076 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004625/1.65, allocations: 2.229 MB / 1.472 GB, free: 9.746 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/1.65, allocations: 12 kB / 1.472 GB, free: 9.734 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.511e-05/1.65, allocations: 27.94 kB / 1.472 GB, free: 9.707 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/1.652, allocations: 479.9 kB / 1.472 GB, free: 9.238 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-05/1.652, allocations: 31.86 kB / 1.472 GB, free: 9.207 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003654/1.656, allocations: 370 kB / 1.472 GB, free: 8.844 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/1.656, allocations: 91.98 kB / 1.473 GB, free: 8.754 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.002123/1.658, allocations: 0.8601 MB / 1.473 GB, free: 7.883 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.66, allocations: 276.7 kB / 1.474 GB, free: 7.609 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/1.664, allocations: 2.103 MB / 1.476 GB, free: 5.492 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/1.664, allocations: 23.98 kB / 1.476 GB, free: 5.469 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.664, allocations: 0 / 1.476 GB, free: 5.469 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002982/1.667, allocations: 1.894 MB / 1.478 GB, free: 3.523 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/1.678, allocations: 5.183 MB / 1.483 GB, free: 14.29 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/1.678, allocations: 8.031 kB / 1.483 GB, free: 14.28 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002362/1.681, allocations: 495.3 kB / 1.483 GB, free: 13.8 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.822e-05/1.681, allocations: 15.94 kB / 1.483 GB, free: 13.78 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/1.681, allocations: 55.97 kB / 1.483 GB, free: 13.73 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/1.683, allocations: 4.13 MB / 1.487 GB, free: 9.434 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.683, allocations: 4 kB / 1.487 GB, free: 9.43 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005654/1.689, allocations: 3.238 MB / 1.49 GB, free: 6.137 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/1.691, allocations: 0.5677 MB / 1.491 GB, free: 5.547 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007618/1.692, allocations: 43.98 kB / 1.491 GB, free: 5.504 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002869/1.695, allocations: 252.1 kB / 1.491 GB, free: 5.258 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/1.695, allocations: 117.7 kB / 1.491 GB, free: 5.145 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.695, allocations: 71.95 kB / 1.491 GB, free: 5.074 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002753/1.698, allocations: 1.334 MB / 1.493 GB, free: 3.73 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.5e-07/1.698, allocations: 0 / 1.493 GB, free: 3.73 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.005908/1.704, allocations: 1.718 MB / 1.494 GB, free: 2.008 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.0009882/1.705, allocations: 354.1 kB / 1.495 GB, free: 1.672 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.006984/1.712, allocations: 3.322 MB / 1.498 GB, free: 14.36 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.712, allocations: 320 / 1.498 GB, free: 14.36 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001974/1.714, allocations: 1.038 MB / 1.499 GB, free: 13.32 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01155/1.725, allocations: 1.593 MB / 1.5 GB, free: 11.74 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.741, allocations: 8.348 MB / 1.509 GB, free: 3.316 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002935/1.744, allocations: 2.205 MB / 1.511 GB, free: 1.078 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/1.746, allocations: 231.4 kB / 1.511 GB, free: 0.8555 MB / 1.107 GB Notification: Performance of SimCode: time 1.963e-06/1.746, allocations: 0 / 1.511 GB, free: 0.8555 MB / 1.107 GB Notification: Performance of Templates: time 0.1812/1.927, allocations: 140.6 MB / 1.648 GB, free: 4.375 MB / 1.248 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches