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.009162/0.009162, allocations: 101.8 kB / 15.73 MB, free: 6.012 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.001871/0.001871, allocations: 194.2 kB / 16.67 MB, free: 5.949 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6579/0.6579, allocations: 91.2 MB / 381.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 79.88 kB / 0.5164 GB, free: 9.488 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1328, allocations: 67.68 MB / 0.5825 GB, free: 5.73 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.4302/0.5631, allocations: 149.4 MB / 0.7283 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01562/0.5788, allocations: 12.01 MB / 0.74 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006978/0.5795, allocations: 19.88 kB / 0.7401 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.5807, allocations: 294.1 kB / 0.7403 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.5826, allocations: 0.5437 MB / 0.7409 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.5849, allocations: 0.7144 MB / 0.7416 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001298/0.5863, allocations: 0.922 MB / 0.7425 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003755/0.5866, allocations: 176.1 kB / 0.7426 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006906/0.5873, allocations: 386.5 kB / 0.743 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007342/0.5881, allocations: 466.3 kB / 0.7435 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.5882, allocations: 56 kB / 0.7435 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.5904, allocations: 1.057 MB / 0.7445 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.5906, allocations: 155.4 kB / 0.7447 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004004/0.591, allocations: 322.3 kB / 0.745 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.5929, allocations: 1.102 MB / 0.7461 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.5929, allocations: 0 / 0.7461 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5929, allocations: 0 / 0.7461 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.639e-05/0.5929, allocations: 0 / 0.7461 GB, free: 0.8281 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.002314/0.5952, allocations: 1.072 MB / 0.7471 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.5953, allocations: 8.031 kB / 0.7471 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.5954, allocations: 82.72 kB / 0.7472 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.5956, allocations: 68.19 kB / 0.7473 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007683/0.5963, allocations: 0.5056 MB / 0.7478 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.897e-05/0.5964, allocations: 96.33 kB / 0.7479 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.253e-05/0.5965, allocations: 51.91 kB / 0.7479 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.5977, allocations: 0.6576 MB / 0.7485 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.5978, allocations: 4 kB / 0.7486 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/0.5978, allocations: 19.94 kB / 0.7486 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.823e-05/0.5979, allocations: 24.98 kB / 0.7486 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.5991, allocations: 0.6597 MB / 0.7492 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.603, allocations: 2.447 MB / 0.7516 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.6042, allocations: 0.6192 MB / 0.7522 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.6049, allocations: 363 kB / 0.7526 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002486/0.6074, allocations: 2.62 MB / 0.7551 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.6074, allocations: 39.12 kB / 0.7552 GB, free: 6.633 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=62): time 2.444e-06/0.6074, allocations: 3.938 kB / 0.7552 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of matching and sorting (n=64): time 0.004436/0.6119, allocations: 2.151 MB / 0.7573 GB, free: 4.387 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.069e-05/0.612, allocations: 115.4 kB / 0.7574 GB, free: 4.25 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.6125, allocations: 418 kB / 0.7578 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/0.6126, allocations: 37.7 kB / 0.7578 GB, free: 3.789 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.6128, allocations: 245.5 kB / 0.7581 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.613, allocations: 216.8 kB / 0.7583 GB, free: 3.328 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.6132, allocations: 114.2 kB / 0.7584 GB, free: 3.211 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.6134, allocations: 370.7 kB / 0.7587 GB, free: 2.84 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.6138, allocations: 261.1 kB / 0.759 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.6144, allocations: 339.1 kB / 0.7593 GB, free: 2.227 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.6156, allocations: 0.6104 MB / 0.7599 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.6156, allocations: 4 kB / 0.7599 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001656/0.6172, allocations: 0.8345 MB / 0.7607 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.6173, allocations: 6.031 kB / 0.7607 GB, free: 0.7383 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.6173, allocations: 8.188 kB / 0.7607 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004418/0.6177, allocations: 143.9 kB / 0.7609 GB, free: 0.5898 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.6183, allocations: 111.8 kB / 0.761 GB, free: 492 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002908/0.6212, allocations: 2.463 MB / 0.7634 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.6216, allocations: 19.98 kB / 0.7634 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.988e-05/0.6217, allocations: 23.98 kB / 0.7634 GB, free: 13.84 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.0003076/0.622, allocations: 213.5 kB / 0.7636 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.6221, allocations: 59.25 kB / 0.7637 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.6241, allocations: 1.024 MB / 0.7647 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.6241, allocations: 8 kB / 0.7647 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.6241, allocations: 4 kB / 0.7647 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.6241, allocations: 3.984 kB / 0.7647 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002668/0.6268, allocations: 1.65 MB / 0.7663 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.6268, allocations: 4 kB / 0.7663 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.6273, allocations: 95.86 kB / 0.7664 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003743/0.6277, allocations: 132.6 kB / 0.7665 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.6277, allocations: 19.98 kB / 0.7665 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.6302, allocations: 2.4 MB / 0.7689 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.6302, allocations: 8 kB / 0.7689 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.6322, allocations: 1.253 MB / 0.7701 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.6323, allocations: 129.3 kB / 0.7702 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.371e-05/0.6324, allocations: 16 kB / 0.7703 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.6328, allocations: 19.98 kB / 0.7703 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.6329, allocations: 40.5 kB / 0.7703 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.6329, allocations: 19.98 kB / 0.7703 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003474/0.6333, allocations: 330.9 kB / 0.7707 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.403e-06/0.6333, allocations: 0 / 0.7707 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008355/0.6341, allocations: 299.8 kB / 0.7709 GB, free: 5.875 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.002782/0.6369, allocations: 2.067 MB / 0.773 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.6386, allocations: 0.884 MB / 0.7738 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.6386, allocations: 4.375 kB / 0.7738 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009666/0.6396, allocations: 0.5752 MB / 0.7744 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.6407, allocations: 210.4 kB / 0.7746 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008584/0.6493, allocations: 5.871 MB / 0.7803 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.6497, allocations: 0.8996 MB / 0.7812 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0004051/0.6502, allocations: 138.3 kB / 0.7813 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.6505, allocations: 231.3 kB / 0.7816 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.6505, allocations: 0 / 0.7816 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04846/0.699, allocations: 20.3 MB / 0.8014 GB, free: 6.645 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.84, allocations: 17.83 kB / 0.8014 GB, free: 6.629 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Turbine_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Turbine.fmu > 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","/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