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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005858/0.005858, allocations: 99.36 kB / 15.73 MB, free: 6.043 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.001232/0.001232, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6644/0.6644, allocations: 91.19 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 75.88 kB / 0.5163 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1269, allocations: 67.69 MB / 0.5825 GB, free: 5.766 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.4239/0.5508, allocations: 140.5 MB / 0.7197 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003249/0.5541, allocations: 3.301 MB / 0.7229 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.5543, allocations: 15.88 kB / 0.7229 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004404/0.5548, allocations: 132.2 kB / 0.723 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.5553, allocations: 178.9 kB / 0.7232 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.5557, allocations: 199.2 kB / 0.7234 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.556, allocations: 338.5 kB / 0.7237 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.5561, allocations: 56.72 kB / 0.7238 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.5565, allocations: 211 kB / 0.724 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.5567, allocations: 119.4 kB / 0.7241 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.5567, allocations: 15.94 kB / 0.7241 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003894/0.5571, allocations: 255.5 kB / 0.7243 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.874e-05/0.5573, allocations: 43.78 kB / 0.7244 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.777e-05/0.5573, allocations: 107.3 kB / 0.7245 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.5577, allocations: 322.9 kB / 0.7248 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.5577, allocations: 0 / 0.7248 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5577, allocations: 0 / 0.7248 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.5577, allocations: 0 / 0.7248 GB, free: 6.727 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.0006413/0.5584, allocations: 0.5536 MB / 0.7253 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.5584, allocations: 8.031 kB / 0.7253 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.5585, allocations: 42.73 kB / 0.7254 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.5585, allocations: 36.56 kB / 0.7254 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.559, allocations: 352 kB / 0.7257 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.559, allocations: 8.609 kB / 0.7258 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.559, allocations: 16.47 kB / 0.7258 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.5593, allocations: 162.5 kB / 0.7259 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.5593, allocations: 3.188 kB / 0.7259 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.5593, allocations: 4 kB / 0.7259 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.5593, allocations: 4 kB / 0.7259 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.5594, allocations: 71.89 kB / 0.726 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.5601, allocations: 0.731 MB / 0.7267 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.5602, allocations: 81.02 kB / 0.7268 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.103e-05/0.5603, allocations: 37.89 kB / 0.7268 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.5604, allocations: 162.2 kB / 0.727 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.5604, allocations: 46.5 kB / 0.727 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.5605, allocations: 0 / 0.727 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0007031/0.5612, allocations: 329.1 kB / 0.7273 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.5612, allocations: 77.11 kB / 0.7274 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.5615, allocations: 317.7 kB / 0.7277 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.5615, allocations: 33.7 kB / 0.7278 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.5616, allocations: 156.1 kB / 0.7279 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.5616, allocations: 27.56 kB / 0.7279 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.5617, allocations: 25.7 kB / 0.728 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.5618, allocations: 338.8 kB / 0.7283 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.813e-05/0.5618, allocations: 19.98 kB / 0.7283 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.08e-05/0.5619, allocations: 51.38 kB / 0.7283 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.872e-05/0.562, allocations: 71.55 kB / 0.7284 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.562, allocations: 0 / 0.7284 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002217/0.5622, allocations: 155.3 kB / 0.7286 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.5622, allocations: 18.19 kB / 0.7286 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.5622, allocations: 0 / 0.7286 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.5624, allocations: 45.62 kB / 0.7286 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.397e-05/0.5625, allocations: 8 kB / 0.7286 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.5642, allocations: 2.763 MB / 0.7313 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.918e-05/0.5642, allocations: 11.88 kB / 0.7313 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.5643, allocations: 4 kB / 0.7313 GB, free: 15.35 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 9.736e-05/0.5644, allocations: 146.5 kB / 0.7315 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.5644, allocations: 32.44 kB / 0.7315 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002515/0.5647, allocations: 151.3 kB / 0.7317 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5647, allocations: 4 kB / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5647, allocations: 0 / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.5647, allocations: 7.938 kB / 0.7317 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.5653, allocations: 0.5166 MB / 0.7322 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.5653, allocations: 4.094 kB / 0.7322 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.903e-05/0.5653, allocations: 9.5 kB / 0.7322 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.5654, allocations: 53.7 kB / 0.7322 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.5654, allocations: 3.984 kB / 0.7322 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.5669, allocations: 2.76 MB / 0.7349 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5669, allocations: 0 / 0.7349 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003845/0.5673, allocations: 333.9 kB / 0.7353 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.5674, allocations: 104.8 kB / 0.7354 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.5674, allocations: 4 kB / 0.7354 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.5675, allocations: 0 / 0.7354 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.311e-05/0.5676, allocations: 15.92 kB / 0.7354 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-06/0.5676, allocations: 8.062 kB / 0.7354 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001851/0.5678, allocations: 231.2 kB / 0.7356 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5678, allocations: 0 / 0.7356 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003324/0.5681, allocations: 43.94 kB / 0.7356 GB, free: 10.51 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.0005845/0.5687, allocations: 0.9235 MB / 0.7365 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003634/0.5691, allocations: 293.2 kB / 0.7368 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5691, allocations: 0 / 0.7368 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.5693, allocations: 249.4 kB / 0.7371 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.5699, allocations: 69.73 kB / 0.7371 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.5725, allocations: 2.605 MB / 0.7397 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.5728, allocations: 0.7557 MB / 0.7404 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.979e-05/0.5729, allocations: 34.97 kB / 0.7404 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.573, allocations: 83.41 kB / 0.7405 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/0.573, allocations: 0 / 0.7405 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4526/1.026, allocations: 6.734 MB / 0.7471 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.785/10.81, allocations: 6.125 kB / 0.7471 GB, free: 14.68 MB / 0.5919 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches