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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine",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.004931/0.004931, allocations: 101.8 kB / 15.73 MB, free: 5.555 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.001264/0.001264, allocations: 191.4 kB / 16.67 MB, free: 5.484 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6689/0.6689, allocations: 89.49 MB / 380 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 71.88 kB / 0.5139 GB, free: 11.79 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1296, allocations: 67.3 MB / 0.5796 GB, free: 8.41 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.464/0.5936, allocations: 149.2 MB / 0.7254 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01377/0.6074, allocations: 11.98 MB / 0.7371 GB, free: 11.23 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005736/0.6081, allocations: 11.94 kB / 0.7371 GB, free: 11.22 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0009744/0.609, allocations: 294.1 kB / 0.7374 GB, free: 10.93 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.6106, allocations: 0.5165 MB / 0.7379 GB, free: 10.41 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.6128, allocations: 0.7087 MB / 0.7386 GB, free: 9.699 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.001119/0.6139, allocations: 0.8676 MB / 0.7394 GB, free: 8.828 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003108/0.6142, allocations: 169.6 kB / 0.7396 GB, free: 8.656 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005629/0.6148, allocations: 354.7 kB / 0.7399 GB, free: 8.309 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006877/0.6155, allocations: 462.5 kB / 0.7404 GB, free: 7.855 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 8.626e-05/0.6156, allocations: 52 kB / 0.7404 GB, free: 7.805 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.6178, allocations: 1.053 MB / 0.7415 GB, free: 6.75 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.618, allocations: 151.4 kB / 0.7416 GB, free: 6.602 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.6183, allocations: 298.6 kB / 0.7419 GB, free: 6.309 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.6201, allocations: 1.039 MB / 0.7429 GB, free: 5.27 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.6201, allocations: 3.938 kB / 0.7429 GB, free: 5.266 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6201, allocations: 0 / 0.7429 GB, free: 5.266 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.6201, allocations: 0 / 0.7429 GB, free: 5.266 MB / 0.5763 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.00205/0.6222, allocations: 1.02 MB / 0.7439 GB, free: 4.195 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.6222, allocations: 8.031 kB / 0.7439 GB, free: 4.188 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.6223, allocations: 90.64 kB / 0.744 GB, free: 4.09 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.6225, allocations: 68.52 kB / 0.7441 GB, free: 4.023 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.623, allocations: 396 kB / 0.7444 GB, free: 3.598 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.6231, allocations: 84.97 kB / 0.7445 GB, free: 3.5 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.376e-05/0.6232, allocations: 60.25 kB / 0.7446 GB, free: 3.441 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.6244, allocations: 0.6614 MB / 0.7452 GB, free: 2.754 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.6244, allocations: 0 / 0.7452 GB, free: 2.754 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.126e-05/0.6245, allocations: 20.88 kB / 0.7452 GB, free: 2.734 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-05/0.6245, allocations: 21 kB / 0.7453 GB, free: 2.715 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.6257, allocations: 0.6753 MB / 0.7459 GB, free: 2.039 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003553/0.6292, allocations: 2.429 MB / 0.7483 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.6305, allocations: 0.6269 MB / 0.7489 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006357/0.6311, allocations: 347 kB / 0.7492 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002712/0.6339, allocations: 2.616 MB / 0.7518 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.6339, allocations: 47.88 kB / 0.7518 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=62): time 3.727e-06/0.634, allocations: 0 / 0.7518 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of matching and sorting (n=64): time 0.004655/0.6386, allocations: 2.141 MB / 0.7539 GB, free: 9.02 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.388e-05/0.6387, allocations: 111.4 kB / 0.754 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.6392, allocations: 349.7 kB / 0.7544 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.769e-05/0.6393, allocations: 37.7 kB / 0.7544 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.6395, allocations: 225.7 kB / 0.7546 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.6398, allocations: 226 kB / 0.7548 GB, free: 8.047 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.64, allocations: 114.2 kB / 0.7549 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002062/0.6402, allocations: 362.8 kB / 0.7553 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/0.6407, allocations: 253.1 kB / 0.7555 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.6413, allocations: 346.2 kB / 0.7559 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.6424, allocations: 0.6142 MB / 0.7565 GB, free: 6.316 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.6424, allocations: 0.625 kB / 0.7565 GB, free: 6.316 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00165/0.6441, allocations: 0.8272 MB / 0.7573 GB, free: 5.477 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.6441, allocations: 8 kB / 0.7573 GB, free: 5.469 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.6441, allocations: 4 kB / 0.7573 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004544/0.6446, allocations: 140.2 kB / 0.7574 GB, free: 5.328 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.6451, allocations: 111.8 kB / 0.7575 GB, free: 5.219 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/0.648, allocations: 2.459 MB / 0.7599 GB, free: 2.629 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.6484, allocations: 23.95 kB / 0.7599 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.706e-05/0.6485, allocations: 31.92 kB / 0.76 GB, free: 2.574 MB / 0.5919 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.0002902/0.6488, allocations: 201.5 kB / 0.7602 GB, free: 2.367 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.6489, allocations: 51.67 kB / 0.7602 GB, free: 2.316 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.6512, allocations: 1.021 MB / 0.7612 GB, free: 1.27 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.6512, allocations: 11.98 kB / 0.7612 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.6512, allocations: 0 / 0.7612 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6512, allocations: 0 / 0.7612 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002844/0.6541, allocations: 1.627 MB / 0.7628 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.6541, allocations: 4 kB / 0.7628 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004613/0.6546, allocations: 100.5 kB / 0.7629 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004201/0.655, allocations: 136.8 kB / 0.763 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.6551, allocations: 15.98 kB / 0.7631 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002839/0.6579, allocations: 2.408 MB / 0.7654 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.6579, allocations: 0 / 0.7654 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.6602, allocations: 1.246 MB / 0.7666 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.6603, allocations: 116.8 kB / 0.7667 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.741e-05/0.6604, allocations: 12 kB / 0.7667 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.6607, allocations: 23.97 kB / 0.7668 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.228e-05/0.6608, allocations: 52.48 kB / 0.7668 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.6608, allocations: 19.98 kB / 0.7668 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003296/0.6612, allocations: 283.1 kB / 0.7671 GB, free: 11 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6612, allocations: 3.938 kB / 0.7671 GB, free: 11 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009037/0.6621, allocations: 283.4 kB / 0.7674 GB, free: 10.72 MB / 0.6075 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.003122/0.6652, allocations: 2.078 MB / 0.7694 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001808/0.667, allocations: 0.892 MB / 0.7703 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6671, allocations: 0 / 0.7703 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009839/0.668, allocations: 0.5793 MB / 0.7708 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.6691, allocations: 196.8 kB / 0.771 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008923/0.678, allocations: 5.61 MB / 0.7765 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/0.6786, allocations: 0.876 MB / 0.7774 GB, free: 284 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004766/0.6791, allocations: 133.9 kB / 0.7775 GB, free: 152 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.6795, allocations: 203.4 kB / 0.7777 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.6795, allocations: 0 / 0.7777 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0492/0.7287, allocations: 19.11 MB / 0.7964 GB, free: 12.98 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11.23, allocations: 15.73 kB / 0.7964 GB, free: 12.96 MB / 0.6388 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.csv --start-time 0 --stop-time 30 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.csv","/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) Reference file matches