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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 103.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002462/0.002462, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.606/0.606, allocations: 94.61 MB / 397.3 MB, free: 500 kB / 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-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_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: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 87.86 kB / 0.5416 GB, free: 14.06 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4072, allocations: 71.85 MB / 0.6118 GB, free: 3.965 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1844/0.5917, allocations: 140.9 MB / 0.7494 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002554/0.5942, allocations: 2.127 MB / 0.7515 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.5944, allocations: 11.94 kB / 0.7515 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000478/0.5949, allocations: 123.2 kB / 0.7516 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.5953, allocations: 151 kB / 0.7517 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.5957, allocations: 175.4 kB / 0.7519 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.5961, allocations: 322.7 kB / 0.7522 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.5962, allocations: 49.03 kB / 0.7523 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.5966, allocations: 215.1 kB / 0.7525 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.5968, allocations: 127.4 kB / 0.7526 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.5969, allocations: 16 kB / 0.7526 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003885/0.5973, allocations: 211.6 kB / 0.7528 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.276e-05/0.5973, allocations: 43.78 kB / 0.7528 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.5974, allocations: 103.3 kB / 0.7529 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.5979, allocations: 300.8 kB / 0.7532 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.5979, allocations: 0 / 0.7532 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5979, allocations: 3.938 kB / 0.7532 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.5979, allocations: 0 / 0.7532 GB, free: 4.277 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.0009818/0.5989, allocations: 0.5855 MB / 0.7538 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.5989, allocations: 8.031 kB / 0.7538 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.599, allocations: 42.73 kB / 0.7539 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.5991, allocations: 36.73 kB / 0.7539 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.5996, allocations: 319.7 kB / 0.7542 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.5996, allocations: 12.36 kB / 0.7542 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.5997, allocations: 16.38 kB / 0.7542 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.6, allocations: 172.9 kB / 0.7544 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.6, allocations: 0 / 0.7544 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.6, allocations: 7.984 kB / 0.7544 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.6001, allocations: 4 kB / 0.7544 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002937/0.6003, allocations: 95.88 kB / 0.7545 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.6014, allocations: 0.9027 MB / 0.7554 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.6017, allocations: 82.52 kB / 0.7554 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.6019, allocations: 44.95 kB / 0.7555 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.602, allocations: 81.09 kB / 0.7556 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.6022, allocations: 91.36 kB / 0.7557 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.6022, allocations: 0 / 0.7557 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0004932/0.6027, allocations: 165.3 kB / 0.7558 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.6028, allocations: 55.41 kB / 0.7559 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.6031, allocations: 267.4 kB / 0.7561 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.6031, allocations: 29.64 kB / 0.7561 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.6032, allocations: 179.7 kB / 0.7563 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.6032, allocations: 27.78 kB / 0.7563 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.6033, allocations: 29.7 kB / 0.7564 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.6035, allocations: 338.8 kB / 0.7567 GB, free: 424 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.6036, allocations: 47.97 kB / 0.7567 GB, free: 376 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.6038, allocations: 87.3 kB / 0.7568 GB, free: 272 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.6041, allocations: 146.7 kB / 0.757 GB, free: 100 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6041, allocations: 0 / 0.757 GB, free: 100 kB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004353/0.6045, allocations: 219 kB / 0.7572 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.964e-05/0.6045, allocations: 33.69 kB / 0.7572 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.6045, allocations: 11.88 kB / 0.7572 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.6046, allocations: 0 / 0.7572 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.6047, allocations: 31.98 kB / 0.7572 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.6047, allocations: 7.938 kB / 0.7573 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.6049, allocations: 19.88 kB / 0.7573 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.6049, allocations: 8 kB / 0.7573 GB, free: 15.75 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.0001284/0.605, allocations: 145.8 kB / 0.7574 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.605, allocations: 23.86 kB / 0.7574 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.6054, allocations: 131.3 kB / 0.7576 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.6054, allocations: 0 / 0.7576 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.6054, allocations: 0 / 0.7576 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.6054, allocations: 7.984 kB / 0.7576 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.6056, allocations: 241.6 kB / 0.7578 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6056, allocations: 0 / 0.7578 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.6057, allocations: 19.98 kB / 0.7578 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.6057, allocations: 0 / 0.7578 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.6058, allocations: 3.938 kB / 0.7578 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.6058, allocations: 4 kB / 0.7578 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.6058, allocations: 0 / 0.7578 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004664/0.6062, allocations: 196.8 kB / 0.758 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.6063, allocations: 97 kB / 0.7581 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.6063, allocations: 11.92 kB / 0.7581 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.6065, allocations: 11.98 kB / 0.7581 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.6065, allocations: 7.984 kB / 0.7581 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.6065, allocations: 4 kB / 0.7581 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000185/0.6067, allocations: 190 kB / 0.7583 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.6067, allocations: 0 / 0.7583 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002638/0.607, allocations: 43.89 kB / 0.7584 GB, free: 14.54 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.0008386/0.6078, allocations: 0.7647 MB / 0.7591 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000379/0.6082, allocations: 155.2 kB / 0.7593 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.6082, allocations: 0 / 0.7593 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.6083, allocations: 35.98 kB / 0.7593 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.6087, allocations: 61.5 kB / 0.7594 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.6117, allocations: 2.27 MB / 0.7616 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.6121, allocations: 0.744 MB / 0.7623 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.256e-05/0.6122, allocations: 30.2 kB / 0.7623 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.6123, allocations: 75.41 kB / 0.7624 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/0.6123, allocations: 0 / 0.7624 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.6413, allocations: 5.253 MB / 0.7675 GB, free: 5.07 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.644/9.285, allocations: 24.06 kB / 0.7676 GB, free: 5.047 MB / 0.5919 GB " [Timeout remaining time 651] (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_2/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: 12.724493911024183]