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.001743/0.001743, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002243/0.002243, allocations: 206.7 kB / 22.24 MB, free: 5.262 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.691/1.691, allocations: 230.6 MB / 256 MB, free: 7.785 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.9837/0.9837, allocations: 94.62 MB / 407.1 MB, free: 8.848 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.0028/0.0028, allocations: 89.36 kB / 0.5549 GB, free: 38.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2483, allocations: 73.06 MB / 0.6263 GB, free: 340 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.2144/0.4627, allocations: 121 MB / 0.7444 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003134/0.4658, allocations: 1.952 MB / 0.7463 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.4662, allocations: 19.81 kB / 0.7463 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007067/0.4669, allocations: 107.2 kB / 0.7464 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005426/0.4675, allocations: 155 kB / 0.7466 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.468, allocations: 171.4 kB / 0.7467 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005832/0.4686, allocations: 326.6 kB / 0.7471 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.4688, allocations: 37.25 kB / 0.7471 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007482/0.4696, allocations: 235 kB / 0.7473 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.4698, allocations: 111.5 kB / 0.7474 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.4698, allocations: 12 kB / 0.7474 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004209/0.4702, allocations: 167.7 kB / 0.7476 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.4704, allocations: 39.8 kB / 0.7476 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.4705, allocations: 87.53 kB / 0.7477 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0007773/0.4713, allocations: 286.8 kB / 0.748 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.4713, allocations: 3.984 kB / 0.748 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.464e-06/0.4713, allocations: 4 kB / 0.748 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.868e-06/0.4713, allocations: 0 / 0.748 GB, free: 3.203 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.001427/0.4727, allocations: 0.5025 MB / 0.7485 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.4728, allocations: 8.031 kB / 0.7485 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.173e-05/0.4729, allocations: 46.73 kB / 0.7485 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.383e-05/0.473, allocations: 28.75 kB / 0.7486 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.4737, allocations: 264 kB / 0.7488 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.4738, allocations: 12.38 kB / 0.7488 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.4738, allocations: 16.33 kB / 0.7488 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.4743, allocations: 169 kB / 0.749 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.4743, allocations: 4 kB / 0.749 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.4743, allocations: 7.984 kB / 0.749 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.4744, allocations: 4 kB / 0.749 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003418/0.4747, allocations: 99.86 kB / 0.7491 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.4762, allocations: 0.7216 MB / 0.7498 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.4765, allocations: 90.52 kB / 0.7499 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.4767, allocations: 40.89 kB / 0.7499 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.4768, allocations: 4 kB / 0.7499 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003278/0.4771, allocations: 87.36 kB / 0.75 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.4771, allocations: 0 / 0.75 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005595/0.4777, allocations: 157.4 kB / 0.7502 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.4778, allocations: 55.41 kB / 0.7502 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.4781, allocations: 276.5 kB / 0.7505 GB, free: 444 kB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.4781, allocations: 25.7 kB / 0.7505 GB, free: 412 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.4783, allocations: 179.7 kB / 0.7507 GB, free: 228 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.4783, allocations: 31.77 kB / 0.7507 GB, free: 196 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.795e-05/0.4784, allocations: 25.72 kB / 0.7507 GB, free: 164 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.5168/0.9952, allocations: 338.8 kB / 0.7511 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004428/0.9956, allocations: 67.45 kB / 0.7511 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.9959, allocations: 110.8 kB / 0.7512 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.9963, allocations: 152.4 kB / 0.7514 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.9963, allocations: 1.812 kB / 0.7514 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000731/0.9971, allocations: 242 kB / 0.7516 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.639e-05/0.9971, allocations: 37.75 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.9971, allocations: 5.062 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.9972, allocations: 4.719 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.9974, allocations: 27.61 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.9974, allocations: 4.141 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.9976, allocations: 27.05 kB / 0.7517 GB, free: 128 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.9976, allocations: 8.906 kB / 0.7517 GB, free: 128 MB / 0.5762 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.0001862/0.9978, allocations: 126.9 kB / 0.7519 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.9979, allocations: 32.31 kB / 0.7519 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005078/0.9984, allocations: 132 kB / 0.752 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.9984, allocations: 1.281 kB / 0.752 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.9984, allocations: 4.453 kB / 0.752 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.9984, allocations: 1.562 kB / 0.752 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.9988, allocations: 206.8 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.9988, allocations: 5.094 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.9989, allocations: 16.62 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.9989, allocations: 1.875 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.9989, allocations: 0.75 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.9989, allocations: 2.031 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.9989, allocations: 11.02 kB / 0.7522 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.9996, allocations: 191 kB / 0.7524 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.172e-05/0.9996, allocations: 23.94 kB / 0.7525 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.9997, allocations: 6.359 kB / 0.7525 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.9998, allocations: 13.53 kB / 0.7525 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.9e-05/0.9999, allocations: 14.03 kB / 0.7525 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.9999, allocations: 2.375 kB / 0.7525 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002443/1, allocations: 191.8 kB / 0.7527 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/1, allocations: 3.812 kB / 0.7527 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003299/1, allocations: 45.94 kB / 0.7527 GB, free: 127.5 MB / 0.5762 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.000869/1.001, allocations: 0.7571 MB / 0.7535 GB, free: 126.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004949/1.002, allocations: 184.1 kB / 0.7536 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.002, allocations: 0 / 0.7536 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/1.002, allocations: 36.88 kB / 0.7537 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/1.002, allocations: 58.77 kB / 0.7537 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004033/1.006, allocations: 2.389 MB / 0.7561 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/1.007, allocations: 132.4 kB / 0.7562 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001337/1.007, allocations: 28.92 kB / 0.7562 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/1.007, allocations: 75.89 kB / 0.7563 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/1.007, allocations: 1.094 kB / 0.7563 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04541/1.052, allocations: 5.987 MB / 0.7621 GB, free: 123.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/15.29, allocations: 6.703 kB / 0.7621 GB, free: 123.7 MB / 0.5762 GB " [Timeout remaining time 645] (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: 19.835155280772597]