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.0008925/0.0008925, allocations: 90.52 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.006653/0.006653, allocations: 173.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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7324/0.7324, allocations: 91.32 MB / 382.7 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004348, allocations: 10.16 kB / 462.7 MB, free: 23.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1262, allocations: 69.23 MB / 0.5195 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.061/1.187, allocations: 394.3 MB / 0.9045 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.07641/1.264, allocations: 73.54 MB / 0.9763 GB, free: 0.6914 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003462/1.267, allocations: 71.69 kB / 0.9764 GB, free: 0.6523 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.006548/1.274, allocations: 2.223 MB / 0.9786 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02945/1.303, allocations: 8.273 MB / 0.9867 GB, free: 9.301 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01919/1.323, allocations: 6.505 MB / 0.993 GB, free: 4.121 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007931/1.331, allocations: 6.178 MB / 0.999 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/1.332, allocations: 0.9694 MB / 1 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00418/1.336, allocations: 1.858 MB / 1.002 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003794/1.34, allocations: 1.832 MB / 1.004 GB, free: 9.629 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0008421/1.341, allocations: 132 kB / 1.004 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05447/1.396, allocations: 28.26 MB / 1.031 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001785/1.397, allocations: 0.775 MB / 1.032 GB, free: 14.35 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003973/1.401, allocations: 1.413 MB / 1.033 GB, free: 12.94 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.04666/1.448, allocations: 14.7 MB / 1.048 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.448, allocations: 0 / 1.048 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.806e-06/1.448, allocations: 8 kB / 1.048 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001832/1.448, allocations: 0 / 1.048 GB, free: 14.55 MB / 0.7012 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.01548/1.464, allocations: 5.16 MB / 1.053 GB, free: 9.32 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/1.464, allocations: 12.03 kB / 1.053 GB, free: 9.309 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/1.465, allocations: 316.4 kB / 1.053 GB, free: 8.996 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003687/1.469, allocations: 1.435 MB / 1.055 GB, free: 7.504 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009439/1.47, allocations: 0.7126 MB / 1.055 GB, free: 6.684 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/1.471, allocations: 259.8 kB / 1.056 GB, free: 6.43 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/1.482, allocations: 4.424 MB / 1.06 GB, free: 1.941 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/1.482, allocations: 0 / 1.06 GB, free: 1.941 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005126/1.482, allocations: 99.97 kB / 1.06 GB, free: 1.844 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003157/1.483, allocations: 212.9 kB / 1.06 GB, free: 1.633 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/1.493, allocations: 5.189 MB / 1.065 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02892/1.522, allocations: 15.74 MB / 1.081 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00608/1.528, allocations: 3.117 MB / 1.084 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004857/1.533, allocations: 2.364 MB / 1.086 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2826/1.816, allocations: 9.347 MB / 1.095 GB, free: 330.7 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.057e-05/1.816, allocations: 64.45 kB / 1.095 GB, free: 330.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=309): time 7.124e-06/1.816, allocations: 0 / 1.095 GB, free: 330.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=314): time 0.03061/1.846, allocations: 13.81 MB / 1.109 GB, free: 326.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/1.846, allocations: 83.52 kB / 1.109 GB, free: 326.6 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/1.848, allocations: 1.143 MB / 1.11 GB, free: 326.2 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004931/1.849, allocations: 80.3 kB / 1.11 GB, free: 326.1 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000514/1.849, allocations: 0.8047 MB / 1.111 GB, free: 325.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009096/1.85, allocations: 1.051 MB / 1.112 GB, free: 324.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003391/1.85, allocations: 205.8 kB / 1.112 GB, free: 324.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 4.308e-05/1.85, allocations: 303.7 kB / 1.112 GB, free: 324.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003449/1.854, allocations: 1.791 MB / 1.114 GB, free: 323.6 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/1.858, allocations: 1.976 MB / 1.116 GB, free: 322.9 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007373/1.865, allocations: 3.838 MB / 1.12 GB, free: 321.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/1.865, allocations: 0 / 1.12 GB, free: 321.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01237/1.878, allocations: 5.658 MB / 1.125 GB, free: 319.3 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/1.878, allocations: 3.969 kB / 1.125 GB, free: 319.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-05/1.878, allocations: 15.38 kB / 1.125 GB, free: 319.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002529/1.88, allocations: 0.9376 MB / 1.126 GB, free: 319.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/1.883, allocations: 0.6248 MB / 1.127 GB, free: 319.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/1.899, allocations: 14.11 MB / 1.14 GB, free: 308.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002496/1.901, allocations: 264.1 kB / 1.141 GB, free: 308.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004604/1.902, allocations: 185.6 kB / 1.141 GB, free: 308 MB / 0.7325 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.001153/1.903, allocations: 0.5376 MB / 1.141 GB, free: 307.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/1.903, allocations: 221.4 kB / 1.142 GB, free: 307.6 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/1.918, allocations: 8.639 MB / 1.15 GB, free: 303.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.861e-05/1.918, allocations: 32.75 kB / 1.15 GB, free: 303.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.296e-05/1.918, allocations: 9.094 kB / 1.15 GB, free: 303.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.721e-05/1.919, allocations: 15.94 kB / 1.15 GB, free: 303.8 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/1.937, allocations: 9.725 MB / 1.16 GB, free: 296.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-05/1.937, allocations: 8 kB / 1.16 GB, free: 296.9 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002952/1.94, allocations: 0.6321 MB / 1.16 GB, free: 296.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/1.942, allocations: 0.9477 MB / 1.161 GB, free: 295.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004294/1.943, allocations: 121.5 kB / 1.161 GB, free: 295.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01523/1.958, allocations: 14.09 MB / 1.175 GB, free: 280.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.958, allocations: 4 kB / 1.175 GB, free: 280.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/1.974, allocations: 8.156 MB / 1.183 GB, free: 271.9 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/1.975, allocations: 0.7009 MB / 1.184 GB, free: 271.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/1.976, allocations: 63.34 kB / 1.184 GB, free: 271.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/1.977, allocations: 251.4 kB / 1.184 GB, free: 270.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004897/1.978, allocations: 259.9 kB / 1.184 GB, free: 270.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003232/1.978, allocations: 175.9 kB / 1.184 GB, free: 270.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001017/1.979, allocations: 0.9198 MB / 1.185 GB, free: 269.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/1.979, allocations: 0 / 1.185 GB, free: 269.6 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00813/1.987, allocations: 3.243 MB / 1.188 GB, free: 266.8 MB / 0.7325 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.0108/1.998, allocations: 3.972 MB / 1.192 GB, free: 263.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01047/2.009, allocations: 5.972 MB / 1.198 GB, free: 257.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/2.009, allocations: 0 / 1.198 GB, free: 257.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00656/2.015, allocations: 3.958 MB / 1.202 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004834/2.02, allocations: 0.8789 MB / 1.203 GB, free: 252.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009262/2.03, allocations: 7.526 MB / 1.21 GB, free: 245 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/2.031, allocations: 1.811 MB / 1.212 GB, free: 243.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.003038/2.034, allocations: 1.425 MB / 1.213 GB, free: 241.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007661/2.035, allocations: 303.3 kB / 1.214 GB, free: 241.5 MB / 0.7325 GB Notification: Performance of SimCode: time 1.233e-06/2.035, allocations: 0 / 1.214 GB, free: 241.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.1258/2.16, allocations: 111.9 MB / 1.323 GB, free: 129.8 MB / 0.7325 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