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.001579/0.001579, 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.00242/0.00242, allocations: 213.4 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.418/1.418, allocations: 230.6 MB / 256 MB, free: 7.777 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.7573/0.7573, allocations: 100.9 MB / 413.3 MB, free: 2.828 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: 87.94 kB / 0.5641 GB, free: 35.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1268, allocations: 74.6 MB / 0.6369 GB, free: 6.445 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.469/0.5958, allocations: 120.9 MB / 0.755 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002257/0.5981, allocations: 1.958 MB / 0.7569 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.5984, allocations: 20.62 kB / 0.757 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006163/0.599, allocations: 109 kB / 0.7571 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005715/0.5996, allocations: 150 kB / 0.7572 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006363/0.6002, allocations: 174.9 kB / 0.7574 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00045/0.6007, allocations: 324.2 kB / 0.7577 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.6009, allocations: 45.36 kB / 0.7577 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005672/0.6014, allocations: 223.3 kB / 0.7579 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.6017, allocations: 120.1 kB / 0.7581 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.6017, allocations: 13.56 kB / 0.7581 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004223/0.6021, allocations: 169.2 kB / 0.7582 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.6022, allocations: 38.62 kB / 0.7583 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.6023, allocations: 84.19 kB / 0.7583 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005522/0.6029, allocations: 294.2 kB / 0.7586 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.6029, allocations: 1.688 kB / 0.7586 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6029, allocations: 4.062 kB / 0.7586 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.6029, allocations: 0 / 0.7586 GB, free: 3.227 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.6039, allocations: 0.5073 MB / 0.7591 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.604, allocations: 13.12 kB / 0.7591 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.604, allocations: 44.3 kB / 0.7592 GB, free: 18.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.598e-05/0.6041, allocations: 31.38 kB / 0.7592 GB, free: 18.79 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.6046, allocations: 260.3 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.6047, allocations: 10.28 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.6047, allocations: 13.22 kB / 0.7595 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.6051, allocations: 175.3 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.6051, allocations: 2.781 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.6051, allocations: 6.266 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.6051, allocations: 4.688 kB / 0.7597 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.6055, allocations: 98.88 kB / 0.7598 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.6065, allocations: 0.7168 MB / 0.7605 GB, free: 18.02 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.6068, allocations: 88.36 kB / 0.7605 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.6069, allocations: 38.62 kB / 0.7606 GB, free: 17.99 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.699e-05/0.607, allocations: 9.734 kB / 0.7606 GB, free: 17.99 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.6072, allocations: 85.58 kB / 0.7607 GB, free: 17.94 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.6072, allocations: 1.891 kB / 0.7607 GB, free: 17.94 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.000499/0.6077, allocations: 160.6 kB / 0.7608 GB, free: 17.89 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.6078, allocations: 54.98 kB / 0.7609 GB, free: 17.83 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.6081, allocations: 278 kB / 0.7611 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.6081, allocations: 27.95 kB / 0.7612 GB, free: 17.68 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.6082, allocations: 173.6 kB / 0.7613 GB, free: 17.58 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.6082, allocations: 23.31 kB / 0.7614 GB, free: 17.57 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.6083, allocations: 39.59 kB / 0.7614 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.6084, allocations: 335.4 kB / 0.7617 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.6086, allocations: 71.41 kB / 0.7618 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.6088, allocations: 112.1 kB / 0.7619 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.6091, allocations: 152.7 kB / 0.762 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.6091, allocations: 4.75 kB / 0.762 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004512/0.6095, allocations: 240.2 kB / 0.7623 GB, free: 16.94 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.6096, allocations: 34.64 kB / 0.7623 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.6096, allocations: 2.5 kB / 0.7623 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.6096, allocations: 6.859 kB / 0.7623 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.6097, allocations: 32.61 kB / 0.7623 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.6097, allocations: 6.812 kB / 0.7624 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.6099, allocations: 26.92 kB / 0.7624 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.6099, allocations: 9.719 kB / 0.7624 GB, free: 16.89 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.0001259/0.61, allocations: 131.2 kB / 0.7625 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/0.6101, allocations: 26.39 kB / 0.7625 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003428/0.6104, allocations: 134.1 kB / 0.7627 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.6104, allocations: 2.719 kB / 0.7627 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.6104, allocations: 0 / 0.7627 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6104, allocations: 0.8438 kB / 0.7627 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.6106, allocations: 208.4 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.6106, allocations: 1.812 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.6107, allocations: 17.94 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6107, allocations: 0.7812 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.6108, allocations: 6.438 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6108, allocations: 2.781 kB / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.6108, allocations: 0 / 0.7629 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.6112, allocations: 199 kB / 0.7631 GB, free: 16.48 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.6112, allocations: 19.34 kB / 0.7631 GB, free: 16.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.6113, allocations: 6.469 kB / 0.7631 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.6114, allocations: 10.84 kB / 0.7631 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.6114, allocations: 12.8 kB / 0.7631 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.896e-06/0.6115, allocations: 5.344 kB / 0.7631 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001905/0.6116, allocations: 193.1 kB / 0.7633 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.6116, allocations: 0 / 0.7633 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002802/0.6119, allocations: 38.12 kB / 0.7634 GB, free: 16.38 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.0008723/0.6128, allocations: 0.7775 MB / 0.7641 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000409/0.6132, allocations: 187.8 kB / 0.7643 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6132, allocations: 4.438 kB / 0.7643 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.6133, allocations: 37.94 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.0003479/0.6137, allocations: 50.23 kB / 0.7644 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.6167, 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.0001232/0.6168, allocations: 131.7 kB / 0.7668 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.629e-05/0.6169, allocations: 24.31 kB / 0.7669 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.097e-05/0.617, allocations: 76.23 kB / 0.7669 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of SimCode: time 5e-07/0.617, allocations: 1.031 kB / 0.7669 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0381/0.6551, allocations: 5.982 MB / 0.7728 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.56, allocations: 8.453 kB / 0.7728 GB, free: 13.09 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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_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.csv","/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 Time in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.13456066371873]