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.00164/0.00164, allocations: 108 kB / 15.61 MB, free: 148 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.001868/0.001868, allocations: 194.4 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6589/0.6589, allocations: 91.2 MB / 381.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 80.08 kB / 460.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1164, allocations: 67.69 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.4018/0.5182, allocations: 140.5 MB / 0.6529 GB, free: 9.496 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.5214, allocations: 3.303 MB / 0.6562 GB, free: 6.82 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.5216, allocations: 21.53 kB / 0.6562 GB, free: 6.809 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004351/0.5221, allocations: 137.8 kB / 0.6563 GB, free: 6.695 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003758/0.5225, allocations: 170.5 kB / 0.6565 GB, free: 6.555 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.5229, allocations: 201 kB / 0.6567 GB, free: 6.402 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003055/0.5232, allocations: 334.9 kB / 0.657 GB, free: 6.211 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.5234, allocations: 64.33 kB / 0.657 GB, free: 6.176 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003853/0.5238, allocations: 204 kB / 0.6572 GB, free: 6.047 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.5239, allocations: 116.5 kB / 0.6573 GB, free: 5.98 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.524, allocations: 8.219 kB / 0.6574 GB, free: 5.98 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004426/0.5244, allocations: 254.8 kB / 0.6576 GB, free: 5.871 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.5245, allocations: 38.53 kB / 0.6576 GB, free: 5.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.5246, allocations: 112.5 kB / 0.6577 GB, free: 5.762 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.5251, allocations: 310.2 kB / 0.658 GB, free: 5.57 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.5251, allocations: 0 / 0.658 GB, free: 5.57 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.5251, allocations: 0 / 0.658 GB, free: 5.57 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.5251, allocations: 1.219 kB / 0.658 GB, free: 5.57 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.0007759/0.5259, allocations: 0.5506 MB / 0.6586 GB, free: 5.051 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.5259, allocations: 8.562 kB / 0.6586 GB, free: 5.051 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.491e-05/0.526, allocations: 47.08 kB / 0.6586 GB, free: 5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.5261, allocations: 30.69 kB / 0.6587 GB, free: 4.984 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.5265, allocations: 329.5 kB / 0.659 GB, free: 4.676 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.5265, allocations: 12.39 kB / 0.659 GB, free: 4.668 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.5266, allocations: 12.38 kB / 0.659 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.5268, allocations: 151.8 kB / 0.6591 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.5269, allocations: 1.875 kB / 0.6591 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.5269, allocations: 4 kB / 0.6591 GB, free: 4.539 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5269, allocations: 3.688 kB / 0.6591 GB, free: 4.539 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.527, allocations: 79.25 kB / 0.6592 GB, free: 4.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008391/0.5279, allocations: 0.7343 MB / 0.6599 GB, free: 3.797 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.528, allocations: 77.58 kB / 0.66 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/0.5281, allocations: 37.02 kB / 0.66 GB, free: 3.699 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001578/0.5283, allocations: 166.3 kB / 0.6602 GB, free: 3.504 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.5283, allocations: 39.88 kB / 0.6602 GB, free: 3.457 MB / 478.1 MB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.5283, allocations: 1.375 kB / 0.6602 GB, free: 3.457 MB / 478.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007004/0.529, allocations: 336.9 kB / 0.6606 GB, free: 3.148 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.5291, allocations: 78.48 kB / 0.6606 GB, free: 3.055 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.5294, allocations: 319.4 kB / 0.6609 GB, free: 2.848 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.5294, allocations: 25.7 kB / 0.661 GB, free: 2.816 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.5295, allocations: 163.1 kB / 0.6611 GB, free: 2.668 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.5295, allocations: 30.16 kB / 0.6612 GB, free: 2.641 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.5296, allocations: 25.2 kB / 0.6612 GB, free: 2.617 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5297, allocations: 335.5 kB / 0.6615 GB, free: 2.285 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.5298, allocations: 22.39 kB / 0.6615 GB, free: 2.273 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.323e-05/0.5298, allocations: 45.88 kB / 0.6616 GB, free: 2.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.852e-05/0.5299, allocations: 76.92 kB / 0.6616 GB, free: 2.168 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5299, allocations: 0 / 0.6616 GB, free: 2.168 MB / 478.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002417/0.5302, allocations: 156.9 kB / 0.6618 GB, free: 2.059 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.5302, allocations: 15.66 kB / 0.6618 GB, free: 2.051 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.5302, allocations: 0 / 0.6618 GB, free: 2.051 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.5304, allocations: 39.16 kB / 0.6618 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.836e-05/0.5305, allocations: 14.09 kB / 0.6619 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.5323, allocations: 2.756 MB / 0.6645 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.614e-05/0.5323, allocations: 12.72 kB / 0.6646 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.5324, allocations: 8.469 kB / 0.6646 GB, free: 15.12 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.0001165/0.5325, allocations: 138 kB / 0.6647 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.5326, allocations: 34.06 kB / 0.6647 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.5329, allocations: 160.1 kB / 0.6649 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.5329, allocations: 4.125 kB / 0.6649 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5329, allocations: 2.344 kB / 0.6649 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.5329, allocations: 3.938 kB / 0.6649 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004868/0.5334, allocations: 0.5302 MB / 0.6654 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5334, allocations: 0 / 0.6654 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.925e-05/0.5334, allocations: 9.266 kB / 0.6654 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.5335, allocations: 39.2 kB / 0.6655 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.5336, allocations: 3.984 kB / 0.6655 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.5351, allocations: 2.761 MB / 0.6682 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5352, allocations: 2.094 kB / 0.6682 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.5355, allocations: 345.5 kB / 0.6685 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.845e-05/0.5355, allocations: 93.58 kB / 0.6686 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.5356, allocations: 5.094 kB / 0.6686 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.5357, allocations: 0 / 0.6686 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.5357, allocations: 14.67 kB / 0.6686 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.5357, allocations: 4.344 kB / 0.6686 GB, free: 10.95 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002028/0.5359, allocations: 235.5 kB / 0.6688 GB, free: 10.79 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5359, allocations: 0 / 0.6688 GB, free: 10.79 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.5363, allocations: 53.22 kB / 0.6689 GB, free: 10.78 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.0006074/0.5369, allocations: 0.9104 MB / 0.6698 GB, free: 9.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000396/0.5373, allocations: 290.8 kB / 0.67 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5373, allocations: 0 / 0.67 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.5376, allocations: 257.1 kB / 0.6703 GB, free: 9.406 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006432/0.5383, allocations: 69.92 kB / 0.6704 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.541, allocations: 2.629 MB / 0.6729 GB, free: 7.289 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.5412, allocations: 0.7502 MB / 0.6737 GB, free: 6.562 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.462e-05/0.5413, allocations: 33.38 kB / 0.6737 GB, free: 6.539 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.322e-05/0.5414, allocations: 77.41 kB / 0.6738 GB, free: 6.473 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.5414, allocations: 2.719 kB / 0.6738 GB, free: 6.473 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.5694, allocations: 6.537 MB / 0.6801 GB, free: 3.242 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.162/9.732, allocations: 6.5 kB / 0.6802 GB, free: 3.238 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv","/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