Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009046/0.0009046, allocations: 173.9 kB / 15.43 MB, free: 5.891 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 225.7 MB / 241.9 MB, free: 388 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007854/0.0007855, allocations: 90.55 kB / 293.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6256/0.6256, allocations: 91.65 MB / 435.8 MB, free: 23.59 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002805, allocations: 8 kB / 0.5038 GB, free: 8.328 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 69.29 MB / 0.5714 GB, free: 45.57 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.1279/0.4161, allocations: 138.3 MB / 0.7065 GB, free: 164 kB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01405/0.4302, allocations: 15.03 MB / 0.7211 GB, free: 220 kB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005253/0.4307, allocations: 11.94 kB / 0.7212 GB, free: 208 kB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0008356/0.4316, allocations: 246.7 kB / 0.7214 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.433, allocations: 0.4973 MB / 0.7219 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001895/0.4349, allocations: 0.6267 MB / 0.7225 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001177/0.4361, allocations: 1.111 MB / 0.7236 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.4364, allocations: 145.1 kB / 0.7237 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005839/0.437, allocations: 314.7 kB / 0.724 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.4377, allocations: 446.3 kB / 0.7244 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.4378, allocations: 32 kB / 0.7245 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.4399, allocations: 1.041 MB / 0.7255 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.44, allocations: 111.5 kB / 0.7256 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003369/0.4404, allocations: 304.3 kB / 0.7259 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.4421, allocations: 1.015 MB / 0.7269 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4422, allocations: 4 kB / 0.7269 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4422, allocations: 0 / 0.7269 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.981e-05/0.4422, allocations: 0 / 0.7269 GB, free: 10.31 MB / 0.5261 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.001869/0.4441, allocations: 0.9042 MB / 0.7278 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4441, allocations: 15.98 kB / 0.7278 GB, free: 9.344 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.4443, allocations: 64.19 kB / 0.7278 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.4448, allocations: 391.7 kB / 0.7282 GB, free: 8.859 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.102e-05/0.4449, allocations: 92.95 kB / 0.7283 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.445, allocations: 48.38 kB / 0.7283 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.4461, allocations: 0.6589 MB / 0.729 GB, free: 8.039 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.4462, allocations: 7.844 kB / 0.729 GB, free: 8.031 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/0.4462, allocations: 23.98 kB / 0.729 GB, free: 8.008 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.4463, allocations: 21 kB / 0.729 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.4474, allocations: 0.6675 MB / 0.7297 GB, free: 7.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003761/0.4512, allocations: 2.756 MB / 0.7324 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.4525, allocations: 0.717 MB / 0.7331 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006469/0.4532, allocations: 402.3 kB / 0.7335 GB, free: 3.227 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002344/0.4556, allocations: 2.624 MB / 0.736 GB, free: 32 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.282e-05/0.4557, allocations: 43.2 kB / 0.7361 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=64): time 3.106e-06/0.4557, allocations: 0 / 0.7361 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=66): time 0.004246/0.4599, allocations: 2.339 MB / 0.7384 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.46, allocations: 59.91 kB / 0.7384 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.4603, allocations: 305.7 kB / 0.7387 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.4604, allocations: 41.7 kB / 0.7387 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.4605, allocations: 209.3 kB / 0.7389 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.4607, allocations: 232.6 kB / 0.7392 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.4607, allocations: 8 kB / 0.7392 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4609, allocations: 362.8 kB / 0.7395 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000532/0.4614, allocations: 297 kB / 0.7398 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005445/0.462, allocations: 354.8 kB / 0.7401 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.4631, allocations: 0.6828 MB / 0.7408 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4631, allocations: 4 kB / 0.7408 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001553/0.4646, allocations: 0.8933 MB / 0.7417 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4647, allocations: 8 kB / 0.7417 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.4647, allocations: 4 kB / 0.7417 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003951/0.4651, allocations: 140.8 kB / 0.7418 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.4656, allocations: 107.9 kB / 0.7419 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/0.4681, allocations: 2.24 MB / 0.7441 GB, free: 7.422 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.4685, allocations: 31.86 kB / 0.7442 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/0.4685, allocations: 31.98 kB / 0.7442 GB, free: 7.359 MB / 0.5417 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.0002483/0.4688, allocations: 197.6 kB / 0.7444 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.4689, allocations: 47.42 kB / 0.7444 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.4708, allocations: 1.05 MB / 0.7454 GB, free: 6.043 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.4709, allocations: 8 kB / 0.7454 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4709, allocations: 4 kB / 0.7455 GB, free: 6.031 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4709, allocations: 3.984 kB / 0.7455 GB, free: 6.027 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002843/0.4737, allocations: 1.86 MB / 0.7473 GB, free: 4.105 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.4738, allocations: 8 kB / 0.7473 GB, free: 4.098 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.4743, allocations: 119.8 kB / 0.7474 GB, free: 3.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003659/0.4746, allocations: 132.6 kB / 0.7475 GB, free: 3.848 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.4747, allocations: 27.98 kB / 0.7475 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.477, allocations: 2.167 MB / 0.7497 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.477, allocations: 0 / 0.7497 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.4793, allocations: 1.471 MB / 0.7511 GB, free: 36 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.4795, allocations: 124.6 kB / 0.7512 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.281e-05/0.4796, allocations: 19.92 kB / 0.7512 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.4799, allocations: 35.89 kB / 0.7513 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.4801, allocations: 56.52 kB / 0.7513 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.884e-05/0.4801, allocations: 31.97 kB / 0.7514 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002019/0.4803, allocations: 215.2 kB / 0.7516 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4803, allocations: 0 / 0.7516 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000829/0.4812, allocations: 288 kB / 0.7518 GB, free: 15.27 MB / 0.5573 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.0006418/0.4818, allocations: 387.8 kB / 0.7522 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001727/0.4836, allocations: 1.02 MB / 0.7532 GB, free: 13.82 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4836, allocations: 0 / 0.7532 GB, free: 13.82 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.4846, allocations: 0.6985 MB / 0.7539 GB, free: 13.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008286/0.4855, allocations: 154 kB / 0.754 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.4877, allocations: 1.676 MB / 0.7557 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.4882, allocations: 0.8841 MB / 0.7565 GB, free: 10.34 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004201/0.4886, allocations: 140.2 kB / 0.7567 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.4887, allocations: 59.39 kB / 0.7567 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of SimCode: time 4.1e-07/0.4888, allocations: 0 / 0.7567 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of Templates: time 0.259/0.7477, allocations: 12.59 MB / 0.769 GB, free: 49.7 MB / 0.5573 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