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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 182.6 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.1 MB / 221.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009741/0.0009744, allocations: 93.55 kB / 269.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6641/0.6641, allocations: 91.22 MB / 407.8 MB, free: 2.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000979/0.0009791, allocations: 55.86 kB / 483.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2704, allocations: 64.98 MB / 0.5357 GB, free: 33.66 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.1489/0.4194, allocations: 147.5 MB / 0.6797 GB, free: 1.703 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.2969/0.7163, allocations: 12 MB / 0.6914 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006419/0.717, allocations: 10 kB / 0.6914 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0008237/0.7178, allocations: 257.1 kB / 0.6916 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.7193, allocations: 0.4949 MB / 0.6921 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.7211, allocations: 0.6286 MB / 0.6927 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.00127/0.7224, allocations: 1.115 MB / 0.6938 GB, free: 1.34 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.7227, allocations: 150.1 kB / 0.694 GB, free: 1.301 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000615/0.7234, allocations: 331.5 kB / 0.6943 GB, free: 1.297 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005645/0.7239, allocations: 472.7 kB / 0.6947 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/0.724, allocations: 38.08 kB / 0.6948 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.7261, allocations: 1.059 MB / 0.6958 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.7263, allocations: 126.5 kB / 0.6959 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.000396/0.7267, allocations: 292 kB / 0.6962 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001918/0.7286, allocations: 1.038 MB / 0.6972 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7286, allocations: 0.6562 kB / 0.6972 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of FrontEnd: time 9.51e-07/0.7286, allocations: 0 / 0.6972 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.7286, allocations: 0.7188 kB / 0.6972 GB, free: 1.199 MB / 0.4948 GB 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.002132/0.7308, allocations: 0.9953 MB / 0.6982 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.7308, allocations: 9.438 kB / 0.6982 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.731, allocations: 67.12 kB / 0.6983 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.7316, allocations: 391.8 kB / 0.6986 GB, free: 16.34 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.7317, allocations: 97.84 kB / 0.6987 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.7318, allocations: 44.81 kB / 0.6988 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.733, allocations: 0.6523 MB / 0.6994 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.733, allocations: 4.969 kB / 0.6994 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.783e-05/0.7331, allocations: 19.47 kB / 0.6994 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.633e-05/0.7331, allocations: 27.27 kB / 0.6995 GB, free: 16.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.7344, allocations: 0.6746 MB / 0.7001 GB, free: 16.19 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.7378, allocations: 2.73 MB / 0.7028 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.739, allocations: 0.7183 MB / 0.7035 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005737/0.7396, allocations: 400.6 kB / 0.7039 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002434/0.742, allocations: 2.627 MB / 0.7064 GB, free: 11.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.7421, allocations: 37.59 kB / 0.7065 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=64): time 2.695e-06/0.7421, allocations: 1.203 kB / 0.7065 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=66): time 0.004373/0.7465, allocations: 2.32 MB / 0.7087 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.7465, allocations: 62.69 kB / 0.7088 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.7469, allocations: 313.3 kB / 0.7091 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.7469, allocations: 35.14 kB / 0.7091 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.7471, allocations: 216.5 kB / 0.7093 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.7472, allocations: 221 kB / 0.7095 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.7474, allocations: 123.2 kB / 0.7097 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7475, allocations: 354.1 kB / 0.71 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.7479, allocations: 290.4 kB / 0.7103 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.7485, allocations: 356.1 kB / 0.7106 GB, free: 10.44 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.7495, allocations: 0.6724 MB / 0.7113 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7495, allocations: 3.25 kB / 0.7113 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001468/0.751, allocations: 0.8915 MB / 0.7122 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.751, allocations: 5.062 kB / 0.7122 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.7511, allocations: 5.906 kB / 0.7122 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003907/0.7515, allocations: 138 kB / 0.7123 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.7519, allocations: 108.2 kB / 0.7124 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002369/0.7543, allocations: 2.241 MB / 0.7146 GB, free: 8.914 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.7547, allocations: 35.73 kB / 0.7146 GB, free: 8.906 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-05/0.7547, allocations: 26.95 kB / 0.7146 GB, free: 8.906 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (57): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0002526/0.755, allocations: 186.5 kB / 0.7148 GB, free: 8.789 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.7551, allocations: 49.06 kB / 0.7149 GB, free: 8.762 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.7569, allocations: 1.053 MB / 0.7159 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.7569, allocations: 5.406 kB / 0.7159 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.7569, allocations: 2.531 kB / 0.7159 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.7569, allocations: 3.094 kB / 0.7159 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.7596, allocations: 1.863 MB / 0.7177 GB, free: 8.316 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.7596, allocations: 6.219 kB / 0.7177 GB, free: 8.312 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004539/0.7601, allocations: 114.3 kB / 0.7178 GB, free: 8.312 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003553/0.7604, allocations: 138.3 kB / 0.718 GB, free: 8.293 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.717e-05/0.7605, allocations: 27.53 kB / 0.718 GB, free: 8.289 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.7627, allocations: 2.172 MB / 0.7201 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7628, allocations: 0 / 0.7201 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02545/0.7882, allocations: 12.88 MB / 0.7327 GB, free: 1.508 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.7884, allocations: 119 kB / 0.7328 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.873e-05/0.7884, allocations: 13.38 kB / 0.7328 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.7888, allocations: 34.42 kB / 0.7329 GB, free: 1.383 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.7889, allocations: 56.83 kB / 0.7329 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/0.789, allocations: 25.23 kB / 0.7329 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001926/0.7892, allocations: 221.8 kB / 0.7332 GB, free: 1.293 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7892, allocations: 0 / 0.7332 GB, free: 1.293 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001385/0.7906, allocations: 0.4961 MB / 0.7336 GB, free: 1.219 MB / 0.5105 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009843/0.7916, allocations: 0.5356 MB / 0.7342 GB, free: 1.008 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001658/0.7932, allocations: 1.016 MB / 0.7352 GB, free: 0.7695 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.7933, allocations: 0 / 0.7352 GB, free: 0.7695 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009338/0.7942, allocations: 0.6884 MB / 0.7358 GB, free: 0.543 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008556/0.7951, allocations: 162.7 kB / 0.736 GB, free: 0.5234 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.798, allocations: 2.266 MB / 0.7382 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.7985, allocations: 0.9033 MB / 0.7391 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005107/0.7991, allocations: 149.9 kB / 0.7392 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.7993, allocations: 66.19 kB / 0.7393 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of SimCode: time 5.41e-07/0.7993, allocations: 0 / 0.7393 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of Templates: time 0.02552/0.8248, allocations: 18.67 MB / 0.7575 GB, free: 0.5664 MB / 0.5261 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","../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches