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.001329/0.001329, allocations: 108 kB / 15.61 MB, free: 152 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.001353/0.001353, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6841/0.6841, allocations: 91.21 MB / 381.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002833/0.002833, allocations: 77.69 kB / 460.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1237, allocations: 67.69 MB / 0.5157 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.3809/0.5046, allocations: 140.5 MB / 0.6529 GB, free: 9.516 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.5081, allocations: 3.298 MB / 0.6562 GB, free: 6.844 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.5084, allocations: 18.53 kB / 0.6562 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005333/0.5089, allocations: 144.3 kB / 0.6563 GB, free: 6.719 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.5094, allocations: 170.4 kB / 0.6565 GB, free: 6.578 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.5098, allocations: 199.1 kB / 0.6567 GB, free: 6.43 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003093/0.5102, allocations: 336.5 kB / 0.657 GB, free: 6.234 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.5103, allocations: 64.8 kB / 0.657 GB, free: 6.199 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000395/0.5107, allocations: 203.4 kB / 0.6572 GB, free: 6.07 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.5109, allocations: 114.6 kB / 0.6573 GB, free: 6.004 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.5109, allocations: 10.09 kB / 0.6574 GB, free: 6.004 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.5114, allocations: 257.5 kB / 0.6576 GB, free: 5.895 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.632e-05/0.5114, allocations: 40.88 kB / 0.6576 GB, free: 5.859 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.716e-05/0.5115, allocations: 107.9 kB / 0.6577 GB, free: 5.785 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004115/0.5119, allocations: 310.4 kB / 0.658 GB, free: 5.594 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.512, allocations: 0 / 0.658 GB, free: 5.594 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.512, allocations: 0 / 0.658 GB, free: 5.594 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.371e-06/0.512, allocations: 1.375 kB / 0.658 GB, free: 5.594 MB / 478.1 MB 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.0006901/0.5127, allocations: 0.5495 MB / 0.6586 GB, free: 5.074 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.5127, allocations: 9.469 kB / 0.6586 GB, free: 5.074 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.5128, allocations: 42.14 kB / 0.6586 GB, free: 5.027 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.886e-05/0.5128, allocations: 31.5 kB / 0.6587 GB, free: 5.012 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.5132, allocations: 329.1 kB / 0.659 GB, free: 4.703 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.5132, allocations: 13.73 kB / 0.659 GB, free: 4.695 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.5133, allocations: 11.91 kB / 0.659 GB, free: 4.691 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.5135, allocations: 160.2 kB / 0.6591 GB, free: 4.562 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.5135, allocations: 0 / 0.6591 GB, free: 4.562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.5135, allocations: 5.469 kB / 0.6592 GB, free: 4.559 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.5135, allocations: 2.781 kB / 0.6592 GB, free: 4.559 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.5137, allocations: 72.47 kB / 0.6592 GB, free: 4.523 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.5145, allocations: 0.7341 MB / 0.6599 GB, free: 3.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.5146, allocations: 84.39 kB / 0.66 GB, free: 3.746 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.572e-05/0.5147, allocations: 37.05 kB / 0.6601 GB, free: 3.719 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.5148, allocations: 162.9 kB / 0.6602 GB, free: 3.527 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.5149, allocations: 45.31 kB / 0.6603 GB, free: 3.477 MB / 478.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.5149, allocations: 0 / 0.6603 GB, free: 3.477 MB / 478.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006686/0.5155, allocations: 327.9 kB / 0.6606 GB, free: 3.176 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.5156, allocations: 79.23 kB / 0.6606 GB, free: 3.082 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.5159, allocations: 315.3 kB / 0.6609 GB, free: 2.879 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.516, allocations: 33.7 kB / 0.661 GB, free: 2.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.5161, allocations: 160.3 kB / 0.6611 GB, free: 2.691 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.5161, allocations: 28.28 kB / 0.6612 GB, free: 2.668 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.5162, allocations: 27.05 kB / 0.6612 GB, free: 2.641 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5163, allocations: 337.7 kB / 0.6615 GB, free: 2.309 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.5164, allocations: 18.8 kB / 0.6615 GB, free: 2.301 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.779e-05/0.5164, allocations: 54.25 kB / 0.6616 GB, free: 2.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.5166, allocations: 76.55 kB / 0.6616 GB, free: 2.188 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5166, allocations: 0 / 0.6616 GB, free: 2.188 MB / 478.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002604/0.5168, allocations: 148.9 kB / 0.6618 GB, free: 2.086 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5169, allocations: 12.75 kB / 0.6618 GB, free: 2.078 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5169, allocations: 6.5 kB / 0.6618 GB, free: 2.074 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.5171, allocations: 41.41 kB / 0.6618 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.163e-05/0.5172, allocations: 10.12 kB / 0.6619 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00199/0.5192, allocations: 2.762 MB / 0.6646 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.985e-05/0.5193, allocations: 13.09 kB / 0.6646 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.5193, allocations: 5.281 kB / 0.6646 GB, free: 15.14 MB / 494.1 MB 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.0001222/0.5194, allocations: 136.8 kB / 0.6647 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.5195, allocations: 32.5 kB / 0.6647 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/0.5198, allocations: 161.7 kB / 0.6649 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.5198, allocations: 3.938 kB / 0.6649 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.5198, allocations: 7.156 kB / 0.6649 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.5198, allocations: 0 / 0.6649 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005009/0.5203, allocations: 0.53 MB / 0.6654 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5203, allocations: 0 / 0.6654 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.949e-05/0.5204, allocations: 8.703 kB / 0.6654 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.5205, allocations: 36.92 kB / 0.6655 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.5205, allocations: 6.672 kB / 0.6655 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001811/0.5223, allocations: 2.764 MB / 0.6682 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5224, allocations: 0 / 0.6682 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.5227, allocations: 337 kB / 0.6685 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.5228, allocations: 100.7 kB / 0.6686 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.5228, allocations: 2.125 kB / 0.6686 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.5229, allocations: 2.219 kB / 0.6686 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.5229, allocations: 10.95 kB / 0.6686 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.523, allocations: 6.719 kB / 0.6686 GB, free: 10.97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.5232, allocations: 232.5 kB / 0.6688 GB, free: 10.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5232, allocations: 4 kB / 0.6688 GB, free: 10.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003802/0.5236, allocations: 49.72 kB / 0.6689 GB, free: 10.8 MB / 494.1 MB 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.0006877/0.5243, allocations: 0.9226 MB / 0.6698 GB, free: 9.938 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.5247, allocations: 282.6 kB / 0.67 GB, free: 9.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5247, allocations: 4.125 kB / 0.6701 GB, free: 9.676 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002437/0.5249, allocations: 248.8 kB / 0.6703 GB, free: 9.434 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/0.5256, allocations: 70.3 kB / 0.6704 GB, free: 9.398 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.5283, allocations: 2.627 MB / 0.6729 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.5287, allocations: 0.7501 MB / 0.6737 GB, free: 6.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.791e-05/0.5288, allocations: 33.03 kB / 0.6737 GB, free: 6.566 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.382e-05/0.5289, allocations: 75.59 kB / 0.6738 GB, free: 6.504 MB / 494.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5289, allocations: 0 / 0.6738 GB, free: 6.504 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.5551, allocations: 6.543 MB / 0.6801 GB, free: 3.266 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.387/9.942, allocations: 4 kB / 0.6802 GB, free: 3.262 MB / 494.1 MB (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