Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006402/0.006402, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001136/0.001136, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6783/0.6783, allocations: 91.2 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 91.84 kB / 0.5168 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1578, allocations: 67.69 MB / 0.5829 GB, free: 5.254 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.5488/0.7066, allocations: 140.5 MB / 0.7202 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003349/0.71, allocations: 3.293 MB / 0.7234 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.7103, allocations: 15.88 kB / 0.7234 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005288/0.7108, allocations: 131.1 kB / 0.7235 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004273/0.7113, allocations: 182.9 kB / 0.7237 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.7118, allocations: 195.2 kB / 0.7239 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.7122, allocations: 334.6 kB / 0.7242 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.7124, allocations: 64.64 kB / 0.7243 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004633/0.7128, allocations: 207 kB / 0.7244 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.713, allocations: 115.4 kB / 0.7246 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.713, allocations: 9.5 kB / 0.7246 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004617/0.7135, allocations: 267.5 kB / 0.7248 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.887e-05/0.7136, allocations: 35.84 kB / 0.7249 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.503e-05/0.7137, allocations: 103.3 kB / 0.725 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004968/0.7142, allocations: 319.3 kB / 0.7253 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.7142, allocations: 4 kB / 0.7253 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7142, allocations: 3.938 kB / 0.7253 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.7142, allocations: 0 / 0.7253 GB, free: 6.422 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008405/0.7151, allocations: 0.5644 MB / 0.7258 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.7152, allocations: 8.031 kB / 0.7258 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.221e-05/0.7152, allocations: 32.75 kB / 0.7259 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.7158, allocations: 360.2 kB / 0.7262 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.7158, allocations: 8.609 kB / 0.7262 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.7158, allocations: 12.38 kB / 0.7262 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.7161, allocations: 162.9 kB / 0.7264 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.7161, allocations: 0 / 0.7264 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.7161, allocations: 7.938 kB / 0.7264 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.7161, allocations: 4 kB / 0.7264 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.7163, allocations: 71.91 kB / 0.7265 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.717, allocations: 0.735 MB / 0.7272 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.7172, allocations: 77.16 kB / 0.7272 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.7172, allocations: 37.72 kB / 0.7273 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.7174, allocations: 166.3 kB / 0.7274 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.7174, allocations: 38.5 kB / 0.7275 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.7174, allocations: 0 / 0.7275 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0006553/0.7181, allocations: 333.6 kB / 0.7278 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.7181, allocations: 85.05 kB / 0.7279 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.7184, allocations: 313.7 kB / 0.7282 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.7185, allocations: 25.7 kB / 0.7282 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.7186, allocations: 164.1 kB / 0.7284 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.7186, allocations: 31.73 kB / 0.7284 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.7186, allocations: 17.72 kB / 0.7284 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.7188, allocations: 342.8 kB / 0.7287 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.528e-05/0.7188, allocations: 31.92 kB / 0.7288 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.623e-05/0.7189, allocations: 43.42 kB / 0.7288 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.872e-05/0.719, allocations: 75.41 kB / 0.7289 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.719, allocations: 0 / 0.7289 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002597/0.7193, allocations: 155.2 kB / 0.729 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.7193, allocations: 13.44 kB / 0.729 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.7193, allocations: 7.984 kB / 0.729 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.7195, allocations: 37.7 kB / 0.7291 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.538e-05/0.7196, allocations: 8 kB / 0.7291 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.7215, allocations: 2.769 MB / 0.7318 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.471e-05/0.7216, allocations: 16.05 kB / 0.7318 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.7216, allocations: 4 kB / 0.7318 GB, free: 15.07 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.7217, allocations: 137.7 kB / 0.7319 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/0.7218, allocations: 35.75 kB / 0.732 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.722, allocations: 151.5 kB / 0.7321 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.7221, allocations: 3.938 kB / 0.7321 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.7221, allocations: 4 kB / 0.7321 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7221, allocations: 0 / 0.7321 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004878/0.7226, allocations: 0.5205 MB / 0.7326 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.7226, allocations: 12.06 kB / 0.7326 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.707e-05/0.7226, allocations: 4 kB / 0.7327 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.7227, allocations: 37.69 kB / 0.7327 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.7227, allocations: 4 kB / 0.7327 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001681/0.7244, allocations: 2.762 MB / 0.7354 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7244, allocations: 0.875 kB / 0.7354 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.7248, allocations: 342.1 kB / 0.7357 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.83e-05/0.7248, allocations: 101 kB / 0.7358 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.7249, allocations: 15.92 kB / 0.7358 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.725, allocations: 7.875 kB / 0.7358 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.299e-05/0.725, allocations: 11.88 kB / 0.7358 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.725, allocations: 4 kB / 0.7359 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002205/0.7253, allocations: 235.2 kB / 0.7361 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7253, allocations: 0 / 0.7361 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000361/0.7256, allocations: 40 kB / 0.7361 GB, free: 10.23 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.m_flow) * 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 (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002234/0.7259, allocations: 163.1 kB / 0.7363 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004165/0.7263, allocations: 281.3 kB / 0.7365 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.7263, allocations: 0 / 0.7365 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.7265, allocations: 257.6 kB / 0.7368 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.7271, allocations: 57.91 kB / 0.7368 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000898/0.728, allocations: 0.5659 MB / 0.7374 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.7283, allocations: 0.7558 MB / 0.7381 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.566e-05/0.7284, allocations: 26.28 kB / 0.7382 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.7284, allocations: 27.38 kB / 0.7382 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/0.7284, allocations: 0 / 0.7382 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of Templates: time 0.007058/0.7355, allocations: 3.396 MB / 0.7415 GB, free: 4.633 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches