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.006205/0.006205, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001097/0.001098, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7436/0.7436, allocations: 91.18 MB / 381.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 71.88 kB / 0.5168 GB, free: 4.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3761, allocations: 67.69 MB / 0.5829 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.8051/1.181, allocations: 395.5 MB / 0.9692 GB, free: 12.91 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.7242/1.906, allocations: 72.72 MB / 1.04 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003339/1.909, allocations: 67.59 kB / 1.04 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.006264/1.915, allocations: 2.373 MB / 1.043 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02984/1.945, allocations: 9.453 MB / 1.052 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.02208/1.967, allocations: 7.359 MB / 1.059 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.008525/1.976, allocations: 4.255 MB / 1.063 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001922/1.978, allocations: 1.122 MB / 1.064 GB, free: 16.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005591/1.983, allocations: 2.244 MB / 1.066 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004313/1.988, allocations: 1.963 MB / 1.068 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0006625/1.988, allocations: 305.2 kB / 1.069 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06396/2.052, allocations: 25.39 MB / 1.093 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003504/2.056, allocations: 0.971 MB / 1.094 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.005535/2.061, allocations: 1.608 MB / 1.096 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.05349/2.115, allocations: 14.04 MB / 1.11 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/2.115, allocations: 2.531 kB / 1.11 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.445e-06/2.115, allocations: 0 / 1.11 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001231/2.115, allocations: 0 / 1.11 GB, free: 10.99 MB / 0.7794 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.01642/2.132, allocations: 5.651 MB / 1.115 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/2.132, allocations: 8.562 kB / 1.115 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008657/2.133, allocations: 322.2 kB / 1.116 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/2.135, allocations: 1.526 MB / 1.117 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006341/2.136, allocations: 0.691 MB / 1.118 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003756/2.136, allocations: 263.6 kB / 1.118 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007085/2.143, allocations: 4.346 MB / 1.122 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-05/2.143, allocations: 1.969 kB / 1.122 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/2.144, allocations: 102.8 kB / 1.122 GB, free: 4.891 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002271/2.144, allocations: 211 kB / 1.122 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007644/2.152, allocations: 5.086 MB / 1.127 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02338/2.175, allocations: 15.61 MB / 1.143 GB, free: 4.656 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004883/2.18, allocations: 3.006 MB / 1.146 GB, free: 2.898 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003515/2.183, allocations: 2.285 MB / 1.148 GB, free: 1.496 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008099/2.192, allocations: 9.345 MB / 1.157 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.413e-05/2.192, allocations: 63.02 kB / 1.157 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=309): time 6.993e-06/2.192, allocations: 0 / 1.157 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=314): time 0.02833/2.22, allocations: 12.96 MB / 1.17 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/2.22, allocations: 214.4 kB / 1.17 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/2.222, allocations: 1.146 MB / 1.171 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004173/2.222, allocations: 80.83 kB / 1.171 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005854/2.223, allocations: 0.8094 MB / 1.172 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009621/2.224, allocations: 1.051 MB / 1.173 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000838/2.225, allocations: 0.5044 MB / 1.173 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001049/2.225, allocations: 305.1 kB / 1.174 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003145/2.228, allocations: 1.711 MB / 1.175 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003482/2.231, allocations: 1.917 MB / 1.177 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006609/2.238, allocations: 3.671 MB / 1.181 GB, free: 168 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/2.238, allocations: 0 / 1.181 GB, free: 168 kB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01114/2.249, allocations: 5.283 MB / 1.186 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/2.249, allocations: 4 kB / 1.186 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-05/2.249, allocations: 8 kB / 1.186 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/2.252, allocations: 0.8356 MB / 1.187 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002714/2.254, allocations: 0.617 MB / 1.187 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01795/2.272, allocations: 14.67 MB / 1.202 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/2.275, allocations: 149.2 kB / 1.202 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004229/2.275, allocations: 177.4 kB / 1.202 GB, free: 9.512 MB / 0.8575 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.001419/2.277, allocations: 0.5464 MB / 1.203 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006908/2.277, allocations: 213.4 kB / 1.203 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01468/2.292, allocations: 8.252 MB / 1.211 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.224e-05/2.292, allocations: 32 kB / 1.211 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/2.292, allocations: 12 kB / 1.211 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.324e-05/2.292, allocations: 15.94 kB / 1.211 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/2.309, allocations: 9.306 MB / 1.22 GB, free: 7.129 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.664e-05/2.309, allocations: 20.03 kB / 1.22 GB, free: 7.109 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002651/2.312, allocations: 0.6095 MB / 1.221 GB, free: 6.523 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/2.314, allocations: 0.8549 MB / 1.221 GB, free: 5.652 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/2.315, allocations: 122.9 kB / 1.222 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01763/2.332, allocations: 14.66 MB / 1.236 GB, free: 5.984 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.332, allocations: 2.625 kB / 1.236 GB, free: 5.984 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/2.35, allocations: 7.719 MB / 1.243 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/2.352, allocations: 0.6698 MB / 1.244 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003637/2.352, allocations: 70.03 kB / 1.244 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/2.354, allocations: 138.7 kB / 1.244 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005597/2.354, allocations: 260.8 kB / 1.245 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003407/2.354, allocations: 175.9 kB / 1.245 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00119/2.356, allocations: 0.9198 MB / 1.246 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/2.356, allocations: 0 / 1.246 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.009988/2.366, allocations: 3.247 MB / 1.249 GB, free: 8.711 MB / 0.9044 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.01321/2.379, allocations: 3.924 MB / 1.253 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0117/2.391, allocations: 5.719 MB / 1.258 GB, free: 15.26 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/2.391, allocations: 4 kB / 1.258 GB, free: 15.26 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.006947/2.398, allocations: 3.77 MB / 1.262 GB, free: 11.42 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004156/2.402, allocations: 0.9146 MB / 1.263 GB, free: 10.55 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/2.412, allocations: 6.094 MB / 1.269 GB, free: 4.441 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001577/2.414, allocations: 1.808 MB / 1.27 GB, free: 2.594 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.003392/2.417, allocations: 1.428 MB / 1.272 GB, free: 1.199 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000804/2.418, allocations: 295.3 kB / 1.272 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of SimCode: time 1.172e-06/2.418, allocations: 2.812 kB / 1.272 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of Templates: time 0.1644/2.583, allocations: 115.7 MB / 1.385 GB, free: 13.75 MB / 1.045 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