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.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.001351/0.001351, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001524/0.001524, allocations: 214.7 kB / 22.25 MB, free: 4.859 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.383/1.383, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.763/0.763, allocations: 100.9 MB / 413.3 MB, free: 2.887 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_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: 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.002583/0.002583, allocations: 89.62 kB / 0.5641 GB, free: 35.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1304, allocations: 74.62 MB / 0.6369 GB, free: 6.465 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.459/0.5894, allocations: 120.9 MB / 0.755 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002256/0.5917, allocations: 1.957 MB / 0.7569 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.5919, allocations: 17.66 kB / 0.757 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004469/0.5924, allocations: 112.1 kB / 0.7571 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003834/0.5927, allocations: 144.5 kB / 0.7572 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.5931, allocations: 180.8 kB / 0.7574 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.5935, allocations: 320.8 kB / 0.7577 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.5936, allocations: 41.53 kB / 0.7577 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004945/0.5941, allocations: 226.3 kB / 0.7579 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.5943, allocations: 118.3 kB / 0.7581 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.347e-05/0.5944, allocations: 15.22 kB / 0.7581 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003463/0.5947, allocations: 169.5 kB / 0.7582 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.5948, allocations: 33.44 kB / 0.7583 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.5949, allocations: 85.09 kB / 0.7583 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005005/0.5954, allocations: 305.2 kB / 0.7586 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5954, allocations: 1.094 kB / 0.7586 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.863e-06/0.5954, allocations: 2.391 kB / 0.7586 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.5954, allocations: 0 / 0.7586 GB, free: 3.219 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.00105/0.5964, allocations: 0.5086 MB / 0.7591 GB, free: 18.83 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5965, allocations: 12.62 kB / 0.7591 GB, free: 18.83 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.5965, allocations: 45.36 kB / 0.7592 GB, free: 18.79 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.5966, allocations: 31.16 kB / 0.7592 GB, free: 18.78 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.5971, allocations: 252.9 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5971, allocations: 9.969 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.5971, allocations: 16.19 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.5975, allocations: 177.8 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.5975, allocations: 2.203 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.5975, allocations: 1.406 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.5975, allocations: 4.969 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.5978, allocations: 103.2 kB / 0.7598 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009818/0.5988, allocations: 0.7192 MB / 0.7605 GB, free: 18.01 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.5991, allocations: 86.81 kB / 0.7605 GB, free: 17.99 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.5992, allocations: 38.67 kB / 0.7606 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.5993, allocations: 8.469 kB / 0.7606 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.5995, allocations: 89.84 kB / 0.7607 GB, free: 17.93 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/0.5995, allocations: 0.9062 kB / 0.7607 GB, free: 17.93 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0005006/0.6, allocations: 158.5 kB / 0.7608 GB, free: 17.89 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.6, allocations: 55.03 kB / 0.7609 GB, free: 17.82 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.6003, allocations: 277.4 kB / 0.7611 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.6004, allocations: 28.95 kB / 0.7612 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.6005, allocations: 174.5 kB / 0.7613 GB, free: 17.57 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.6005, allocations: 21.72 kB / 0.7614 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.692e-05/0.6006, allocations: 43.61 kB / 0.7614 GB, free: 17.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.6007, allocations: 332 kB / 0.7617 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.6009, allocations: 71.52 kB / 0.7618 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.6011, allocations: 110.5 kB / 0.7619 GB, free: 17.11 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.6014, allocations: 153.3 kB / 0.762 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.6014, allocations: 0.9062 kB / 0.762 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004778/0.6018, allocations: 239.8 kB / 0.7623 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/0.6019, allocations: 33.61 kB / 0.7623 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.6019, allocations: 0.75 kB / 0.7623 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.6019, allocations: 7.344 kB / 0.7623 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.6021, allocations: 34.98 kB / 0.7623 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.6021, allocations: 3.234 kB / 0.7623 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.6023, allocations: 27.83 kB / 0.7624 GB, free: 16.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.6023, allocations: 5.172 kB / 0.7624 GB, free: 16.88 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.0001422/0.6024, allocations: 136.6 kB / 0.7625 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.85e-05/0.6025, allocations: 27.41 kB / 0.7625 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.6028, allocations: 137.9 kB / 0.7627 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.6029, allocations: 0.9375 kB / 0.7627 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6029, allocations: 3.094 kB / 0.7627 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6029, allocations: 1.781 kB / 0.7627 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.6031, allocations: 207.3 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6031, allocations: 1.688 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.6032, allocations: 15.69 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.6032, allocations: 2.75 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.6032, allocations: 5.656 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6032, allocations: 2.484 kB / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6032, allocations: 0 / 0.7629 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004935/0.6037, allocations: 192.6 kB / 0.7631 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.6037, allocations: 22.66 kB / 0.7631 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.52e-05/0.6038, allocations: 10.42 kB / 0.7631 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.6039, allocations: 10.19 kB / 0.7631 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.782e-05/0.604, allocations: 12.94 kB / 0.7631 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.604, allocations: 2.375 kB / 0.7631 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002363/0.6042, allocations: 192.4 kB / 0.7633 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6042, allocations: 0.9062 kB / 0.7633 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003172/0.6045, allocations: 40.16 kB / 0.7634 GB, free: 16.37 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.0009826/0.6055, allocations: 0.7748 MB / 0.7641 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004803/0.606, allocations: 187.5 kB / 0.7643 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.606, allocations: 1 kB / 0.7643 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.6061, allocations: 37.38 kB / 0.7643 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.6065, allocations: 59.28 kB / 0.7644 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.6099, allocations: 2.388 MB / 0.7667 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.6101, allocations: 130.5 kB / 0.7668 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001203/0.6102, allocations: 27.19 kB / 0.7669 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.6103, allocations: 75.25 kB / 0.7669 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of SimCode: time 1.423e-06/0.6103, allocations: 0 / 0.7669 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03748/0.6478, allocations: 5.977 MB / 0.7728 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.69, allocations: 12.78 kB / 0.7728 GB, free: 13.07 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/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: 15.082882387097925]