Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Examples.SimpleGasTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PI.I.y|Time|compressor.m_flow|compressor.omega|inertia.phi|turbine.m_flow|volume.M|volume.U_med",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine") translateModel(ThermofluidStream.Examples.SimpleGasTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="PI.I.y|Time|compressor.m_flow|compressor.omega|inertia.phi|turbine.m_flow|volume.M|volume.U_med",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008658/0.0008658, allocations: 170.5 kB / 16.11 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.233/1.233, allocations: 205 MB / 221.9 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007595/0.0007596, allocations: 93.28 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6422/0.6422, allocations: 90.51 MB / 408.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003006, allocations: 11.98 kB / 484.9 MB, free: 7.199 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2515, allocations: 65.8 MB / 0.5377 GB, free: 34.97 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleGasTurbine): time 0.3905/0.6421, allocations: 192.5 MB / 0.7258 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.02014/0.6622, allocations: 28.61 MB / 0.7537 GB, free: 496 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.6634, allocations: 26.59 kB / 0.7537 GB, free: 496 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0009034/0.6643, allocations: 374.3 kB / 0.7541 GB, free: 484 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001661/0.666, allocations: 0.7522 MB / 0.7548 GB, free: 440 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.004184/0.6702, allocations: 1.825 MB / 0.7566 GB, free: 372 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001215/0.6714, allocations: 1.749 MB / 0.7583 GB, free: 360 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.6718, allocations: 321.5 kB / 0.7586 GB, free: 280 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008203/0.6726, allocations: 0.6086 MB / 0.7592 GB, free: 280 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.673, allocations: 0.5124 MB / 0.7597 GB, free: 280 kB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 9.131e-05/0.6731, allocations: 44.5 kB / 0.7598 GB, free: 276 kB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.6758, allocations: 1.442 MB / 0.7612 GB, free: 168 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.676, allocations: 178.3 kB / 0.7613 GB, free: 120 kB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.6764, allocations: 498.2 kB / 0.7618 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.6788, allocations: 2.088 MB / 0.7639 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.6788, allocations: 0 / 0.7639 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6788, allocations: 0 / 0.7639 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.6788, allocations: 0 / 0.7639 GB, free: 14.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002271/0.6811, allocations: 1.455 MB / 0.7653 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.6811, allocations: 8 kB / 0.7653 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002655/0.6838, allocations: 275.3 kB / 0.7656 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007694/0.6846, allocations: 0.63 MB / 0.7662 GB, free: 13 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.6847, allocations: 119.2 kB / 0.7663 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.6848, allocations: 90.62 kB / 0.7664 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.6863, allocations: 0.9517 MB / 0.7673 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.6863, allocations: 3.938 kB / 0.7673 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.391e-05/0.6864, allocations: 37.16 kB / 0.7673 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.6864, allocations: 19.84 kB / 0.7674 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.6878, allocations: 0.7101 MB / 0.7681 GB, free: 11.95 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005302/0.6931, allocations: 3.964 MB / 0.7719 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.6943, allocations: 0.7123 MB / 0.7726 GB, free: 8.188 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005944/0.6949, allocations: 350 kB / 0.773 GB, free: 8.023 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002557/0.6975, allocations: 2.911 MB / 0.7758 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.6975, allocations: 46.03 kB / 0.7758 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=72): time 2.395e-06/0.6975, allocations: 0 / 0.7758 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.002996/0.7005, allocations: 1.576 MB / 0.7774 GB, free: 3.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.7006, allocations: 119.9 kB / 0.7775 GB, free: 3.598 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006102/0.7012, allocations: 0.6308 MB / 0.7781 GB, free: 3.227 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.969e-05/0.7013, allocations: 37.14 kB / 0.7781 GB, free: 3.188 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.7016, allocations: 475.3 kB / 0.7786 GB, free: 2.773 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.7017, allocations: 249.1 kB / 0.7788 GB, free: 2.559 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.7018, allocations: 17.03 kB / 0.7788 GB, free: 2.547 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.7019, allocations: 334.5 kB / 0.7792 GB, free: 2.219 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006076/0.7025, allocations: 276.6 kB / 0.7794 GB, free: 2.094 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007348/0.7033, allocations: 436.9 kB / 0.7798 GB, free: 1.773 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.7046, allocations: 0.6998 MB / 0.7805 GB, free: 1.129 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.7046, allocations: 7.984 kB / 0.7805 GB, free: 1.121 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001842/0.7064, allocations: 0.962 MB / 0.7815 GB, free: 172 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.7066, allocations: 213.2 kB / 0.7817 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.7066, allocations: 11.94 kB / 0.7817 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004152/0.707, allocations: 123.4 kB / 0.7818 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005917/0.7076, allocations: 172.7 kB / 0.782 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.7114, allocations: 5.5 MB / 0.7873 GB, free: 9.602 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.712, allocations: 111.2 kB / 0.7875 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/0.7121, allocations: 55.98 kB / 0.7875 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/0.7121, allocations: 6.812 kB / 0.7875 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001502/0.7136, allocations: 0.8091 MB / 0.7883 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.7136, allocations: 4 kB / 0.7883 GB, free: 8.641 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000339/0.7139, allocations: 131.5 kB / 0.7884 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.7145, allocations: 152.6 kB / 0.7886 GB, free: 8.359 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00352/0.718, allocations: 5.51 MB / 0.794 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004878/0.7185, allocations: 86.39 kB / 0.794 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.932e-05/0.7186, allocations: 59.98 kB / 0.7941 GB, free: 2.203 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 1 (PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,4,100.0%), (1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003842/0.719, allocations: 299.8 kB / 0.7944 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.7192, allocations: 94.83 kB / 0.7945 GB, free: 1.816 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.7214, allocations: 1.018 MB / 0.7955 GB, free: 0.7773 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.7214, allocations: 7.984 kB / 0.7955 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.7215, allocations: 4 kB / 0.7955 GB, free: 0.7656 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.7218, allocations: 227.8 kB / 0.7957 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.7219, allocations: 19.94 kB / 0.7957 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008159/0.7227, allocations: 67.88 kB / 0.7958 GB, free: 448 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.566e-05/0.7228, allocations: 64.56 kB / 0.7958 GB, free: 384 kB / 0.5261 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002299/0.7251, allocations: 0.9803 MB / 0.7968 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00204/0.7271, allocations: 1.254 MB / 0.798 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005578/0.7277, allocations: 309.1 kB / 0.7983 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004295/0.7282, allocations: 431 kB / 0.7987 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of Backend: time 7.32e-07/0.7282, allocations: 0 / 0.7987 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004353/0.7325, allocations: 2.751 MB / 0.8014 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of SimCode: time 0.003398/0.7359, allocations: 3.078 MB / 0.8044 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of Templates: time 0.03362/0.7696, allocations: 24.92 MB / 0.8288 GB, free: 14.7 MB / 0.573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Examples.SimpleGasTurbine_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleGasTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches