Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.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: 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_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_ThermofluidStream.Examples.SimpleGasTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001038, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.006888/0.006888, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6362/0.6362, allocations: 91.31 MB / 382.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005867/0.0005867, allocations: 12.5 kB / 462.7 MB, free: 23.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1502, allocations: 69.22 MB / 0.5195 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleGasTurbine): time 0.4348/0.5851, allocations: 184.6 MB / 0.6997 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02659/0.6117, allocations: 24.79 MB / 0.7239 GB, free: 6.621 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.6136, allocations: 43.69 kB / 0.724 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.6149, allocations: 377.7 kB / 0.7243 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002616/0.6175, allocations: 0.7557 MB / 0.7251 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003749/0.6213, allocations: 1.344 MB / 0.7264 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002026/0.6233, allocations: 1.786 MB / 0.7281 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005123/0.6238, allocations: 320.4 kB / 0.7284 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001464/0.6253, allocations: 0.7778 MB / 0.7292 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005508/0.6259, allocations: 0.5128 MB / 0.7297 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.722e-05/0.626, allocations: 36 kB / 0.7297 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.6284, allocations: 1.053 MB / 0.7307 GB, free: 15.6 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002194/0.6287, allocations: 190.9 kB / 0.7309 GB, free: 15.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004999/0.6292, allocations: 0.5336 MB / 0.7314 GB, free: 14.87 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002413/0.6316, allocations: 1.834 MB / 0.7332 GB, free: 13.03 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.6316, allocations: 0 / 0.7332 GB, free: 13.03 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.824e-06/0.6316, allocations: 0 / 0.7332 GB, free: 13.03 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.6316, allocations: 0 / 0.7332 GB, free: 13.03 MB / 0.545 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.002591/0.6342, allocations: 1.441 MB / 0.7346 GB, free: 11.54 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.6343, allocations: 8.031 kB / 0.7346 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.6355, allocations: 226.7 kB / 0.7349 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.6366, allocations: 0.7435 MB / 0.7356 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.6367, allocations: 125.4 kB / 0.7357 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.6369, allocations: 91.91 kB / 0.7358 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.6386, allocations: 0.9276 MB / 0.7367 GB, free: 9.336 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/0.6386, allocations: 4 kB / 0.7367 GB, free: 9.332 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.036e-05/0.6387, allocations: 32 kB / 0.7367 GB, free: 9.301 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.6387, allocations: 24.73 kB / 0.7368 GB, free: 9.277 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.6402, allocations: 0.7182 MB / 0.7375 GB, free: 8.559 MB / 0.545 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.005342/0.6455, allocations: 3.858 MB / 0.7412 GB, free: 4.414 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.647, allocations: 0.7148 MB / 0.7419 GB, free: 3.676 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006171/0.6476, allocations: 331 kB / 0.7422 GB, free: 3.352 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002532/0.6501, allocations: 2.299 MB / 0.7445 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.6502, allocations: 51.06 kB / 0.7445 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of pre-optimization done (n=68): time 2.635e-06/0.6502, allocations: 0 / 0.7445 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of matching and sorting (n=68): time 0.00347/0.6537, allocations: 1.542 MB / 0.746 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.6538, allocations: 111.4 kB / 0.7462 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.6548, allocations: 0.7535 MB / 0.7469 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.6549, allocations: 41.7 kB / 0.7469 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.6553, allocations: 0.5151 MB / 0.7474 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.6554, allocations: 232.5 kB / 0.7477 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.585e-05/0.6555, allocations: 69.69 kB / 0.7477 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.6557, allocations: 341.9 kB / 0.748 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.6562, allocations: 261.8 kB / 0.7483 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007025/0.657, allocations: 441.4 kB / 0.7487 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.6582, allocations: 0.6891 MB / 0.7494 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.6583, allocations: 0 / 0.7494 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002007/0.6603, allocations: 0.9679 MB / 0.7503 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.6604, allocations: 224 kB / 0.7505 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.6605, allocations: 8 kB / 0.7506 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000473/0.6609, allocations: 131.3 kB / 0.7507 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006349/0.6616, allocations: 167.8 kB / 0.7508 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004152/0.6658, allocations: 5.513 MB / 0.7562 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007225/0.6665, allocations: 107.1 kB / 0.7563 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-05/0.6666, allocations: 59.97 kB / 0.7564 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.151e-06/0.6667, allocations: 8.062 kB / 0.7564 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001609/0.6683, allocations: 0.784 MB / 0.7572 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.6683, allocations: 8 kB / 0.7572 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.6687, allocations: 127.4 kB / 0.7573 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.6692, allocations: 159.8 kB / 0.7574 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003977/0.6732, allocations: 5.508 MB / 0.7628 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006734/0.6739, allocations: 87.38 kB / 0.7629 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.352e-05/0.674, allocations: 52 kB / 0.7629 GB, free: 12.14 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (83): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0005222/0.6745, allocations: 312.9 kB / 0.7632 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.6747, allocations: 102.7 kB / 0.7633 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002558/0.6773, allocations: 1.173 MB / 0.7645 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.6773, allocations: 8 kB / 0.7645 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.6773, allocations: 4 kB / 0.7645 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.6773, allocations: 7.922 kB / 0.7645 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.6802, allocations: 1.768 MB / 0.7662 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6803, allocations: 7.922 kB / 0.7662 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005295/0.6808, allocations: 119.9 kB / 0.7664 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/0.6813, allocations: 160.2 kB / 0.7665 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.252e-05/0.6813, allocations: 19.98 kB / 0.7665 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004245/0.6856, allocations: 6.04 MB / 0.7724 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.6856, allocations: 8.109 kB / 0.7724 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.6879, allocations: 1.233 MB / 0.7736 GB, free: 476 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003266/0.6883, allocations: 231.6 kB / 0.7739 GB, free: 224 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.6884, allocations: 12 kB / 0.7739 GB, free: 212 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.6889, allocations: 55.95 kB / 0.7739 GB, free: 156 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.689, allocations: 64.42 kB / 0.774 GB, free: 92 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.655e-05/0.6891, allocations: 35.98 kB / 0.774 GB, free: 56 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006212/0.6897, allocations: 0.5121 MB / 0.7745 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6898, allocations: 3.938 kB / 0.7745 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001729/0.6915, allocations: 0.5963 MB / 0.7751 GB, free: 14.93 MB / 0.5919 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 (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2,100.0%), (1,4,100.0%), (1,2,100.0%), (1,1,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.000971/0.6925, allocations: 481.5 kB / 0.7756 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003387/0.6959, allocations: 2.127 MB / 0.7776 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6959, allocations: 0 / 0.7776 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.6971, allocations: 0.8731 MB / 0.7785 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.6985, allocations: 281.1 kB / 0.7788 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.7025, allocations: 2.8 MB / 0.7815 GB, free: 8.164 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.7031, allocations: 1.045 MB / 0.7825 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001518/0.7046, allocations: 0.5794 MB / 0.7831 GB, free: 6.504 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.705, allocations: 111.4 kB / 0.7832 GB, free: 6.398 MB / 0.5919 GB Notification: Performance of SimCode: time 6.52e-07/0.705, allocations: 0 / 0.7832 GB, free: 6.398 MB / 0.5919 GB Notification: Performance of Templates: time 0.02989/0.7349, allocations: 18.07 MB / 0.8008 GB, free: 4.406 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.sim & ./ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleGasTurbine_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches