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.006933/0.006933, allocations: 100.6 kB / 15.73 MB, free: 6.066 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.001721/0.001721, allocations: 195.5 kB / 16.67 MB, free: 5.969 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6559/0.6559, allocations: 89.46 MB / 380 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 83.86 kB / 0.5139 GB, free: 7.172 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2895, allocations: 67.29 MB / 0.5796 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Turbine): time 0.1588/0.4484, allocations: 149.2 MB / 0.7254 GB, free: 11 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3321/0.7806, allocations: 11.97 MB / 0.7371 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000512/0.7811, allocations: 11.88 kB / 0.7371 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008473/0.782, allocations: 288.7 kB / 0.7374 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.7832, allocations: 0.5217 MB / 0.7379 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.7852, allocations: 0.7207 MB / 0.7386 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009949/0.7862, allocations: 0.8648 MB / 0.7394 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.7865, allocations: 172.8 kB / 0.7396 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004356/0.7869, allocations: 358.2 kB / 0.7399 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005547/0.7875, allocations: 455.4 kB / 0.7404 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.192e-05/0.7876, allocations: 55.67 kB / 0.7404 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002127/0.7897, allocations: 1.048 MB / 0.7414 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.7899, allocations: 143.2 kB / 0.7416 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003404/0.7902, allocations: 307.3 kB / 0.7419 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001855/0.7921, allocations: 1.04 MB / 0.7429 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.7921, allocations: 1.594 kB / 0.7429 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.305e-06/0.7921, allocations: 0 / 0.7429 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.7921, allocations: 1.734 kB / 0.7429 GB, free: 1.301 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.002134/0.7943, allocations: 1.02 MB / 0.7439 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.7943, allocations: 8.281 kB / 0.7439 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.951e-05/0.7944, allocations: 89.27 kB / 0.744 GB, free: 16.67 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.7946, allocations: 69.67 kB / 0.744 GB, free: 16.63 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.795, allocations: 395.3 kB / 0.7444 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.7951, allocations: 97.05 kB / 0.7445 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.7952, allocations: 50.23 kB / 0.7445 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009487/0.7962, allocations: 0.6676 MB / 0.7452 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.7962, allocations: 1.203 kB / 0.7452 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.726e-05/0.7963, allocations: 20.91 kB / 0.7452 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.7963, allocations: 20.06 kB / 0.7452 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.7975, allocations: 0.6673 MB / 0.7459 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003757/0.8012, allocations: 2.427 MB / 0.7483 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.8025, allocations: 0.6245 MB / 0.7489 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005997/0.8031, allocations: 361.3 kB / 0.7492 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002595/0.8057, allocations: 2.615 MB / 0.7518 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.8058, allocations: 42.12 kB / 0.7518 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=62): time 2.605e-06/0.8058, allocations: 0.5625 kB / 0.7518 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of matching and sorting (n=64): time 0.003818/0.8096, allocations: 2.143 MB / 0.7539 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.8097, allocations: 108.6 kB / 0.754 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.81, allocations: 359.4 kB / 0.7544 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.902e-05/0.8101, allocations: 34.98 kB / 0.7544 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.8102, allocations: 219.8 kB / 0.7546 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.8104, allocations: 231.4 kB / 0.7548 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.8105, allocations: 112.6 kB / 0.7549 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.8107, allocations: 358.5 kB / 0.7553 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/0.8111, allocations: 256.8 kB / 0.7555 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004524/0.8115, allocations: 343.2 kB / 0.7558 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009014/0.8125, allocations: 0.6104 MB / 0.7564 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8125, allocations: 3.094 kB / 0.7564 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001359/0.8138, allocations: 0.8332 MB / 0.7572 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.8139, allocations: 7.344 kB / 0.7573 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.8139, allocations: 2.094 kB / 0.7573 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003909/0.8143, allocations: 131 kB / 0.7574 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.8147, allocations: 113.9 kB / 0.7575 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.8173, allocations: 2.461 MB / 0.7599 GB, free: 9.027 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.8177, allocations: 22.8 kB / 0.7599 GB, free: 9.027 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.627e-05/0.8177, allocations: 29.42 kB / 0.7599 GB, free: 9.023 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.0002664/0.818, allocations: 199.5 kB / 0.7601 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.8181, allocations: 56.11 kB / 0.7602 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.8198, allocations: 1.029 MB / 0.7612 GB, free: 8.73 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.8198, allocations: 4.281 kB / 0.7612 GB, free: 8.73 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.8198, allocations: 4.438 kB / 0.7612 GB, free: 8.73 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.8198, allocations: 2.906 kB / 0.7612 GB, free: 8.73 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.822, allocations: 1.628 MB / 0.7628 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.822, allocations: 7.406 kB / 0.7628 GB, free: 8.391 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.8224, allocations: 98.94 kB / 0.7629 GB, free: 8.391 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003533/0.8228, allocations: 131.7 kB / 0.763 GB, free: 8.379 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.8229, allocations: 17.5 kB / 0.763 GB, free: 8.379 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002356/0.8252, allocations: 2.409 MB / 0.7654 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.8252, allocations: 0.7188 kB / 0.7654 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.8271, allocations: 1.237 MB / 0.7666 GB, free: 6.668 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.8272, allocations: 125.6 kB / 0.7667 GB, free: 6.547 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.8273, allocations: 14.91 kB / 0.7667 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.8276, allocations: 28.28 kB / 0.7668 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.8277, allocations: 43.45 kB / 0.7668 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.8277, allocations: 26.22 kB / 0.7668 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000267/0.828, allocations: 278.2 kB / 0.7671 GB, free: 6.453 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.828, allocations: 1.031 kB / 0.7671 GB, free: 6.453 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009337/0.829, allocations: 290.7 kB / 0.7674 GB, free: 6.414 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.002664/0.8316, allocations: 2.078 MB / 0.7694 GB, free: 5.637 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001479/0.8331, allocations: 0.8871 MB / 0.7703 GB, free: 5.438 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8331, allocations: 1 kB / 0.7703 GB, free: 5.438 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008216/0.834, allocations: 0.5791 MB / 0.7708 GB, free: 5.246 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009529/0.8349, allocations: 197.9 kB / 0.771 GB, free: 5.223 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007332/0.8423, allocations: 5.606 MB / 0.7765 GB, free: 3.453 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.8428, allocations: 0.8799 MB / 0.7774 GB, free: 2.75 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004177/0.8432, allocations: 130.8 kB / 0.7775 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.8434, allocations: 196.4 kB / 0.7777 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of SimCode: time 1.543e-06/0.8434, allocations: 4.219 kB / 0.7777 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04951/0.893, allocations: 19.13 MB / 0.7964 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.55, allocations: 3.938 kB / 0.7964 GB, free: 12.71 MB / 0.6075 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