Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.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: translateModel(ThermofluidStream.Processes.Tests.Turbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|turbine.m_flow|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine") translateModel(ThermofluidStream.Processes.Tests.Turbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|turbine.m_flow|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00476/0.00476, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001126/0.001126, allocations: 193.4 kB / 16.79 MB, free: 5.809 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.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6466/0.6466, allocations: 89.52 MB / 380.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 82.62 kB / 458.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1079, allocations: 67.31 MB / 0.5132 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.3617/0.4696, allocations: 147.4 MB / 0.6572 GB, free: 7.145 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.4818, allocations: 12.08 MB / 0.669 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005924/0.4824, allocations: 5.031 kB / 0.669 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008014/0.4833, allocations: 256.9 kB / 0.6692 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.4845, allocations: 0.4926 MB / 0.6697 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.4862, allocations: 0.6344 MB / 0.6703 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000936/0.4871, allocations: 1.088 MB / 0.6714 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.4874, allocations: 142.2 kB / 0.6715 GB, free: 11.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004227/0.4878, allocations: 317.8 kB / 0.6718 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005471/0.4884, allocations: 464.4 kB / 0.6723 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.961e-05/0.4885, allocations: 35.28 kB / 0.6723 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.4904, allocations: 1.032 MB / 0.6733 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.4905, allocations: 131.1 kB / 0.6734 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.4908, allocations: 290 kB / 0.6737 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008766/0.4917, allocations: 0.7465 MB / 0.6744 GB, free: 10.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4917, allocations: 0 / 0.6744 GB, free: 10.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4917, allocations: 0 / 0.6744 GB, free: 10.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4917, allocations: 2.25 kB / 0.6744 GB, free: 10.01 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002015/0.4937, allocations: 1 MB / 0.6754 GB, free: 9.215 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.4938, allocations: 14.31 kB / 0.6754 GB, free: 9.211 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.4939, allocations: 66.73 kB / 0.6755 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.4944, allocations: 391.4 kB / 0.6759 GB, free: 8.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.901e-05/0.4945, allocations: 88.66 kB / 0.676 GB, free: 8.742 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.119e-05/0.4946, allocations: 51.08 kB / 0.676 GB, free: 8.723 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.4956, allocations: 0.6591 MB / 0.6766 GB, free: 8.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.4957, allocations: 4 kB / 0.6767 GB, free: 8.309 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.4957, allocations: 20.94 kB / 0.6767 GB, free: 8.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.4958, allocations: 22.81 kB / 0.6767 GB, free: 8.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.4969, allocations: 0.6654 MB / 0.6773 GB, free: 7.957 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0033/0.5002, allocations: 2.429 MB / 0.6797 GB, free: 5.984 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.5015, allocations: 0.6281 MB / 0.6803 GB, free: 5.648 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005846/0.5021, allocations: 359.6 kB / 0.6807 GB, free: 5.469 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002547/0.5046, allocations: 2.619 MB / 0.6832 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.5047, allocations: 45.34 kB / 0.6833 GB, free: 2.402 MB / 494.1 MB Notification: Performance of pre-optimization done (n=62): time 2.514e-06/0.5047, allocations: 0 / 0.6833 GB, free: 2.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=64): time 0.004031/0.5087, allocations: 2.125 MB / 0.6853 GB, free: 1.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.5088, allocations: 64.78 kB / 0.6854 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.5092, allocations: 354.4 kB / 0.6857 GB, free: 0.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.5092, allocations: 36.55 kB / 0.6858 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.5094, allocations: 216.3 kB / 0.686 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.5095, allocations: 221.9 kB / 0.6862 GB, free: 332 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.5097, allocations: 107.6 kB / 0.6863 GB, free: 264 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5099, allocations: 356.3 kB / 0.6866 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.5103, allocations: 258.6 kB / 0.6869 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.5109, allocations: 332.3 kB / 0.6872 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.5119, allocations: 0.611 MB / 0.6878 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5119, allocations: 2.906 kB / 0.6878 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001506/0.5134, allocations: 0.8281 MB / 0.6886 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5134, allocations: 4 kB / 0.6886 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.5135, allocations: 4 kB / 0.6886 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.5139, allocations: 138.7 kB / 0.6888 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.5144, allocations: 107.9 kB / 0.6889 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.5169, allocations: 2.249 MB / 0.6911 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003592/0.5173, allocations: 23.92 kB / 0.6911 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.5174, allocations: 27.98 kB / 0.6911 GB, free: 12.09 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002372/0.5176, allocations: 193.6 kB / 0.6913 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.5177, allocations: 47.44 kB / 0.6913 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.5196, allocations: 1.028 MB / 0.6923 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5196, allocations: 8.688 kB / 0.6923 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.5196, allocations: 4 kB / 0.6924 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5196, allocations: 0 / 0.6924 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.5222, allocations: 1.631 MB / 0.6939 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.5222, allocations: 4 kB / 0.6939 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004611/0.5227, allocations: 95.75 kB / 0.694 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003916/0.5231, allocations: 136.7 kB / 0.6942 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.5231, allocations: 23.92 kB / 0.6942 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.5256, allocations: 2.174 MB / 0.6963 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5256, allocations: 0 / 0.6963 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.5278, allocations: 1.245 MB / 0.6975 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.5279, allocations: 120.6 kB / 0.6976 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.21e-05/0.528, allocations: 15.94 kB / 0.6977 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.5284, allocations: 27.89 kB / 0.6977 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.5285, allocations: 44.48 kB / 0.6977 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.743e-05/0.5285, allocations: 19.98 kB / 0.6977 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003248/0.5289, allocations: 283.1 kB / 0.698 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5289, allocations: 0 / 0.698 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009371/0.5298, allocations: 288 kB / 0.6983 GB, free: 4.461 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (turbine.m_flow,turbine1.m_flow,turbine1.phi,turbine1.omega) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006216/0.5304, allocations: 391 kB / 0.6987 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001665/0.5321, allocations: 0.8844 MB / 0.6995 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5321, allocations: 4.062 kB / 0.6995 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009192/0.5331, allocations: 0.5752 MB / 0.7001 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000994/0.5341, allocations: 189.2 kB / 0.7003 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.5367, allocations: 1.563 MB / 0.7018 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.5371, allocations: 0.8723 MB / 0.7027 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.5374, allocations: 67.39 kB / 0.7027 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of SimCode: time 8.02e-07/0.5374, allocations: 0 / 0.7027 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of Templates: time 0.01741/0.5548, allocations: 13.42 MB / 0.7158 GB, free: 2.406 MB / 0.5137 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Turbine_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,turbine.m_flow,turbine1.m_flow,turbine1.omega,turbine1.phi Variables in the result:time,turbine.m_flow,turbine1.m_flow,turbine1.omega,turbine1.phi