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.0009118/0.0009119, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009808/0.0009809, allocations: 180.7 kB / 16.92 MB, free: 6.652 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.293/1.293, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6721/0.6721, allocations: 89.65 MB / 381.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003735, allocations: 11.94 kB / 461.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 68.82 MB / 0.5177 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleGasTurbine): time 0.4728/0.5941, allocations: 184.1 MB / 0.6975 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02684/0.621, allocations: 24.69 MB / 0.7216 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.6229, allocations: 27.81 kB / 0.7216 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.6247, allocations: 381.7 kB / 0.722 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003041/0.6277, allocations: 0.7285 MB / 0.7227 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004455/0.6322, allocations: 1.345 MB / 0.724 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002733/0.635, allocations: 1.725 MB / 0.7257 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007332/0.6357, allocations: 301.7 kB / 0.726 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.6376, allocations: 0.739 MB / 0.7267 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009337/0.6386, allocations: 0.5012 MB / 0.7272 GB, free: 4.781 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000245/0.6388, allocations: 39.94 kB / 0.7272 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.6419, allocations: 1.057 MB / 0.7283 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003273/0.6422, allocations: 171.1 kB / 0.7284 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0008638/0.6431, allocations: 0.5143 MB / 0.7289 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002391/0.6455, allocations: 1.329 MB / 0.7302 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6455, allocations: 0 / 0.7302 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.725e-06/0.6455, allocations: 0 / 0.7302 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.29e-05/0.6456, allocations: 0 / 0.7302 GB, free: 1.66 MB / 0.5294 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.003034/0.6486, allocations: 1.355 MB / 0.7316 GB, free: 252 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.6487, allocations: 8.031 kB / 0.7316 GB, free: 244 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001333/0.65, allocations: 218.3 kB / 0.7318 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.6512, allocations: 0.6154 MB / 0.7324 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.6513, allocations: 129.3 kB / 0.7325 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.6515, allocations: 91.84 kB / 0.7326 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.6533, allocations: 0.9314 MB / 0.7335 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.6534, allocations: 4 kB / 0.7335 GB, free: 14.17 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.6535, allocations: 36 kB / 0.7335 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.6535, allocations: 23.98 kB / 0.7336 GB, free: 14.11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.6551, allocations: 0.7104 MB / 0.7343 GB, free: 13.4 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.005415/0.6605, allocations: 3.844 MB / 0.738 GB, free: 9.273 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.662, allocations: 0.7071 MB / 0.7387 GB, free: 8.539 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.6626, allocations: 327 kB / 0.739 GB, free: 8.219 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002202/0.6648, allocations: 2.307 MB / 0.7413 GB, free: 5.414 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.6649, allocations: 39.88 kB / 0.7413 GB, free: 5.367 MB / 0.545 GB Notification: Performance of pre-optimization done (n=68): time 3.336e-06/0.6649, allocations: 0 / 0.7413 GB, free: 5.367 MB / 0.545 GB Notification: Performance of matching and sorting (n=68): time 0.003242/0.6681, allocations: 1.542 MB / 0.7428 GB, free: 3.711 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.6682, allocations: 115.3 kB / 0.7429 GB, free: 3.574 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000852/0.6691, allocations: 0.6572 MB / 0.7436 GB, free: 2.906 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.406e-05/0.6692, allocations: 37.7 kB / 0.7436 GB, free: 2.863 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003627/0.6696, allocations: 483.5 kB / 0.7441 GB, free: 2.383 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.6698, allocations: 240.5 kB / 0.7443 GB, free: 2.145 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.6699, allocations: 65.69 kB / 0.7444 GB, free: 2.074 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.67, allocations: 333.9 kB / 0.7447 GB, free: 1.742 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005926/0.6706, allocations: 261.9 kB / 0.7449 GB, free: 1.488 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007165/0.6713, allocations: 433.4 kB / 0.7453 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.6727, allocations: 0.7046 MB / 0.746 GB, free: 236 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.371e-06/0.6727, allocations: 0 / 0.746 GB, free: 236 kB / 0.545 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002084/0.6748, allocations: 0.9524 MB / 0.747 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.675, allocations: 220.1 kB / 0.7472 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.675, allocations: 11.98 kB / 0.7472 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004977/0.6755, allocations: 135.3 kB / 0.7473 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006266/0.6762, allocations: 166.8 kB / 0.7475 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004234/0.6804, allocations: 5.513 MB / 0.7528 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007479/0.6812, allocations: 103.4 kB / 0.7529 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.6813, allocations: 59.98 kB / 0.753 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.095e-06/0.6813, allocations: 4 kB / 0.753 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001649/0.683, allocations: 0.7917 MB / 0.7538 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.683, allocations: 8 kB / 0.7538 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003956/0.6834, allocations: 127.5 kB / 0.7539 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.684, allocations: 163.7 kB / 0.7541 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004059/0.6881, allocations: 5.504 MB / 0.7594 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007039/0.6888, allocations: 79.48 kB / 0.7595 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.6889, allocations: 55.98 kB / 0.7596 GB, free: 1.176 MB / 0.5606 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.0005326/0.6895, allocations: 308.9 kB / 0.7599 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.6897, allocations: 86.88 kB / 0.7599 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002636/0.6923, allocations: 1.166 MB / 0.7611 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.6924, allocations: 11.98 kB / 0.7611 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6924, allocations: 0 / 0.7611 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.6924, allocations: 0 / 0.7611 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.6956, allocations: 1.744 MB / 0.7628 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/0.6956, allocations: 8 kB / 0.7628 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005298/0.6961, allocations: 123.9 kB / 0.7629 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005001/0.6966, allocations: 156 kB / 0.7631 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.867e-05/0.6967, allocations: 27.98 kB / 0.7631 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004423/0.7012, allocations: 6.039 MB / 0.769 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.7012, allocations: 4.031 kB / 0.769 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.7037, allocations: 1.225 MB / 0.7702 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004581/0.7042, allocations: 219.8 kB / 0.7704 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.7044, allocations: 15.98 kB / 0.7704 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.705, allocations: 55.97 kB / 0.7705 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.7051, allocations: 56.36 kB / 0.7705 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.768e-05/0.7052, allocations: 43.98 kB / 0.7706 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006305/0.7058, allocations: 455 kB / 0.771 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7058, allocations: 4 kB / 0.771 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002038/0.7079, allocations: 0.5923 MB / 0.7716 GB, free: 4.121 MB / 0.5762 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.001286/0.7092, allocations: 494.3 kB / 0.7721 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003666/0.7129, allocations: 2.123 MB / 0.7741 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7129, allocations: 0 / 0.7741 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.7142, allocations: 0.877 MB / 0.775 GB, free: 464 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.7157, allocations: 264.9 kB / 0.7752 GB, free: 200 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.7202, allocations: 2.717 MB / 0.7779 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006876/0.7209, allocations: 1.014 MB / 0.7789 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004797/0.7214, allocations: 135.3 kB / 0.779 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/0.7214, allocations: 0 / 0.779 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of Templates: time 0.3031/1.024, allocations: 32.47 MB / 0.8107 GB, free: 225.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleGasTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches