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.00194/0.00194, allocations: 109.2 kB / 16.4 MB, free: 6.504 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.002153/0.002153, allocations: 192.5 kB / 19.35 MB, free: 3.734 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.495/1.495, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.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.791/0.791, allocations: 93.72 MB / 390.9 MB, free: 4.605 MB / 302.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.002426/0.002426, allocations: 81.59 kB / 0.5285 GB, free: 40.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1459, allocations: 68.27 MB / 0.5951 GB, free: 8.129 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1822/0.3281, allocations: 140.5 MB / 0.7323 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003376/0.3316, allocations: 2.127 MB / 0.7344 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/0.3319, allocations: 11.94 kB / 0.7344 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005647/0.3325, allocations: 119.2 kB / 0.7345 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000446/0.333, allocations: 143 kB / 0.7346 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.3335, allocations: 179.4 kB / 0.7348 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.334, allocations: 326.6 kB / 0.7351 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.3342, allocations: 61.05 kB / 0.7352 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/0.3347, allocations: 211.1 kB / 0.7354 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.335, allocations: 123.4 kB / 0.7355 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.335, allocations: 12 kB / 0.7355 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004817/0.3355, allocations: 207.6 kB / 0.7357 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.271e-05/0.3356, allocations: 35.8 kB / 0.7358 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.3357, allocations: 115.3 kB / 0.7359 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.3364, allocations: 298.8 kB / 0.7361 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3364, allocations: 0 / 0.7361 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3364, allocations: 0 / 0.7361 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.3364, allocations: 0 / 0.7361 GB, free: 7.156 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.001079/0.3375, allocations: 0.5855 MB / 0.7367 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.3375, allocations: 8.031 kB / 0.7367 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.39e-05/0.3376, allocations: 46.73 kB / 0.7368 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3377, allocations: 28.75 kB / 0.7368 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.3382, allocations: 319.7 kB / 0.7371 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.3383, allocations: 12.38 kB / 0.7371 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.3383, allocations: 16.36 kB / 0.7371 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.3387, allocations: 172.9 kB / 0.7373 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3387, allocations: 0 / 0.7373 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3387, allocations: 4 kB / 0.7373 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3387, allocations: 4 kB / 0.7373 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.3391, allocations: 103.9 kB / 0.7374 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3402, allocations: 0.8989 MB / 0.7383 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003153/0.3406, allocations: 90.45 kB / 0.7384 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.3407, allocations: 40.95 kB / 0.7384 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.3408, allocations: 81.11 kB / 0.7385 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.3411, allocations: 99.33 kB / 0.7386 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.883e-06/0.3411, allocations: 0 / 0.7386 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005226/0.3416, allocations: 157.3 kB / 0.7387 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.3417, allocations: 55.41 kB / 0.7388 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.342, allocations: 267.4 kB / 0.739 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.342, allocations: 25.7 kB / 0.7391 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.3422, allocations: 183.7 kB / 0.7392 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.3423, allocations: 31.72 kB / 0.7393 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.3424, allocations: 33.7 kB / 0.7393 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3425, allocations: 334.8 kB / 0.7396 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.3427, allocations: 39.97 kB / 0.7397 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.3429, allocations: 91.61 kB / 0.7397 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.3432, allocations: 150.7 kB / 0.7399 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3432, allocations: 0 / 0.7399 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004644/0.3437, allocations: 207 kB / 0.7401 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.736e-05/0.3438, allocations: 37.69 kB / 0.7401 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.3438, allocations: 3.938 kB / 0.7401 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.3438, allocations: 4 kB / 0.7401 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.344, allocations: 40.06 kB / 0.7402 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.344, allocations: 4 kB / 0.7402 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.3441, allocations: 23.81 kB / 0.7402 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.3442, allocations: 8 kB / 0.7402 GB, free: 2.633 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.0001365/0.3443, allocations: 133.8 kB / 0.7403 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.3444, allocations: 27.84 kB / 0.7404 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.3447, allocations: 135.3 kB / 0.7405 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.3448, allocations: 4 kB / 0.7405 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3448, allocations: 4 kB / 0.7405 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3448, allocations: 0 / 0.7405 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.345, allocations: 241.6 kB / 0.7407 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.345, allocations: 0 / 0.7407 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.3452, allocations: 15.98 kB / 0.7407 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.3452, allocations: 4 kB / 0.7407 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3452, allocations: 3.938 kB / 0.7407 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3452, allocations: 0 / 0.7407 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3452, allocations: 4 kB / 0.7407 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.3457, allocations: 192.8 kB / 0.7409 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.536e-05/0.3458, allocations: 96.94 kB / 0.741 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.3458, allocations: 11.92 kB / 0.741 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.346, allocations: 8 kB / 0.741 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.212e-05/0.346, allocations: 15.98 kB / 0.7411 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.346, allocations: 11.98 kB / 0.7411 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002037/0.3463, allocations: 186 kB / 0.7412 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.3463, allocations: 0 / 0.7412 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002735/0.3465, allocations: 43.95 kB / 0.7413 GB, free: 1.414 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.0009513/0.3475, allocations: 0.7608 MB / 0.742 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004495/0.348, allocations: 163.4 kB / 0.7422 GB, free: 460 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.348, allocations: 0 / 0.7422 GB, free: 460 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.3481, allocations: 40.52 kB / 0.7422 GB, free: 420 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.3485, allocations: 50.42 kB / 0.7423 GB, free: 372 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3148/0.6634, allocations: 2.277 MB / 0.7445 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.6636, allocations: 0.7446 MB / 0.7452 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001114/0.6637, allocations: 21.2 kB / 0.7452 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.6639, allocations: 74.91 kB / 0.7453 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.212e-06/0.6639, allocations: 0 / 0.7453 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.7012, allocations: 5.232 MB / 0.7504 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.195/8.896, allocations: 9.562 kB / 0.7504 GB, free: 146.6 MB / 0.5762 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv","/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 Time in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.647808365058154]