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: "" <> 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.008426/0.008426, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.001724/0.001724, allocations: 198.5 kB / 16.68 MB, free: 5.984 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7611/0.7611, allocations: 91.19 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 71.89 kB / 0.5164 GB, free: 9.52 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1524, allocations: 67.69 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.5052/0.6577, allocations: 149.3 MB / 0.7283 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.014/0.6717, allocations: 12.01 MB / 0.74 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009093/0.6727, allocations: 19.88 kB / 0.7401 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.6739, allocations: 298.1 kB / 0.7403 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001958/0.676, allocations: 0.5515 MB / 0.7409 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00223/0.6782, allocations: 0.712 MB / 0.7416 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001493/0.6797, allocations: 0.9142 MB / 0.7425 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.6801, allocations: 169.6 kB / 0.7426 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007558/0.6809, allocations: 398.5 kB / 0.743 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007147/0.6816, allocations: 474.2 kB / 0.7435 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.6817, allocations: 52 kB / 0.7435 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0026/0.6843, allocations: 1.053 MB / 0.7445 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.6846, allocations: 159.4 kB / 0.7447 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004497/0.6851, allocations: 322.3 kB / 0.745 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002913/0.688, allocations: 1.105 MB / 0.7461 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.6881, allocations: 7.938 kB / 0.7461 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.745e-06/0.6881, allocations: 0 / 0.7461 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.535e-05/0.6881, allocations: 0 / 0.7461 GB, free: 0.7188 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002451/0.6905, allocations: 1.078 MB / 0.7471 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.6906, allocations: 12.03 kB / 0.7471 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.6907, allocations: 90.64 kB / 0.7472 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/0.6909, allocations: 72.52 kB / 0.7473 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007732/0.6917, allocations: 0.4982 MB / 0.7478 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.6918, allocations: 100.3 kB / 0.7479 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.6919, allocations: 51.94 kB / 0.7479 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.693, allocations: 0.6615 MB / 0.7486 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.6931, allocations: 0 / 0.7486 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.6931, allocations: 20 kB / 0.7486 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-05/0.6932, allocations: 28.88 kB / 0.7486 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.6944, allocations: 0.6675 MB / 0.7493 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003747/0.6981, allocations: 2.441 MB / 0.7517 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.6994, allocations: 0.6269 MB / 0.7523 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006499/0.7001, allocations: 363 kB / 0.7526 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002558/0.7027, allocations: 2.616 MB / 0.7552 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.7027, allocations: 47.06 kB / 0.7552 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=62): time 2.645e-06/0.7027, allocations: 0 / 0.7552 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of matching and sorting (n=64): time 0.004499/0.7072, allocations: 2.161 MB / 0.7573 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.7073, allocations: 107.4 kB / 0.7574 GB, free: 4.109 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.7078, allocations: 426 kB / 0.7578 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.815e-05/0.7079, allocations: 33.7 kB / 0.7579 GB, free: 3.645 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.7081, allocations: 261.6 kB / 0.7581 GB, free: 3.383 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.7082, allocations: 222 kB / 0.7583 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.7084, allocations: 118.2 kB / 0.7584 GB, free: 3.043 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.7086, allocations: 362.8 kB / 0.7588 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.7091, allocations: 257.1 kB / 0.759 GB, free: 2.43 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000548/0.7096, allocations: 342.3 kB / 0.7594 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.7107, allocations: 0.6142 MB / 0.76 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.7108, allocations: 0 / 0.76 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00161/0.7124, allocations: 0.846 MB / 0.7608 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.7124, allocations: 4 kB / 0.7608 GB, free: 0.5703 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.7124, allocations: 4 kB / 0.7608 GB, free: 0.5664 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004372/0.7129, allocations: 137.7 kB / 0.7609 GB, free: 440 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.7134, allocations: 111.8 kB / 0.761 GB, free: 328 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/0.7164, allocations: 2.476 MB / 0.7635 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.7169, allocations: 23.98 kB / 0.7635 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.7169, allocations: 23.98 kB / 0.7635 GB, free: 13.66 MB / 0.6075 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.0003289/0.7173, allocations: 201.6 kB / 0.7637 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.7174, allocations: 59.62 kB / 0.7637 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.7194, allocations: 1.033 MB / 0.7648 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.7194, allocations: 4 kB / 0.7648 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.7194, allocations: 4 kB / 0.7648 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.7194, allocations: 3.984 kB / 0.7648 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.7222, allocations: 1.65 MB / 0.7664 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/0.7222, allocations: 7.938 kB / 0.7664 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.7227, allocations: 95.88 kB / 0.7665 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004189/0.7232, allocations: 132.8 kB / 0.7666 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.963e-05/0.7232, allocations: 27.97 kB / 0.7666 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.7258, allocations: 2.391 MB / 0.769 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.7258, allocations: 3.984 kB / 0.769 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.7281, allocations: 1.262 MB / 0.7702 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.7283, allocations: 132.7 kB / 0.7703 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.7284, allocations: 19.94 kB / 0.7703 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003409/0.7288, allocations: 26.41 kB / 0.7704 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.896e-05/0.7289, allocations: 52.42 kB / 0.7704 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.7289, allocations: 19.98 kB / 0.7704 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003618/0.7293, allocations: 326.9 kB / 0.7708 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7293, allocations: 0 / 0.7708 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009527/0.7302, allocations: 287.4 kB / 0.771 GB, free: 5.695 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.003015/0.7333, allocations: 2.066 MB / 0.773 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001908/0.7352, allocations: 0.9036 MB / 0.7739 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.7353, allocations: 0 / 0.7739 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.7363, allocations: 0.5871 MB / 0.7745 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.7375, allocations: 206.1 kB / 0.7747 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009258/0.7468, allocations: 5.881 MB / 0.7804 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.7474, allocations: 0.8957 MB / 0.7813 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0004916/0.7479, allocations: 140.6 kB / 0.7815 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.7482, allocations: 231.3 kB / 0.7817 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of SimCode: time 8.41e-07/0.7482, allocations: 0 / 0.7817 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0509/0.7991, allocations: 20.01 MB / 0.8012 GB, free: 6.719 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.32, allocations: 7.875 kB / 0.8012 GB, free: 6.711 MB / 0.6387 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