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.0009226/0.0009227, allocations: 168.9 kB / 16.1 MB, free: 5.691 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.391/1.391, allocations: 205 MB / 221.9 MB, free: 9.137 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.0007472/0.0007476, allocations: 86.38 kB / 269.9 MB, free: 8.672 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.7368/0.7368, allocations: 90.51 MB / 408.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003496, allocations: 8.281 kB / 484.8 MB, free: 7.227 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2998, allocations: 65.81 MB / 0.5377 GB, free: 34.85 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleGasTurbine): time 0.501/0.8009, allocations: 192.6 MB / 0.7258 GB, free: 1.105 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.02559/0.8265, allocations: 28.6 MB / 0.7537 GB, free: 476 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.8291, allocations: 30.92 kB / 0.7537 GB, free: 476 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.8308, allocations: 372 kB / 0.7541 GB, free: 464 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.002856/0.8337, allocations: 0.7409 MB / 0.7548 GB, free: 428 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00593/0.8396, allocations: 1.831 MB / 0.7566 GB, free: 360 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002458/0.8421, allocations: 1.746 MB / 0.7583 GB, free: 348 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005648/0.8427, allocations: 315 kB / 0.7586 GB, free: 272 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001676/0.8443, allocations: 0.621 MB / 0.7592 GB, free: 268 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006628/0.845, allocations: 0.5109 MB / 0.7597 GB, free: 264 kB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 9.581e-05/0.8451, allocations: 37.66 kB / 0.7598 GB, free: 264 kB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004329/0.8495, allocations: 1.445 MB / 0.7612 GB, free: 184 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.8497, allocations: 186.2 kB / 0.7613 GB, free: 132 kB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0006654/0.8504, allocations: 498.8 kB / 0.7618 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.8528, allocations: 1.507 MB / 0.7633 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8529, allocations: 0 / 0.7633 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8529, allocations: 0 / 0.7633 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.8529, allocations: 4 kB / 0.7633 GB, free: 15.05 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.002602/0.8555, allocations: 1.452 MB / 0.7647 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.8556, allocations: 12.59 kB / 0.7647 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002502/0.8581, allocations: 273 kB / 0.765 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000929/0.859, allocations: 0.6287 MB / 0.7656 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.8591, allocations: 125.4 kB / 0.7657 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.8593, allocations: 90.91 kB / 0.7658 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.8608, allocations: 0.9463 MB / 0.7667 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/0.8608, allocations: 6.781 kB / 0.7667 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.364e-05/0.8609, allocations: 32.72 kB / 0.7668 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.8609, allocations: 20.88 kB / 0.7668 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.8622, allocations: 0.7092 MB / 0.7675 GB, free: 12.3 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.005619/0.8679, allocations: 3.972 MB / 0.7714 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.8692, allocations: 0.7124 MB / 0.7721 GB, free: 8.535 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005852/0.8698, allocations: 337.9 kB / 0.7724 GB, free: 8.379 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002882/0.8727, allocations: 2.916 MB / 0.7752 GB, free: 5.176 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.8727, allocations: 47.69 kB / 0.7753 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=72): time 3.066e-06/0.8727, allocations: 0 / 0.7753 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.003101/0.8758, allocations: 1.577 MB / 0.7768 GB, free: 4.078 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.8759, allocations: 116.3 kB / 0.7769 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007015/0.8766, allocations: 0.6328 MB / 0.7775 GB, free: 3.578 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.8767, allocations: 40.86 kB / 0.7776 GB, free: 3.535 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.877, allocations: 469.4 kB / 0.778 GB, free: 3.125 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.8772, allocations: 253.2 kB / 0.7783 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/0.8773, allocations: 15.34 kB / 0.7783 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.8774, allocations: 332.7 kB / 0.7786 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005229/0.8779, allocations: 271.6 kB / 0.7789 GB, free: 2.449 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007042/0.8786, allocations: 440.4 kB / 0.7793 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.88, allocations: 0.6968 MB / 0.78 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.88, allocations: 4 kB / 0.78 GB, free: 1.672 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001881/0.8819, allocations: 0.9671 MB / 0.7809 GB, free: 0.7148 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.8821, allocations: 212.8 kB / 0.7811 GB, free: 464 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.8821, allocations: 7.984 kB / 0.7811 GB, free: 456 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/0.8826, allocations: 131.4 kB / 0.7812 GB, free: 312 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/0.8832, allocations: 166.1 kB / 0.7814 GB, free: 156 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.8871, allocations: 5.505 MB / 0.7868 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/0.8879, allocations: 111.2 kB / 0.7869 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.888, allocations: 59.98 kB / 0.7869 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/0.888, allocations: 4 kB / 0.7869 GB, free: 9.973 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001522/0.8895, allocations: 0.808 MB / 0.7877 GB, free: 9.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.8896, allocations: 4 kB / 0.7877 GB, free: 9.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.8899, allocations: 130.5 kB / 0.7879 GB, free: 9.043 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.8904, allocations: 156.6 kB / 0.788 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.8942, allocations: 5.506 MB / 0.7934 GB, free: 2.887 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006606/0.8949, allocations: 83.48 kB / 0.7935 GB, free: 2.805 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.936e-05/0.895, allocations: 55.98 kB / 0.7935 GB, free: 2.75 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.0004817/0.8954, allocations: 303.8 kB / 0.7938 GB, free: 2.453 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.8956, allocations: 89.81 kB / 0.7939 GB, free: 2.367 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.8978, allocations: 1.023 MB / 0.7949 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.8978, allocations: 11.98 kB / 0.7949 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.8978, allocations: 0 / 0.7949 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.8979, allocations: 10.83 kB / 0.7949 GB, free: 1.301 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/0.9008, allocations: 1.837 MB / 0.7967 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.9008, allocations: 7.984 kB / 0.7967 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.9013, allocations: 129.8 kB / 0.7968 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004296/0.9018, allocations: 148.1 kB / 0.797 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.942e-05/0.9018, allocations: 31.98 kB / 0.797 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004141/0.906, allocations: 6.04 MB / 0.8029 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.906, allocations: 32 / 0.8029 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.9084, allocations: 1.299 MB / 0.8042 GB, free: 7.219 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.9088, allocations: 227.9 kB / 0.8044 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.9089, allocations: 12 kB / 0.8044 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007745/0.9097, allocations: 87.84 kB / 0.8045 GB, free: 6.879 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.9098, allocations: 56.52 kB / 0.8045 GB, free: 6.824 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.772e-05/0.9099, allocations: 47.98 kB / 0.8046 GB, free: 6.777 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005092/0.9104, allocations: 435 kB / 0.805 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9104, allocations: 0 / 0.805 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001825/0.9122, allocations: 0.6743 MB / 0.8057 GB, free: 5.68 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (compressor.m_flow,compressor.omega,turbine.m_flow,volume.M,volume.U_med,linearSpeedDependentTorque.phi,PI.I.y) * 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 (61): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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,4,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001222/0.9135, allocations: 0.6362 MB / 0.8063 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003299/0.9168, allocations: 2.213 MB / 0.8084 GB, free: 2.773 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.9168, allocations: 0 / 0.8084 GB, free: 2.773 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.918, allocations: 0.9376 MB / 0.8094 GB, free: 1.777 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.9194, allocations: 255.6 kB / 0.8096 GB, free: 1.527 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/0.9233, allocations: 2.561 MB / 0.8121 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006084/0.9239, allocations: 1.022 MB / 0.8131 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/0.9243, allocations: 119.4 kB / 0.8132 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of SimCode: time 8.92e-07/0.9243, allocations: 3.938 kB / 0.8132 GB, free: 13.78 MB / 0.5573 GB Notification: Performance of Templates: time 0.03571/0.96, allocations: 34.24 MB / 0.8467 GB, free: 11.62 MB / 0.5886 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