Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.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.SimpleAirCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|compressor.m_flow|compressor.omega|compressor.phi|fan.m_flow|fan1.m_flow|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|heatExchange_CounterFlowNTU1.h_out_A|heatExchange_CounterFlowNTU1.h_out_B|heatExchange_CounterFlowNTU2.h_out_A|heatExchange_CounterFlowNTU2.h_out_B|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle") translateModel(ThermofluidStream.Examples.SimpleAirCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|compressor.m_flow|compressor.omega|compressor.phi|fan.m_flow|fan1.m_flow|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|heatExchange_CounterFlowNTU1.h_out_A|heatExchange_CounterFlowNTU1.h_out_B|heatExchange_CounterFlowNTU2.h_out_A|heatExchange_CounterFlowNTU2.h_out_B|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001692/0.001692, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.481/1.481, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7311/0.7311, allocations: 93.71 MB / 383.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 84.06 kB / 462.7 MB, free: 22.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1575, allocations: 68.27 MB / 0.5185 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.407/1.564, allocations: 400.3 MB / 0.9095 GB, free: 212 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.103/1.667, allocations: 74.67 MB / 0.9824 GB, free: 2.762 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004996/1.672, allocations: 83.44 kB / 0.9825 GB, free: 2.715 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00798/1.68, allocations: 2.236 MB / 0.9846 GB, free: 1.223 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.03421/1.715, allocations: 8.293 MB / 0.9927 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.02627/1.741, allocations: 6.501 MB / 0.9991 GB, free: 6.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009783/1.751, allocations: 6.231 MB / 1.005 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00251/1.753, allocations: 0.9931 MB / 1.006 GB, free: 120 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006396/1.76, allocations: 2.033 MB / 1.008 GB, free: 14.18 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004836/1.765, allocations: 2.019 MB / 1.01 GB, free: 12.29 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001696/1.766, allocations: 204 kB / 1.01 GB, free: 12.09 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0681/1.835, allocations: 28.34 MB / 1.038 GB, free: 0.5391 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.003089/1.838, allocations: 0.8799 MB / 1.039 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.006844/1.845, allocations: 1.524 MB / 1.04 GB, free: 14.12 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.05713/1.902, allocations: 14.83 MB / 1.055 GB, free: 15.26 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/1.902, allocations: 0 / 1.055 GB, free: 15.26 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.435e-06/1.902, allocations: 0 / 1.055 GB, free: 15.26 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000224/1.902, allocations: 0 / 1.055 GB, free: 15.26 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 649 * Number of variables: 649 Notification: Performance of Generate backend data structure: time 0.02366/1.926, allocations: 5.678 MB / 1.06 GB, free: 9.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.857e-05/1.926, allocations: 8.031 kB / 1.06 GB, free: 9.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/1.928, allocations: 320.4 kB / 1.061 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005052/1.933, allocations: 1.455 MB / 1.062 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001034/1.934, allocations: 0.6968 MB / 1.063 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001448/1.936, allocations: 259.8 kB / 1.063 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/1.949, allocations: 4.323 MB / 1.067 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/1.949, allocations: 0 / 1.067 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006678/1.949, allocations: 99.97 kB / 1.067 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003402/1.95, allocations: 208.9 kB / 1.068 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/1.961, allocations: 5.079 MB / 1.072 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03247/1.993, allocations: 15.68 MB / 1.088 GB, free: 12 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006797/2, allocations: 3 MB / 1.091 GB, free: 8.992 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004827/2.005, allocations: 2.275 MB / 1.093 GB, free: 6.707 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008848/2.014, allocations: 9.347 MB / 1.102 GB, free: 11.33 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001245/2.014, allocations: 68.89 kB / 1.102 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=309): time 1.088e-05/2.014, allocations: 0 / 1.102 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of matching and sorting (n=314): time 0.4027/2.417, allocations: 12.96 MB / 1.115 GB, free: 361.8 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/2.417, allocations: 87.41 kB / 1.115 GB, free: 361.7 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/2.419, allocations: 1.161 MB / 1.116 GB, free: 361.5 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.001097/2.42, allocations: 77.73 kB / 1.116 GB, free: 361.5 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006619/2.421, allocations: 0.8204 MB / 1.117 GB, free: 361.3 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001198/2.422, allocations: 1.053 MB / 1.118 GB, free: 360.6 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/2.423, allocations: 0.5021 MB / 1.118 GB, free: 360.4 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 6.497e-05/2.423, allocations: 309 kB / 1.119 GB, free: 360.1 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/2.427, allocations: 1.704 MB / 1.12 GB, free: 359.5 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004372/2.431, allocations: 1.891 MB / 1.122 GB, free: 358.8 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007724/2.439, allocations: 3.67 MB / 1.126 GB, free: 357.2 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/2.439, allocations: 0 / 1.126 GB, free: 357.2 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01371/2.453, allocations: 5.278 MB / 1.131 GB, free: 355.2 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/2.453, allocations: 7.141 kB / 1.131 GB, free: 355.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.886e-05/2.453, allocations: 9.188 kB / 1.131 GB, free: 355.2 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/2.456, allocations: 0.8342 MB / 1.132 GB, free: 355 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003589/2.46, allocations: 0.6148 MB / 1.132 GB, free: 355 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01693/2.477, allocations: 13.55 MB / 1.146 GB, free: 344.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003085/2.48, allocations: 226.9 kB / 1.146 GB, free: 344 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/2.481, allocations: 186.1 kB / 1.146 GB, free: 344 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (276): * Single equations (assignments): 251 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(2,17,100.0%), (1,3,100.0%), (3,1,88.9%), (3,1,88.9%), (2,17,100.0%), (1,1,100.0%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002482/2.483, allocations: 0.5416 MB / 1.147 GB, free: 343.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/2.485, allocations: 219 kB / 1.147 GB, free: 343.5 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01622/2.501, allocations: 8.267 MB / 1.155 GB, free: 340.5 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.468e-05/2.501, allocations: 31.28 kB / 1.155 GB, free: 340.5 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.232e-05/2.501, allocations: 15.84 kB / 1.155 GB, free: 340.5 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.11e-05/2.501, allocations: 20.8 kB / 1.155 GB, free: 340.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/2.518, allocations: 9.322 MB / 1.164 GB, free: 335.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.555e-05/2.519, allocations: 7.812 kB / 1.164 GB, free: 335.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002889/2.521, allocations: 0.6104 MB / 1.165 GB, free: 335.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002432/2.524, allocations: 0.8505 MB / 1.165 GB, free: 335 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005755/2.525, allocations: 127.3 kB / 1.166 GB, free: 334.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/2.539, allocations: 13.52 MB / 1.179 GB, free: 323 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/2.539, allocations: 7.812 kB / 1.179 GB, free: 323 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/2.563, allocations: 7.717 MB / 1.186 GB, free: 318.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002854/2.566, allocations: 0.682 MB / 1.187 GB, free: 318.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/2.567, allocations: 59.62 kB / 1.187 GB, free: 318.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003507/2.571, allocations: 209.7 kB / 1.187 GB, free: 318.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001269/2.572, allocations: 257.4 kB / 1.187 GB, free: 318.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001085/2.573, allocations: 180.8 kB / 1.188 GB, free: 318 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002294/2.576, allocations: 0.9305 MB / 1.189 GB, free: 317.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.81e-07/2.576, allocations: 0 / 1.189 GB, free: 317.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01508/2.591, allocations: 3.241 MB / 1.192 GB, free: 316.9 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (heatExchange_CounterFlowNTU.h_out_A,heatExchange_CounterFlowNTU.h_out_B,heatExchange_CounterFlowNTU1.h_out_A,heatExchange_CounterFlowNTU1.h_out_B,compressor.m_flow,compressor.phi,compressor.omega,heatExchange_CounterFlowNTU2.inletA.m_flow,heatExchange_CounterFlowNTU2.h_out_A,heatExchange_CounterFlowNTU2.h_out_B,turbine1.phi,turbine1.omega,splitterT1_1.splitterN.inlet.m_flow,splitterT1_2.splitterN.inlet.m_flow) * 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 (279): * Single equations (assignments): 254 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(3,1,88.9%), (1,1,100.0%), (2,17,100.0%), (3,1,88.9%), (3,1,88.9%), (2,17,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01688/2.608, allocations: 3.937 MB / 1.196 GB, free: 314 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01341/2.621, allocations: 5.705 MB / 1.201 GB, free: 308.2 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/2.621, allocations: 0 / 1.201 GB, free: 308.2 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.008403/2.63, allocations: 3.761 MB / 1.205 GB, free: 304.3 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005591/2.635, allocations: 0.8792 MB / 1.206 GB, free: 303.4 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/2.646, allocations: 7.246 MB / 1.213 GB, free: 296.2 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/2.648, allocations: 1.812 MB / 1.214 GB, free: 294.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003869/2.651, allocations: 1.428 MB / 1.216 GB, free: 293 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008855/2.652, allocations: 307.3 kB / 1.216 GB, free: 292.7 MB / 0.7637 GB Notification: Performance of SimCode: time 1.021e-06/2.652, allocations: 0 / 1.216 GB, free: 292.7 MB / 0.7637 GB Notification: Performance of Templates: time 0.1565/2.809, allocations: 112.8 MB / 1.326 GB, free: 180.1 MB / 0.7637 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleAirCycle_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches