Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",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.001309/0.001309, allocations: 108 kB / 15.6 MB, free: 132 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.001281/0.001281, allocations: 199.1 kB / 16.54 MB, free: 6.672 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7037/0.7037, allocations: 93.72 MB / 384.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003578/0.003578, allocations: 80.16 kB / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1631, allocations: 68.27 MB / 0.5193 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3607/0.5238, allocations: 140.5 MB / 0.6565 GB, free: 5.293 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.5262, allocations: 2.124 MB / 0.6585 GB, free: 3.574 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.5264, allocations: 11.66 kB / 0.6586 GB, free: 3.57 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000424/0.5268, allocations: 126 kB / 0.6587 GB, free: 3.469 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.5272, allocations: 146.4 kB / 0.6588 GB, free: 3.344 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.5275, allocations: 167.4 kB / 0.659 GB, free: 3.219 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.5279, allocations: 319.7 kB / 0.6593 GB, free: 3.035 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.528, allocations: 72.92 kB / 0.6593 GB, free: 2.996 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000402/0.5285, allocations: 206.6 kB / 0.6595 GB, free: 2.867 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.5286, allocations: 131.5 kB / 0.6597 GB, free: 2.785 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.5287, allocations: 12.38 kB / 0.6597 GB, free: 2.785 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.529, allocations: 207.1 kB / 0.6599 GB, free: 2.695 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.5291, allocations: 30.73 kB / 0.6599 GB, free: 2.672 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.5292, allocations: 107 kB / 0.66 GB, free: 2.598 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.5296, allocations: 286.2 kB / 0.6603 GB, free: 2.418 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5296, allocations: 0 / 0.6603 GB, free: 2.418 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.5296, allocations: 1.125 kB / 0.6603 GB, free: 2.418 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.5297, allocations: 0 / 0.6603 GB, free: 2.418 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009265/0.5306, allocations: 0.5722 MB / 0.6608 GB, free: 1.875 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.5306, allocations: 13.28 kB / 0.6609 GB, free: 1.871 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.5307, allocations: 46.73 kB / 0.6609 GB, free: 1.82 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.5307, allocations: 30.28 kB / 0.6609 GB, free: 1.805 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.5311, allocations: 292 kB / 0.6612 GB, free: 1.52 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.5311, allocations: 13.2 kB / 0.6612 GB, free: 1.512 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.5312, allocations: 15.91 kB / 0.6612 GB, free: 1.504 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.5315, allocations: 172.4 kB / 0.6614 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.5315, allocations: 0 / 0.6614 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.5316, allocations: 6.75 kB / 0.6614 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.5316, allocations: 6.125 kB / 0.6614 GB, free: 1.363 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.5319, allocations: 100.5 kB / 0.6615 GB, free: 1.316 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.533, allocations: 0.9137 MB / 0.6624 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000303/0.5333, allocations: 81.03 kB / 0.6625 GB, free: 360 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.5334, allocations: 41.36 kB / 0.6625 GB, free: 336 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.713e-05/0.5335, allocations: 83.78 kB / 0.6626 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.5338, allocations: 96.48 kB / 0.6627 GB, free: 152 kB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.5338, allocations: 0 / 0.6627 GB, free: 152 kB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004714/0.5343, allocations: 153 kB / 0.6628 GB, free: 60 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.5344, allocations: 58.16 kB / 0.6629 GB, free: 15.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.5347, allocations: 273.3 kB / 0.6632 GB, free: 15.81 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.5347, allocations: 25.7 kB / 0.6632 GB, free: 15.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.5348, allocations: 171 kB / 0.6633 GB, free: 15.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.5348, allocations: 22.2 kB / 0.6634 GB, free: 15.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.5349, allocations: 34.33 kB / 0.6634 GB, free: 15.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5351, allocations: 335.5 kB / 0.6637 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5352, allocations: 42.62 kB / 0.6638 GB, free: 15.22 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.5354, allocations: 93.77 kB / 0.6638 GB, free: 15.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.5357, allocations: 148.5 kB / 0.664 GB, free: 15.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.5357, allocations: 0 / 0.664 GB, free: 15.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004188/0.5362, allocations: 211 kB / 0.6642 GB, free: 14.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.5362, allocations: 34.73 kB / 0.6642 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.5362, allocations: 0 / 0.6642 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.5362, allocations: 10.69 kB / 0.6642 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.5364, allocations: 34.5 kB / 0.6643 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.5364, allocations: 1.812 kB / 0.6643 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.5366, allocations: 24.3 kB / 0.6643 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.5366, allocations: 8.844 kB / 0.6643 GB, free: 14.82 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001363/0.5367, allocations: 141.4 kB / 0.6644 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.5368, allocations: 24.12 kB / 0.6645 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003608/0.5371, allocations: 143.2 kB / 0.6646 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.5372, allocations: 2.562 kB / 0.6646 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5372, allocations: 0 / 0.6646 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.5372, allocations: 0 / 0.6646 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.5374, allocations: 243.1 kB / 0.6648 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.5374, allocations: 0 / 0.6648 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.5375, allocations: 16.64 kB / 0.6648 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.5375, allocations: 3.984 kB / 0.6648 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.5376, allocations: 9.797 kB / 0.6649 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.5376, allocations: 4 kB / 0.6649 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5376, allocations: 3.625 kB / 0.6649 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004512/0.538, allocations: 194.7 kB / 0.665 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.5381, allocations: 93.17 kB / 0.6651 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.5381, allocations: 10.94 kB / 0.6651 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.5383, allocations: 12.89 kB / 0.6652 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.5383, allocations: 12.7 kB / 0.6652 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.5383, allocations: 2.688 kB / 0.6652 GB, free: 14.04 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.5385, allocations: 192.2 kB / 0.6654 GB, free: 13.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5385, allocations: 0 / 0.6654 GB, free: 13.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.5388, allocations: 47.03 kB / 0.6654 GB, free: 13.89 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008063/0.5396, allocations: 0.7596 MB / 0.6661 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.54, allocations: 165.7 kB / 0.6663 GB, free: 13.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.54, allocations: 0 / 0.6663 GB, free: 13.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.5402, allocations: 45.56 kB / 0.6663 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.5405, allocations: 39.11 kB / 0.6664 GB, free: 13.06 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.5433, allocations: 2.278 MB / 0.6686 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.5436, allocations: 0.7442 MB / 0.6693 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.879e-05/0.5437, allocations: 34.84 kB / 0.6694 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.995e-05/0.5438, allocations: 75.69 kB / 0.6694 GB, free: 10.43 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5438, allocations: 0 / 0.6694 GB, free: 10.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.5716, allocations: 5.146 MB / 0.6745 GB, free: 7.875 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/8.291, allocations: 5.5 kB / 0.6745 GB, free: 7.875 MB / 494.1 MB (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches