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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 105.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.001697/0.001697, allocations: 187.7 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.935/1.935, allocations: 225.6 MB / 247.8 MB, free: 3.715 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.878/0.878, allocations: 94.6 MB / 397.3 MB, free: 472 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002706, allocations: 83.86 kB / 0.5416 GB, free: 14.01 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8004/0.8031, allocations: 71.85 MB / 0.6118 GB, free: 3.938 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.2811/1.084, allocations: 140.9 MB / 0.7494 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003283/1.087, allocations: 2.127 MB / 0.7515 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/1.088, allocations: 15.88 kB / 0.7515 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007807/1.088, allocations: 119.2 kB / 0.7516 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005129/1.089, allocations: 151 kB / 0.7517 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/1.089, allocations: 175.3 kB / 0.7519 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007749/1.09, allocations: 322.7 kB / 0.7522 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/1.09, allocations: 53.03 kB / 0.7523 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006229/1.091, allocations: 223 kB / 0.7525 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004756/1.092, allocations: 119.5 kB / 0.7526 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/1.092, allocations: 16 kB / 0.7526 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004267/1.092, allocations: 211.5 kB / 0.7528 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/1.092, allocations: 39.78 kB / 0.7528 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001322/1.092, allocations: 103.4 kB / 0.7529 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0006138/1.093, allocations: 296.8 kB / 0.7532 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/1.093, allocations: 0 / 0.7532 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.046e-06/1.093, allocations: 0 / 0.7532 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.357e-06/1.093, allocations: 11.88 kB / 0.7532 GB, free: 4.234 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.001565/1.094, allocations: 0.5778 MB / 0.7538 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/1.095, allocations: 12.03 kB / 0.7538 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.158e-05/1.095, allocations: 50.72 kB / 0.7539 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/1.095, allocations: 32.69 kB / 0.7539 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/1.096, allocations: 315.7 kB / 0.7542 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/1.096, allocations: 16.31 kB / 0.7542 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.373e-05/1.096, allocations: 12.38 kB / 0.7542 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/1.096, allocations: 173 kB / 0.7544 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/1.096, allocations: 4 kB / 0.7544 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/1.096, allocations: 4 kB / 0.7544 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/1.096, allocations: 4 kB / 0.7544 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/1.097, allocations: 99.86 kB / 0.7545 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/1.098, allocations: 0.9027 MB / 0.7554 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/1.099, allocations: 86.53 kB / 0.7554 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/1.099, allocations: 40.95 kB / 0.7555 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/1.099, allocations: 85.09 kB / 0.7556 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/1.099, allocations: 87.3 kB / 0.7557 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/1.099, allocations: 0 / 0.7557 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005398/1.1, allocations: 161.4 kB / 0.7558 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/1.1, allocations: 55.41 kB / 0.7559 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005824/1.1, allocations: 271.3 kB / 0.7561 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/1.1, allocations: 25.7 kB / 0.7561 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/1.101, allocations: 175.7 kB / 0.7563 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/1.101, allocations: 27.78 kB / 0.7563 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.066e-05/1.101, allocations: 41.7 kB / 0.7564 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002114/1.101, allocations: 334.8 kB / 0.7567 GB, free: 380 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/1.101, allocations: 43.91 kB / 0.7567 GB, free: 336 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/1.101, allocations: 77.69 kB / 0.7568 GB, free: 240 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003131/1.102, allocations: 154.7 kB / 0.757 GB, free: 60 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.102, allocations: 0 / 0.757 GB, free: 60 kB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0007445/1.102, allocations: 215.1 kB / 0.7572 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/1.102, allocations: 37.64 kB / 0.7572 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/1.102, allocations: 3.938 kB / 0.7572 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/1.102, allocations: 4 kB / 0.7572 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/1.103, allocations: 31.91 kB / 0.7572 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/1.103, allocations: 4 kB / 0.7572 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/1.103, allocations: 28.03 kB / 0.7573 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/1.103, allocations: 4 kB / 0.7573 GB, free: 15.71 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.0001691/1.103, allocations: 137.8 kB / 0.7574 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/1.103, allocations: 27.8 kB / 0.7574 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/1.103, allocations: 139.6 kB / 0.7576 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.103, allocations: 4 kB / 0.7576 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/1.103, allocations: 0 / 0.7576 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/1.103, allocations: 4 kB / 0.7576 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/1.104, allocations: 237.5 kB / 0.7578 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.104, allocations: 0 / 0.7578 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/1.104, allocations: 19.98 kB / 0.7578 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.104, allocations: 0 / 0.7578 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/1.104, allocations: 7.938 kB / 0.7578 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.104, allocations: 0 / 0.7578 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/1.104, allocations: 7.969 kB / 0.7578 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007176/1.105, allocations: 196.8 kB / 0.758 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.417e-05/1.105, allocations: 93 kB / 0.7581 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/1.105, allocations: 3.938 kB / 0.7581 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/1.105, allocations: 11.98 kB / 0.7581 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/1.105, allocations: 11.98 kB / 0.7581 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/1.105, allocations: 8 kB / 0.7581 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002072/1.105, allocations: 194 kB / 0.7583 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/1.105, allocations: 0 / 0.7583 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003377/1.105, allocations: 51.88 kB / 0.7584 GB, free: 14.48 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.0009367/1.106, allocations: 0.7607 MB / 0.7591 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005674/1.107, allocations: 151.3 kB / 0.7593 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.107, allocations: 0 / 0.7593 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/1.107, allocations: 48.16 kB / 0.7593 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/1.107, allocations: 46.92 kB / 0.7594 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/1.111, allocations: 2.274 MB / 0.7616 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/1.112, allocations: 0.7401 MB / 0.7623 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.217e-05/1.112, allocations: 25.94 kB / 0.7623 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/1.112, allocations: 75.41 kB / 0.7624 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/1.112, allocations: 0 / 0.7624 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04073/1.153, allocations: 5.277 MB / 0.7675 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/11.45, allocations: 6.641 kB / 0.7676 GB, free: 5.023 MB / 0.5919 GB " [Timeout remaining time 648] (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 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] 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_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.182635644916445]