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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7276/0.7276, allocations: 93.72 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 82.27 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1199, allocations: 68.26 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3762/0.4961, allocations: 140.5 MB / 0.6565 GB, free: 5.348 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.4988, allocations: 2.114 MB / 0.6585 GB, free: 3.641 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.4989, allocations: 14.97 kB / 0.6586 GB, free: 3.633 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.4994, allocations: 126.9 kB / 0.6587 GB, free: 3.531 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.4998, allocations: 142.1 kB / 0.6588 GB, free: 3.41 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.5002, allocations: 179 kB / 0.659 GB, free: 3.273 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.5005, allocations: 312.9 kB / 0.6593 GB, free: 3.098 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.5007, allocations: 79.81 kB / 0.6594 GB, free: 3.051 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004315/0.5012, allocations: 202.9 kB / 0.6595 GB, free: 2.926 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.5014, allocations: 124 kB / 0.6597 GB, free: 2.852 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.5014, allocations: 16.53 kB / 0.6597 GB, free: 2.848 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.5018, allocations: 211 kB / 0.6599 GB, free: 2.754 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.38e-05/0.5019, allocations: 33.3 kB / 0.6599 GB, free: 2.727 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.502, allocations: 104.4 kB / 0.66 GB, free: 2.656 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.5024, allocations: 288.8 kB / 0.6603 GB, free: 2.473 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.5024, allocations: 4 kB / 0.6603 GB, free: 2.469 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.5024, allocations: 5.312 kB / 0.6603 GB, free: 2.465 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.5025, allocations: 0 / 0.6603 GB, free: 2.465 MB / 478.1 MB 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.0009838/0.5035, allocations: 0.5683 MB / 0.6609 GB, free: 1.926 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.5035, allocations: 9.625 kB / 0.6609 GB, free: 1.926 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.5035, allocations: 45.48 kB / 0.6609 GB, free: 1.875 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.5036, allocations: 30.31 kB / 0.6609 GB, free: 1.859 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.504, allocations: 298.1 kB / 0.6612 GB, free: 1.566 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.504, allocations: 9.875 kB / 0.6612 GB, free: 1.562 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.5041, allocations: 15.06 kB / 0.6612 GB, free: 1.559 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003508/0.5044, allocations: 171.4 kB / 0.6614 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.5044, allocations: 0 / 0.6614 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.5045, allocations: 6.469 kB / 0.6614 GB, free: 1.422 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.5045, allocations: 2.625 kB / 0.6614 GB, free: 1.422 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.5048, allocations: 98.48 kB / 0.6615 GB, free: 1.375 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.5059, allocations: 0.9156 MB / 0.6624 GB, free: 472 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.5062, allocations: 84.03 kB / 0.6625 GB, free: 416 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.5064, allocations: 41.58 kB / 0.6625 GB, free: 392 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-05/0.5065, allocations: 83.3 kB / 0.6626 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.5068, allocations: 93.98 kB / 0.6627 GB, free: 212 kB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.5068, allocations: 0 / 0.6627 GB, free: 212 kB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005033/0.5073, allocations: 160.9 kB / 0.6628 GB, free: 116 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.5074, allocations: 55.39 kB / 0.6629 GB, free: 48 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.5076, allocations: 265.4 kB / 0.6631 GB, free: 15.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.5077, allocations: 40.31 kB / 0.6632 GB, free: 15.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.5078, allocations: 164.5 kB / 0.6633 GB, free: 15.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.5078, allocations: 22.23 kB / 0.6634 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.036e-05/0.5079, allocations: 34.28 kB / 0.6634 GB, free: 15.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5081, allocations: 334.1 kB / 0.6637 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.5082, allocations: 46.73 kB / 0.6638 GB, free: 15.28 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.5084, allocations: 80.75 kB / 0.6638 GB, free: 15.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.5088, allocations: 156.1 kB / 0.664 GB, free: 15.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.5088, allocations: 0 / 0.664 GB, free: 15.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00044/0.5092, allocations: 212.2 kB / 0.6642 GB, free: 14.94 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.5093, allocations: 35.95 kB / 0.6642 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.5093, allocations: 2.188 kB / 0.6642 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.5093, allocations: 6.25 kB / 0.6642 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.5095, allocations: 30.7 kB / 0.6643 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.5095, allocations: 6.484 kB / 0.6643 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.5096, allocations: 25.81 kB / 0.6643 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.5097, allocations: 8.391 kB / 0.6643 GB, free: 14.87 MB / 494.1 MB 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.0001419/0.5098, allocations: 148.2 kB / 0.6644 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.5099, allocations: 21.31 kB / 0.6645 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003698/0.5102, allocations: 145.4 kB / 0.6646 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.5102, allocations: 0 / 0.6646 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5103, allocations: 3.938 kB / 0.6646 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.5103, allocations: 0 / 0.6646 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.5105, allocations: 239.5 kB / 0.6648 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5105, allocations: 0 / 0.6648 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.5106, allocations: 16.27 kB / 0.6648 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5106, allocations: 0 / 0.6648 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.5107, allocations: 6.562 kB / 0.6649 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5107, allocations: 4 kB / 0.6649 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5107, allocations: 3.188 kB / 0.6649 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004745/0.5111, allocations: 184 kB / 0.665 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.333e-05/0.5112, allocations: 101.7 kB / 0.6651 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.5113, allocations: 10.25 kB / 0.6651 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.5114, allocations: 13.64 kB / 0.6652 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.5115, allocations: 17.03 kB / 0.6652 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.5115, allocations: 1.781 kB / 0.6652 GB, free: 14.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.5117, allocations: 187.9 kB / 0.6654 GB, free: 13.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5117, allocations: 0 / 0.6654 GB, free: 13.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000257/0.5119, allocations: 44.94 kB / 0.6654 GB, free: 13.95 MB / 494.1 MB 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.0008687/0.5128, allocations: 0.7585 MB / 0.6661 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004573/0.5133, allocations: 178.1 kB / 0.6663 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.5133, allocations: 0 / 0.6663 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.5134, allocations: 44.47 kB / 0.6663 GB, free: 13.13 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.5138, allocations: 42.69 kB / 0.6664 GB, free: 13.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.5168, allocations: 2.273 MB / 0.6686 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.5172, allocations: 0.7424 MB / 0.6693 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.727e-05/0.5173, allocations: 24.45 kB / 0.6694 GB, free: 10.56 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.5174, allocations: 75.78 kB / 0.6694 GB, free: 10.5 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5174, allocations: 0 / 0.6694 GB, free: 10.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.5466, allocations: 5.157 MB / 0.6745 GB, free: 7.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.855/8.402, allocations: 5.312 kB / 0.6745 GB, free: 7.926 MB / 494.1 MB (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) 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) Reference file matches