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.008434/0.008434, allocations: 99.72 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001892/0.001892, allocations: 190.4 kB / 16.67 MB, free: 5.922 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7252/0.7252, allocations: 93.71 MB / 384.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 87.81 kB / 0.5199 GB, free: 1.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2658, allocations: 68.26 MB / 0.5866 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1507/0.4166, allocations: 140.5 MB / 0.7238 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.4193, allocations: 2.127 MB / 0.7258 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/0.4196, allocations: 11.94 kB / 0.7259 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000525/0.4202, allocations: 115.2 kB / 0.726 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.4206, allocations: 151 kB / 0.7261 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004601/0.4211, allocations: 159.4 kB / 0.7263 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004573/0.4216, allocations: 338.6 kB / 0.7266 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.4218, allocations: 64.83 kB / 0.7266 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004992/0.4223, allocations: 215 kB / 0.7269 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.4225, allocations: 123.5 kB / 0.727 GB, free: 9.941 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.4225, allocations: 15.94 kB / 0.727 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004342/0.423, allocations: 207.5 kB / 0.7272 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.26e-05/0.4231, allocations: 39.78 kB / 0.7272 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.4232, allocations: 99.42 kB / 0.7273 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005534/0.4238, allocations: 299.8 kB / 0.7276 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4238, allocations: 0 / 0.7276 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4238, allocations: 4 kB / 0.7276 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.513e-05/0.4238, allocations: 0 / 0.7276 GB, free: 9.293 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.0009949/0.4248, allocations: 0.5816 MB / 0.7282 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.4248, allocations: 12.03 kB / 0.7282 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.173e-05/0.4249, allocations: 46.73 kB / 0.7282 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.425, allocations: 28.75 kB / 0.7283 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/0.4255, allocations: 319.7 kB / 0.7286 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.4255, allocations: 16.31 kB / 0.7286 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.4256, allocations: 12.38 kB / 0.7286 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.4259, allocations: 169 kB / 0.7288 GB, free: 8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.426, allocations: 0 / 0.7288 GB, free: 8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.426, allocations: 8 kB / 0.7288 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.426, allocations: 4 kB / 0.7288 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.4263, allocations: 99.86 kB / 0.7289 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.4275, allocations: 0.9066 MB / 0.7297 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.4278, allocations: 86.53 kB / 0.7298 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.4279, allocations: 40.95 kB / 0.7299 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.428, allocations: 81.11 kB / 0.7299 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.4283, allocations: 99.27 kB / 0.73 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.833e-06/0.4283, allocations: 4 kB / 0.73 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005106/0.4288, allocations: 157.6 kB / 0.7302 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.4289, allocations: 55.39 kB / 0.7302 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.4292, allocations: 267.4 kB / 0.7305 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4292, allocations: 29.7 kB / 0.7305 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.4293, allocations: 171.8 kB / 0.7307 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.4294, allocations: 31.78 kB / 0.7307 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.475e-05/0.4294, allocations: 33.72 kB / 0.7308 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.4296, allocations: 330.8 kB / 0.7311 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.4298, allocations: 51.89 kB / 0.7311 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.4299, allocations: 81.06 kB / 0.7312 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.4303, allocations: 154.7 kB / 0.7313 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4303, allocations: 0 / 0.7313 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004582/0.4307, allocations: 219 kB / 0.7316 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/0.4308, allocations: 33.7 kB / 0.7316 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.4308, allocations: 3.938 kB / 0.7316 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4308, allocations: 3.938 kB / 0.7316 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.431, allocations: 31.92 kB / 0.7316 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.431, allocations: 7.984 kB / 0.7316 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.4312, allocations: 24.05 kB / 0.7317 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.4312, allocations: 7.984 kB / 0.7317 GB, free: 4.766 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.0001455/0.4314, allocations: 137.8 kB / 0.7318 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.4314, allocations: 27.8 kB / 0.7318 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.4318, allocations: 131.3 kB / 0.7319 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4318, allocations: 0 / 0.7319 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4318, allocations: 4 kB / 0.7319 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4318, allocations: 4 kB / 0.732 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.432, allocations: 241.5 kB / 0.7322 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.4321, allocations: 4 kB / 0.7322 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.4322, allocations: 15.98 kB / 0.7322 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4322, allocations: 0 / 0.7322 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.4322, allocations: 11.94 kB / 0.7322 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4322, allocations: 0 / 0.7322 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4322, allocations: 0 / 0.7322 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004975/0.4327, allocations: 196.8 kB / 0.7324 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.46e-05/0.4328, allocations: 100.9 kB / 0.7325 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.4329, allocations: 3.938 kB / 0.7325 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.433, allocations: 11.98 kB / 0.7325 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.433, allocations: 11.98 kB / 0.7325 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.4331, allocations: 0 / 0.7325 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001972/0.4333, allocations: 194 kB / 0.7327 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4333, allocations: 0 / 0.7327 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002701/0.4335, allocations: 43.95 kB / 0.7327 GB, free: 3.547 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.0008867/0.4344, allocations: 0.7607 MB / 0.7335 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004057/0.4348, allocations: 159.3 kB / 0.7336 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4349, allocations: 320 / 0.7336 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.435, allocations: 47.91 kB / 0.7337 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.4354, allocations: 46.23 kB / 0.7337 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.4386, allocations: 2.289 MB / 0.736 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2191/0.6577, allocations: 0.7395 MB / 0.7367 GB, free: 151 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001307/0.6579, allocations: 26.8 kB / 0.7367 GB, free: 151 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.658, allocations: 71.41 kB / 0.7368 GB, free: 151 MB / 0.5762 GB Notification: Performance of SimCode: time 1.453e-06/0.658, allocations: 0 / 0.7368 GB, free: 151 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.6864, allocations: 5.241 MB / 0.7419 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.774, allocations: 9 kB / 0.7419 GB, free: 149.7 MB / 0.5762 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) 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) Reference file matches