Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_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_ThermofluidStream.Examples.SimpleAirCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006899/0.0069, allocations: 97.61 kB / 15.73 MB, free: 6.055 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.001581/0.001581, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.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.7447/0.7447, allocations: 91.18 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 76.16 kB / 0.5168 GB, free: 9.039 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1703, allocations: 67.69 MB / 0.5829 GB, free: 5.266 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.257/1.427, allocations: 395.5 MB / 0.9692 GB, free: 14.47 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.08658/1.514, allocations: 72.75 MB / 1.04 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/1.517, allocations: 64.56 kB / 1.04 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007626/1.525, allocations: 2.369 MB / 1.043 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.03019/1.555, allocations: 9.448 MB / 1.052 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.02106/1.576, allocations: 7.364 MB / 1.059 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007678/1.584, allocations: 4.249 MB / 1.063 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/1.586, allocations: 1.12 MB / 1.064 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005001/1.591, allocations: 2.203 MB / 1.066 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003997/1.595, allocations: 1.965 MB / 1.068 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0007465/1.596, allocations: 308 kB / 1.069 GB, free: 9.793 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05098/1.647, allocations: 25.38 MB / 1.093 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001882/1.649, allocations: 0.966 MB / 1.094 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002497/1.651, allocations: 1.61 MB / 1.096 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.04964/1.701, allocations: 14.11 MB / 1.11 GB, free: 15.64 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/1.701, allocations: 0 / 1.11 GB, free: 15.64 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.653e-06/1.701, allocations: 0 / 1.11 GB, free: 15.64 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.781e-05/1.701, allocations: 0 / 1.11 GB, free: 15.64 MB / 0.795 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.01558/1.717, allocations: 5.848 MB / 1.115 GB, free: 9.703 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.717, allocations: 16.03 kB / 1.115 GB, free: 9.688 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008159/1.717, allocations: 330 kB / 1.116 GB, free: 9.363 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/1.72, allocations: 1.53 MB / 1.117 GB, free: 7.777 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007673/1.721, allocations: 0.7047 MB / 1.118 GB, free: 6.965 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004304/1.721, allocations: 259.9 kB / 1.118 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009768/1.731, allocations: 4.347 MB / 1.122 GB, free: 2.285 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.856e-05/1.731, allocations: 0 / 1.122 GB, free: 2.285 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/1.731, allocations: 99.97 kB / 1.122 GB, free: 2.188 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002883/1.732, allocations: 204.9 kB / 1.123 GB, free: 1.984 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008064/1.74, allocations: 5.087 MB / 1.128 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02375/1.764, allocations: 15.65 MB / 1.143 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005841/1.769, allocations: 3.011 MB / 1.146 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003979/1.773, allocations: 2.278 MB / 1.148 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3537/2.127, allocations: 9.336 MB / 1.157 GB, free: 360.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.284e-05/2.127, allocations: 70.62 kB / 1.157 GB, free: 360.9 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 7.534e-06/2.127, allocations: 1.969 kB / 1.157 GB, free: 360.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.0293/2.157, allocations: 12.99 MB / 1.17 GB, free: 356.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/2.157, allocations: 218.6 kB / 1.17 GB, free: 356.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/2.159, allocations: 1.142 MB / 1.171 GB, free: 356 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004854/2.159, allocations: 76.42 kB / 1.171 GB, free: 355.9 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000668/2.16, allocations: 0.8225 MB / 1.172 GB, free: 355.4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001193/2.161, allocations: 1.105 MB / 1.173 GB, free: 354.6 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/2.162, allocations: 0.5102 MB / 1.174 GB, free: 354.4 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 6.344e-05/2.163, allocations: 305.5 kB / 1.174 GB, free: 354.1 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003878/2.166, allocations: 1.705 MB / 1.176 GB, free: 353.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004186/2.171, allocations: 1.922 MB / 1.178 GB, free: 352.7 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008031/2.179, allocations: 3.669 MB / 1.181 GB, free: 351.1 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/2.179, allocations: 0 / 1.181 GB, free: 351.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01356/2.192, allocations: 5.291 MB / 1.186 GB, free: 349.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/2.192, allocations: 5.375 kB / 1.186 GB, free: 349.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.246e-05/2.192, allocations: 9.062 kB / 1.186 GB, free: 349.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/2.195, allocations: 0.8348 MB / 1.187 GB, free: 349 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003445/2.199, allocations: 0.6134 MB / 1.188 GB, free: 348.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/2.217, allocations: 14.69 MB / 1.202 GB, free: 337 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/2.22, allocations: 147.8 kB / 1.202 GB, free: 337 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007007/2.221, allocations: 181.8 kB / 1.202 GB, free: 337 MB / 0.8262 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.001614/2.222, allocations: 0.551 MB / 1.203 GB, free: 336.6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/2.223, allocations: 224.1 kB / 1.203 GB, free: 336.5 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/2.24, allocations: 8.26 MB / 1.211 GB, free: 333.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.613e-05/2.24, allocations: 31.69 kB / 1.211 GB, free: 333.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.371e-05/2.24, allocations: 7.938 kB / 1.211 GB, free: 333.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.547e-05/2.24, allocations: 23.7 kB / 1.211 GB, free: 333.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/2.257, allocations: 9.302 MB / 1.22 GB, free: 329 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.024e-05/2.257, allocations: 11.81 kB / 1.22 GB, free: 329 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002841/2.26, allocations: 0.6122 MB / 1.221 GB, free: 328.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/2.262, allocations: 0.8512 MB / 1.222 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005019/2.263, allocations: 126.7 kB / 1.222 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/2.278, allocations: 14.66 MB / 1.236 GB, free: 315.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.278, allocations: 0 / 1.236 GB, free: 315.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/2.293, allocations: 7.744 MB / 1.244 GB, free: 311.2 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/2.295, allocations: 0.6836 MB / 1.244 GB, free: 310.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003901/2.295, allocations: 63.94 kB / 1.245 GB, free: 310.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/2.297, allocations: 147.5 kB / 1.245 GB, free: 310.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005012/2.297, allocations: 258.1 kB / 1.245 GB, free: 310.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003243/2.297, allocations: 171.9 kB / 1.245 GB, free: 309.9 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001069/2.299, allocations: 0.9221 MB / 1.246 GB, free: 309 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/2.299, allocations: 0 / 1.246 GB, free: 309 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.01076/2.309, allocations: 3.303 MB / 1.249 GB, free: 306.4 MB / 0.8262 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.0133/2.323, allocations: 3.975 MB / 1.253 GB, free: 302.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0116/2.334, allocations: 5.717 MB / 1.259 GB, free: 297.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/2.334, allocations: 0 / 1.259 GB, free: 297.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00652/2.341, allocations: 3.77 MB / 1.262 GB, free: 293.2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004557/2.345, allocations: 0.9314 MB / 1.263 GB, free: 292.3 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009972/2.355, allocations: 6.179 MB / 1.269 GB, free: 286.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/2.357, allocations: 1.804 MB / 1.271 GB, free: 284.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003287/2.36, allocations: 1.444 MB / 1.272 GB, free: 282.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007957/2.361, allocations: 303.3 kB / 1.273 GB, free: 282.6 MB / 0.8262 GB Notification: Performance of SimCode: time 1.122e-06/2.361, allocations: 0 / 1.273 GB, free: 282.6 MB / 0.8262 GB Notification: Performance of Templates: time 0.1307/2.492, allocations: 115.6 MB / 1.386 GB, free: 167.1 MB / 0.8262 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.sim & ./ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleAirCycle_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches