Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Turbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Turbine,fileNamePrefix="ThermofluidStream_dev_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.005954/0.005954, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.001563/0.001564, allocations: 196.3 kB / 16.68 MB, free: 5.934 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.593/1.593, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7975/0.7975, allocations: 93.71 MB / 384.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00242/0.00242, allocations: 75.88 kB / 0.5199 GB, free: 1.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3104, allocations: 68.25 MB / 0.5866 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.1778/0.4882, allocations: 149.4 MB / 0.7325 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3617/0.85, allocations: 12 MB / 0.7442 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009663/0.851, allocations: 20.16 kB / 0.7442 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.8523, allocations: 295.4 kB / 0.7445 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002168/0.8545, allocations: 0.549 MB / 0.745 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002923/0.8575, allocations: 0.7196 MB / 0.7457 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001712/0.8592, allocations: 0.9461 MB / 0.7466 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004454/0.8596, allocations: 177.7 kB / 0.7468 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.8607, allocations: 386.9 kB / 0.7472 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009376/0.8616, allocations: 473.8 kB / 0.7476 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.8618, allocations: 53.38 kB / 0.7477 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.8653, allocations: 1.049 MB / 0.7487 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.8655, allocations: 158.3 kB / 0.7489 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004787/0.866, allocations: 326.2 kB / 0.7492 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.8685, allocations: 1.112 MB / 0.7503 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8685, allocations: 0 / 0.7503 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8685, allocations: 0.8438 kB / 0.7503 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.341e-05/0.8686, allocations: 0 / 0.7503 GB, free: 1.242 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.002425/0.871, allocations: 1.097 MB / 0.7513 GB, free: 16.61 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.8711, allocations: 9.438 kB / 0.7513 GB, free: 16.61 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.8712, allocations: 86.06 kB / 0.7514 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.8714, allocations: 76.94 kB / 0.7515 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009885/0.8724, allocations: 0.5122 MB / 0.752 GB, free: 16.26 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.8725, allocations: 99.33 kB / 0.7521 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.8727, allocations: 50.3 kB / 0.7521 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.874, allocations: 0.6649 MB / 0.7528 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.8741, allocations: 4.562 kB / 0.7528 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.8741, allocations: 26.48 kB / 0.7528 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.452e-05/0.8742, allocations: 19.12 kB / 0.7528 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.8755, allocations: 0.6707 MB / 0.7535 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.8792, allocations: 2.446 MB / 0.7559 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.8804, allocations: 0.6237 MB / 0.7565 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.881, allocations: 360.3 kB / 0.7568 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003238/0.8843, allocations: 2.62 MB / 0.7594 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/0.8843, allocations: 39.62 kB / 0.7594 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=62): time 2.825e-06/0.8844, allocations: 2.531 kB / 0.7594 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=64): time 0.004129/0.8885, allocations: 2.161 MB / 0.7615 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.8886, allocations: 112.1 kB / 0.7616 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.8891, allocations: 434.8 kB / 0.7621 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.8891, allocations: 34.52 kB / 0.7621 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.8893, allocations: 254.9 kB / 0.7623 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.8895, allocations: 236.1 kB / 0.7626 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.8897, allocations: 110.2 kB / 0.7627 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001873/0.8899, allocations: 373 kB / 0.763 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.8903, allocations: 252.8 kB / 0.7633 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005185/0.8909, allocations: 345.9 kB / 0.7636 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009712/0.8918, allocations: 0.6103 MB / 0.7642 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.8919, allocations: 7.938 kB / 0.7642 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001559/0.8934, allocations: 0.8362 MB / 0.765 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.8935, allocations: 5.344 kB / 0.765 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.8935, allocations: 6.5 kB / 0.765 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004859/0.894, allocations: 139 kB / 0.7652 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.8945, allocations: 108.9 kB / 0.7653 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/0.8973, allocations: 2.468 MB / 0.7677 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.8978, allocations: 19.97 kB / 0.7677 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-05/0.8979, allocations: 26.75 kB / 0.7677 GB, free: 8.848 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.0003301/0.8983, allocations: 200.9 kB / 0.7679 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.8984, allocations: 65.23 kB / 0.768 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.9002, allocations: 1.035 MB / 0.769 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.9002, allocations: 10.22 kB / 0.769 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.9002, allocations: 3.875 kB / 0.769 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.9002, allocations: 5.906 kB / 0.769 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.9029, allocations: 1.66 MB / 0.7706 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.9029, allocations: 4.438 kB / 0.7706 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.9034, allocations: 97.2 kB / 0.7707 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.9038, allocations: 131 kB / 0.7708 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.727e-05/0.9038, allocations: 24.28 kB / 0.7709 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002866/0.9067, allocations: 2.408 MB / 0.7732 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.9067, allocations: 0.7812 kB / 0.7732 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.9089, allocations: 1.25 MB / 0.7744 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.9091, allocations: 132.3 kB / 0.7746 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.42e-05/0.9092, allocations: 17.59 kB / 0.7746 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.9095, allocations: 21.45 kB / 0.7746 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.636e-05/0.9096, allocations: 44.67 kB / 0.7746 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.9097, allocations: 22.83 kB / 0.7747 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003789/0.9101, allocations: 334.5 kB / 0.775 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.8e-07/0.9101, allocations: 0.9375 kB / 0.775 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009325/0.911, allocations: 290.1 kB / 0.7753 GB, free: 6.223 MB / 0.5919 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.003116/0.9141, allocations: 2.083 MB / 0.7773 GB, free: 5.441 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001918/0.9161, allocations: 0.8879 MB / 0.7782 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.9161, allocations: 0.8125 kB / 0.7782 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.9171, allocations: 0.5811 MB / 0.7787 GB, free: 5.051 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.9183, allocations: 215.7 kB / 0.7789 GB, free: 5.016 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009318/0.9276, allocations: 5.924 MB / 0.7847 GB, free: 3.188 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.9283, allocations: 0.9038 MB / 0.7856 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005008/0.9288, allocations: 140.2 kB / 0.7857 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.9291, allocations: 232.4 kB / 0.786 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of SimCode: time 6.72e-07/0.9291, allocations: 0 / 0.786 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05737/0.9865, allocations: 20.12 MB / 0.8056 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.47, allocations: 8 kB / 0.8056 GB, free: 8.527 MB / 0.6075 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_Turbine.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Turbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Turbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches