Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002622/0.002622, allocations: 214.7 kB / 22.25 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7788/0.7788, allocations: 94.56 MB / 407 MB, free: 9.188 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002527/0.002527, allocations: 81.95 kB / 0.5549 GB, free: 38.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1327, allocations: 73.05 MB / 0.6263 GB, free: 496 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.51/0.6426, allocations: 141.1 MB / 0.7641 GB, free: 2.238 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.6447, allocations: 2.145 MB / 0.7661 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.6449, allocations: 20.91 kB / 0.7662 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004533/0.6454, allocations: 122.4 kB / 0.7663 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003582/0.6457, allocations: 153.7 kB / 0.7664 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.6461, allocations: 179 kB / 0.7666 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003139/0.6464, allocations: 331.6 kB / 0.7669 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.6465, allocations: 42.28 kB / 0.767 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005432/0.6471, allocations: 223.1 kB / 0.7672 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.6472, allocations: 130.5 kB / 0.7673 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.6473, allocations: 11.22 kB / 0.7673 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003421/0.6476, allocations: 216.2 kB / 0.7675 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.285e-05/0.6477, allocations: 42.52 kB / 0.7676 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.555e-05/0.6478, allocations: 99.98 kB / 0.7676 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.6482, allocations: 305.5 kB / 0.7679 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.6482, allocations: 5.5 kB / 0.7679 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6482, allocations: 0 / 0.7679 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.6482, allocations: 0 / 0.7679 GB, free: 2.141 MB / 0.5762 GB 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.0009189/0.6491, allocations: 0.5024 MB / 0.7684 GB, free: 17.75 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.6491, allocations: 10.91 kB / 0.7684 GB, free: 17.75 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.123e-05/0.6492, allocations: 44.95 kB / 0.7685 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.951e-05/0.6492, allocations: 29.28 kB / 0.7685 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.6497, allocations: 263.6 kB / 0.7688 GB, free: 17.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.6497, allocations: 9.781 kB / 0.7688 GB, free: 17.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.6497, allocations: 16.05 kB / 0.7688 GB, free: 17.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.65, allocations: 178.4 kB / 0.769 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.65, allocations: 0.5156 kB / 0.769 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.6501, allocations: 0 / 0.769 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.6501, allocations: 3.125 kB / 0.769 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.6503, allocations: 105.7 kB / 0.7691 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.6513, allocations: 0.8377 MB / 0.7699 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.6516, allocations: 95.86 kB / 0.77 GB, free: 16.76 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.6517, allocations: 37.38 kB / 0.77 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.6e-05/0.6518, allocations: 13.73 kB / 0.77 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/0.652, allocations: 85.86 kB / 0.7701 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.652, allocations: 0 / 0.7701 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0004582/0.6525, allocations: 161.8 kB / 0.7703 GB, free: 16.65 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.6525, allocations: 51.41 kB / 0.7703 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.6528, allocations: 273.1 kB / 0.7706 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.6528, allocations: 32.16 kB / 0.7706 GB, free: 16.44 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.775e-05/0.6529, allocations: 169.7 kB / 0.7708 GB, free: 16.34 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.6529, allocations: 29.64 kB / 0.7708 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.653, allocations: 41.86 kB / 0.7708 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6531, allocations: 334.4 kB / 0.7712 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.6532, allocations: 40.75 kB / 0.7712 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.6534, allocations: 85.42 kB / 0.7713 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.6537, allocations: 151.7 kB / 0.7714 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6537, allocations: 3.375 kB / 0.7714 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004069/0.6541, allocations: 211.5 kB / 0.7716 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.6541, allocations: 29.98 kB / 0.7716 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.6541, allocations: 2.094 kB / 0.7717 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.6541, allocations: 6.094 kB / 0.7717 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.6543, allocations: 30.48 kB / 0.7717 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6543, allocations: 7.75 kB / 0.7717 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.6545, allocations: 24.48 kB / 0.7717 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.6545, allocations: 8.5 kB / 0.7717 GB, free: 15.73 MB / 0.5919 GB 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.0001346/0.6546, allocations: 134.8 kB / 0.7719 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.6547, allocations: 27.3 kB / 0.7719 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003371/0.655, allocations: 134.9 kB / 0.772 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.655, allocations: 0.7812 kB / 0.772 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.655, allocations: 3.719 kB / 0.772 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.655, allocations: 4 kB / 0.772 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.6552, allocations: 211.6 kB / 0.7722 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.6552, allocations: 2.109 kB / 0.7722 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.6553, allocations: 15.02 kB / 0.7722 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.6553, allocations: 1.281 kB / 0.7722 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.6554, allocations: 9.719 kB / 0.7722 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.6554, allocations: 5.25 kB / 0.7723 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6554, allocations: 1.203 kB / 0.7723 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005048/0.6559, allocations: 188.4 kB / 0.7724 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.6559, allocations: 28.86 kB / 0.7725 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.6559, allocations: 5.531 kB / 0.7725 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.6561, allocations: 15.41 kB / 0.7725 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.6561, allocations: 10.16 kB / 0.7725 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.6561, allocations: 2.281 kB / 0.7725 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002308/0.6564, allocations: 195.3 kB / 0.7727 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6564, allocations: 0.5625 kB / 0.7727 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002978/0.6567, allocations: 40.91 kB / 0.7727 GB, free: 15.21 MB / 0.5919 GB 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.0009429/0.6576, allocations: 0.7677 MB / 0.7735 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004536/0.658, allocations: 157.3 kB / 0.7736 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.658, allocations: 0 / 0.7736 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.6582, allocations: 41.84 kB / 0.7737 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.6586, allocations: 48.94 kB / 0.7737 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.662, allocations: 2.284 MB / 0.7759 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.6623, allocations: 0.7395 MB / 0.7767 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.6624, allocations: 27.3 kB / 0.7767 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.828e-05/0.6625, allocations: 75.41 kB / 0.7768 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of SimCode: time 3.2e-07/0.6625, allocations: 0 / 0.7768 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.6968, allocations: 5.464 MB / 0.7821 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.86, allocations: 15.33 kB / 0.7821 GB, free: 11.64 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.483502284856513]