Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001275/0.001275, allocations: 110.1 kB / 16.42 MB, free: 6.465 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.0009853/0.0009853, allocations: 189.5 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 1.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.405/2.405, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.89 kB / 1.019 GB, free: 9.363 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6987/0.7, allocations: 151.6 MB / 1.167 GB, free: 3.98 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.2906/0.9906, allocations: 305.1 MB / 1.465 GB, free: 1.719 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.03336/1.024, allocations: 25.82 MB / 1.491 GB, free: 7.824 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003773/1.028, allocations: 127.2 kB / 1.491 GB, free: 7.699 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.005174/1.033, allocations: 1.864 MB / 1.492 GB, free: 5.824 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.01465/1.048, allocations: 6.19 MB / 1.499 GB, free: 15.61 MB / 1.232 GB Notification: Performance of NFTyping.typeClassSections: time 0.007372/1.055, allocations: 2.652 MB / 1.501 GB, free: 12.98 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.01155/1.067, allocations: 8.914 MB / 1.51 GB, free: 4.043 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005388/1.072, allocations: 3.624 MB / 1.513 GB, free: 340 kB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0103/1.082, allocations: 4.259 MB / 1.518 GB, free: 12.1 MB / 1.248 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005361/1.088, allocations: 2.96 MB / 1.52 GB, free: 9.141 MB / 1.248 GB Notification: Performance of NFPackage.collectConstants: time 0.001138/1.089, allocations: 360 kB / 1.521 GB, free: 8.789 MB / 1.248 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009332/1.098, allocations: 4.63 MB / 1.525 GB, free: 4.148 MB / 1.248 GB Notification: Performance of NFScalarize.scalarize: time 0.002284/1.101, allocations: 1.637 MB / 1.527 GB, free: 2.508 MB / 1.248 GB Notification: Performance of NFVerifyModel.verify: time 0.004186/1.105, allocations: 2.131 MB / 1.529 GB, free: 376 kB / 1.248 GB Notification: Performance of NFConvertDAE.convert: time 0.01229/1.117, allocations: 6.763 MB / 1.536 GB, free: 9.582 MB / 1.264 GB Notification: Performance of FrontEnd - DAE generated: time 8.076e-06/1.117, allocations: 11.92 kB / 1.536 GB, free: 9.57 MB / 1.264 GB Notification: Performance of FrontEnd: time 1.894e-06/1.117, allocations: 4 kB / 1.536 GB, free: 9.566 MB / 1.264 GB Notification: Performance of Transformations before backend: time 0.0001058/1.117, allocations: 0 / 1.536 GB, free: 9.566 MB / 1.264 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.007519/1.125, allocations: 4.287 MB / 1.54 GB, free: 5.203 MB / 1.264 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/1.125, allocations: 8.031 kB / 1.54 GB, free: 5.195 MB / 1.264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005759/1.131, allocations: 0.9616 MB / 1.541 GB, free: 4.23 MB / 1.264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/1.135, allocations: 2.403 MB / 1.543 GB, free: 1.754 MB / 1.264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/1.135, allocations: 285.1 kB / 1.543 GB, free: 1.461 MB / 1.264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004206/1.136, allocations: 288 kB / 1.544 GB, free: 1.18 MB / 1.264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00522/1.141, allocations: 3.355 MB / 1.547 GB, free: 13.74 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.597e-05/1.141, allocations: 3.953 kB / 1.547 GB, free: 13.73 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/1.141, allocations: 120 kB / 1.547 GB, free: 13.62 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/1.141, allocations: 117.3 kB / 1.547 GB, free: 13.5 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004218/1.146, allocations: 2.796 MB / 1.55 GB, free: 10.69 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.5952/1.741, allocations: 13.28 MB / 1.563 GB, free: 383 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002879/1.744, allocations: 1.683 MB / 1.564 GB, free: 382.4 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/1.745, allocations: 1.11 MB / 1.566 GB, free: 382 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004102/1.746, allocations: 329.4 kB / 1.566 GB, free: 381.7 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/1.746, allocations: 58.91 kB / 1.566 GB, free: 381.7 MB / 1.279 GB Notification: Performance of pre-optimization done (n=182): time 4.127e-06/1.746, allocations: 0 / 1.566 GB, free: 381.7 MB / 1.279 GB Notification: Performance of matching and sorting (n=182): time 0.004516/1.75, allocations: 2.747 MB / 1.569 GB, free: 380.8 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/1.75, allocations: 73.19 kB / 1.569 GB, free: 380.7 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002374/1.753, allocations: 1.999 MB / 1.571 GB, free: 380 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.0001928/1.753, allocations: 69.48 kB / 1.571 GB, free: 380 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007483/1.754, allocations: 1.434 MB / 1.572 GB, free: 379.1 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/1.754, allocations: 0.6695 MB / 1.573 GB, free: 378.7 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/1.755, allocations: 400.2 kB / 1.573 GB, free: 378.5 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 3.282e-05/1.755, allocations: 304.5 kB / 1.573 GB, free: 378.2 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/1.756, allocations: 0.818 MB / 1.574 GB, free: 377.9 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/1.757, allocations: 1.403 MB / 1.576 GB, free: 376.9 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/1.759, allocations: 2.25 MB / 1.578 GB, free: 375.7 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/1.759, allocations: 7.281 kB / 1.578 GB, free: 375.7 MB / 1.279 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00326/1.763, allocations: 2.519 MB / 1.58 GB, free: 374.7 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/1.763, allocations: 10.97 kB / 1.58 GB, free: 374.7 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/1.763, allocations: 13.94 kB / 1.58 GB, free: 374.7 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/1.763, allocations: 22.84 kB / 1.58 GB, free: 374.7 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/1.765, allocations: 0.5565 MB / 1.581 GB, free: 374.7 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/1.766, allocations: 4.156 MB / 1.585 GB, free: 370.5 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/1.769, allocations: 219.7 kB / 1.585 GB, free: 370.4 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/1.769, allocations: 90.41 kB / 1.585 GB, free: 370.4 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002006/1.771, allocations: 1.462 MB / 1.587 GB, free: 369.8 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001251/1.772, allocations: 1.398 MB / 1.588 GB, free: 368.6 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002339/1.774, allocations: 2.241 MB / 1.59 GB, free: 366.3 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.573e-06/1.774, allocations: 4 kB / 1.59 GB, free: 366.3 MB / 1.279 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.003166/1.778, allocations: 2.494 MB / 1.593 GB, free: 363.8 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/1.778, allocations: 14.5 kB / 1.593 GB, free: 363.8 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/1.778, allocations: 12 kB / 1.593 GB, free: 363.8 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.778, allocations: 31.69 kB / 1.593 GB, free: 363.8 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/1.779, allocations: 469 kB / 1.593 GB, free: 363.3 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.536e-05/1.779, allocations: 31.92 kB / 1.593 GB, free: 363.3 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002383/1.782, allocations: 197.8 kB / 1.593 GB, free: 363.1 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/1.782, allocations: 84 kB / 1.593 GB, free: 363 MB / 1.279 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.0004275/1.782, allocations: 311.8 kB / 1.594 GB, free: 362.7 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/1.783, allocations: 286.2 kB / 1.594 GB, free: 362.5 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/1.786, allocations: 2.113 MB / 1.596 GB, free: 360.3 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002045/1.788, allocations: 1.883 MB / 1.598 GB, free: 358.4 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.788, allocations: 2.188 kB / 1.598 GB, free: 358.4 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009527/1.789, allocations: 0.5742 MB / 1.598 GB, free: 357.8 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/1.789, allocations: 40 kB / 1.598 GB, free: 357.8 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/1.791, allocations: 82.97 kB / 1.599 GB, free: 357.7 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/1.791, allocations: 101.9 kB / 1.599 GB, free: 357.6 MB / 1.279 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003952/1.795, allocations: 2.364 MB / 1.601 GB, free: 355.3 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003496/1.798, allocations: 3.311 MB / 1.604 GB, free: 351.9 MB / 1.279 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009317/1.799, allocations: 0.9213 MB / 1.605 GB, free: 351 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001452/1.801, allocations: 1.33 MB / 1.606 GB, free: 349.7 MB / 1.279 GB Notification: Performance of Backend: time 4.21e-07/1.801, allocations: 0 / 1.606 GB, free: 349.7 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.006408/1.807, allocations: 3.569 MB / 1.61 GB, free: 346.4 MB / 1.279 GB Notification: Performance of SimCode: time 0.01023/1.817, allocations: 7.557 MB / 1.617 GB, free: 339 MB / 1.279 GB Notification: Performance of Templates: time 0.08454/1.902, allocations: 69.25 MB / 1.685 GB, free: 270.4 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches