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.001731/0.00173, allocations: 110 kB / 16.41 MB, free: 6.461 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.002302/0.002302, allocations: 192.2 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.042/3.042, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.164/5.164, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002541/0.002541, allocations: 71.89 kB / 1.055 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.264/1.266, allocations: 157.4 MB / 1.208 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.5923/1.859, allocations: 305.2 MB / 1.506 GB, free: 11.3 MB / 1.232 GB Notification: Performance of NFInst.instExpressions: time 0.06933/1.928, allocations: 25.82 MB / 1.532 GB, free: 1.41 MB / 1.248 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006929/1.935, allocations: 127.2 kB / 1.532 GB, free: 1.285 MB / 1.248 GB Notification: Performance of NFTyping.typeComponents: time 0.009167/1.944, allocations: 1.79 MB / 1.534 GB, free: 15.48 MB / 1.264 GB Notification: Performance of NFTyping.typeBindings: time 0.03125/1.976, allocations: 5.966 MB / 1.539 GB, free: 9.496 MB / 1.264 GB Notification: Performance of NFTyping.typeClassSections: time 0.01477/1.99, allocations: 2.649 MB / 1.542 GB, free: 6.863 MB / 1.264 GB Notification: Performance of NFFlatten.flatten: time 0.02426/2.015, allocations: 8.899 MB / 1.551 GB, free: 13.94 MB / 1.279 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01077/2.026, allocations: 3.624 MB / 1.554 GB, free: 10.23 MB / 1.279 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02006/2.046, allocations: 4.216 MB / 1.558 GB, free: 6.047 MB / 1.279 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009265/2.055, allocations: 2.955 MB / 1.561 GB, free: 3.094 MB / 1.279 GB Notification: Performance of NFPackage.collectConstants: time 0.002515/2.057, allocations: 364 kB / 1.561 GB, free: 2.738 MB / 1.279 GB Notification: Performance of NFFlatten.collectFunctions: time 1.276/3.334, allocations: 4.596 MB / 1.566 GB, free: 16.53 MB / 1.279 GB Notification: Performance of NFScalarize.scalarize: time 0.005553/3.339, allocations: 1.642 MB / 1.568 GB, free: 16.53 MB / 1.279 GB Notification: Performance of NFVerifyModel.verify: time 0.01143/3.351, allocations: 2.131 MB / 1.57 GB, free: 16.53 MB / 1.279 GB Notification: Performance of NFConvertDAE.convert: time 0.02971/3.381, allocations: 6.742 MB / 1.576 GB, free: 16.36 MB / 1.279 GB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/3.381, allocations: 0 / 1.576 GB, free: 16.36 MB / 1.279 GB Notification: Performance of FrontEnd: time 2.244e-06/3.381, allocations: 0 / 1.576 GB, free: 16.36 MB / 1.279 GB Notification: Performance of Transformations before backend: time 0.0002408/3.381, allocations: 1.375 kB / 1.576 GB, free: 16.36 MB / 1.279 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.01924/3.4, allocations: 4.167 MB / 1.58 GB, free: 14.67 MB / 1.279 GB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/3.4, allocations: 11.47 kB / 1.58 GB, free: 14.67 MB / 1.279 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/3.415, allocations: 0.9367 MB / 1.581 GB, free: 14.47 MB / 1.279 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/3.426, allocations: 2.395 MB / 1.584 GB, free: 13.84 MB / 1.279 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004265/3.426, allocations: 274.9 kB / 1.584 GB, free: 13.77 MB / 1.279 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001791/3.428, allocations: 291.2 kB / 1.584 GB, free: 13.77 MB / 1.279 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/3.441, allocations: 3.359 MB / 1.587 GB, free: 13.51 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/3.441, allocations: 3.594 kB / 1.587 GB, free: 13.51 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005296/3.442, allocations: 113.9 kB / 1.588 GB, free: 13.51 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/3.442, allocations: 113.2 kB / 1.588 GB, free: 13.5 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009367/3.451, allocations: 2.8 MB / 1.59 GB, free: 13.47 MB / 1.279 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.0297/3.481, allocations: 13.26 MB / 1.603 GB, free: 22.25 MB / 1.295 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005043/3.486, allocations: 1.68 MB / 1.605 GB, free: 22.2 MB / 1.295 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002909/3.489, allocations: 1.109 MB / 1.606 GB, free: 22.18 MB / 1.295 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008803/3.49, allocations: 325.5 kB / 1.606 GB, free: 21.9 MB / 1.295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.995e-05/3.49, allocations: 64.17 kB / 1.606 GB, free: 21.86 MB / 1.295 GB Notification: Performance of pre-optimization done (n=182): time 9.257e-06/3.49, allocations: 0.9688 kB / 1.606 GB, free: 21.86 MB / 1.295 GB Notification: Performance of matching and sorting (n=182): time 0.01081/3.501, allocations: 2.731 MB / 1.609 GB, free: 21.64 MB / 1.295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/3.501, allocations: 73.12 kB / 1.609 GB, free: 21.57 MB / 1.295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004938/3.506, allocations: 1.995 MB / 1.611 GB, free: 21.35 MB / 1.295 GB Notification: Performance of collectPreVariables (initialization): time 0.0008106/3.507, allocations: 70.58 kB / 1.611 GB, free: 21.32 MB / 1.295 GB Notification: Performance of collectInitialEqns (initialization): time 0.001728/3.509, allocations: 1.409 MB / 1.613 GB, free: 20.79 MB / 1.295 GB Notification: Performance of collectInitialBindings (initialization): time 0.001472/3.51, allocations: 0.6349 MB / 1.613 GB, free: 20.37 MB / 1.295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/3.511, allocations: 396.7 kB / 1.614 GB, free: 20.34 MB / 1.295 GB Notification: Performance of setup shared object (initialization): time 0.0001383/3.511, allocations: 301.1 kB / 1.614 GB, free: 20.04 MB / 1.295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/3.514, allocations: 0.8135 MB / 1.615 GB, free: 20.02 MB / 1.295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/3.517, allocations: 1.407 MB / 1.616 GB, free: 19.36 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006303/3.523, allocations: 2.252 MB / 1.618 GB, free: 18.87 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.811e-05/3.523, allocations: 8.438 kB / 1.618 GB, free: 18.87 MB / 1.295 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008273/3.532, allocations: 2.504 MB / 1.621 GB, free: 18.66 MB / 1.295 GB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/3.532, allocations: 11.81 kB / 1.621 GB, free: 18.66 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/3.532, allocations: 13.38 kB / 1.621 GB, free: 18.66 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.435e-05/3.532, allocations: 25.44 kB / 1.621 GB, free: 18.66 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004534/3.536, allocations: 0.5603 MB / 1.621 GB, free: 18.65 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/3.54, allocations: 4.15 MB / 1.625 GB, free: 14.56 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005475/3.545, allocations: 219 kB / 1.626 GB, free: 14.46 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005148/3.546, allocations: 87.81 kB / 1.626 GB, free: 14.46 MB / 1.295 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005123/3.551, allocations: 1.466 MB / 1.627 GB, free: 14.37 MB / 1.295 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003072/3.554, allocations: 1.401 MB / 1.628 GB, free: 13.72 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005909/3.56, allocations: 2.236 MB / 1.631 GB, free: 13.22 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.819e-05/3.56, allocations: 3.406 kB / 1.631 GB, free: 13.22 MB / 1.295 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.007969/3.568, allocations: 2.477 MB / 1.633 GB, free: 13.01 MB / 1.295 GB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/3.568, allocations: 11.22 kB / 1.633 GB, free: 13.01 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/3.568, allocations: 13.62 kB / 1.633 GB, free: 13.01 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.175e-05/3.568, allocations: 23.94 kB / 1.633 GB, free: 13.01 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003627/3.572, allocations: 476.2 kB / 1.633 GB, free: 13.01 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.928e-05/3.572, allocations: 32.05 kB / 1.634 GB, free: 13.01 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005589/3.578, allocations: 188.8 kB / 1.634 GB, free: 12.94 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005368/3.578, allocations: 84.66 kB / 1.634 GB, free: 12.94 MB / 1.295 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.001157/3.579, allocations: 321 kB / 1.634 GB, free: 12.75 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/3.581, allocations: 267.8 kB / 1.634 GB, free: 12.62 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006505/3.587, allocations: 2.103 MB / 1.636 GB, free: 12.5 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005152/3.592, allocations: 1.887 MB / 1.638 GB, free: 12.2 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/3.593, allocations: 0.875 kB / 1.638 GB, free: 12.2 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002965/3.596, allocations: 0.5576 MB / 1.639 GB, free: 11.95 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001212/3.597, allocations: 47.33 kB / 1.639 GB, free: 11.94 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004048/3.601, allocations: 85.2 kB / 1.639 GB, free: 11.94 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000448/3.601, allocations: 101.2 kB / 1.639 GB, free: 11.93 MB / 1.295 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008786/3.61, allocations: 2.353 MB / 1.641 GB, free: 11.72 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008367/3.619, allocations: 3.304 MB / 1.645 GB, free: 11.3 MB / 1.295 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002362/3.621, allocations: 0.9158 MB / 1.645 GB, free: 11.29 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.003819/3.625, allocations: 1.341 MB / 1.647 GB, free: 11.14 MB / 1.295 GB Notification: Performance of Backend: time 1.983e-06/3.625, allocations: 1.203 kB / 1.647 GB, free: 11.14 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.01531/3.64, allocations: 3.559 MB / 1.65 GB, free: 10.89 MB / 1.295 GB Notification: Performance of SimCode: time 0.02662/3.667, allocations: 7.436 MB / 1.657 GB, free: 7.586 MB / 1.295 GB Notification: Performance of Templates: time 0.2177/3.885, allocations: 70.51 MB / 1.726 GB, free: 15.86 MB / 1.342 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