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.008551/0.008551, allocations: 103 kB / 15.73 MB, free: 6.051 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.001585/0.001585, allocations: 195.8 kB / 16.67 MB, free: 5.98 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7266/0.7266, allocations: 91.19 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 72.08 kB / 0.5168 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1449, allocations: 67.7 MB / 0.5829 GB, free: 5.23 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.208/1.352, allocations: 395.5 MB / 0.9692 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.08805/1.441, allocations: 72.74 MB / 1.04 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/1.444, allocations: 68.66 kB / 1.04 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.006994/1.451, allocations: 2.465 MB / 1.043 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02893/1.48, allocations: 9.587 MB / 1.052 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.02235/1.502, allocations: 7.4 MB / 1.059 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006485/1.508, allocations: 4.265 MB / 1.063 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/1.51, allocations: 1.12 MB / 1.065 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004166/1.515, allocations: 2.238 MB / 1.067 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003073/1.518, allocations: 1.969 MB / 1.069 GB, free: 9.711 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0008576/1.519, allocations: 308 kB / 1.069 GB, free: 9.41 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04576/1.564, allocations: 25.4 MB / 1.094 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001657/1.566, allocations: 0.9737 MB / 1.095 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002499/1.569, allocations: 1.606 MB / 1.096 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.03535/1.604, allocations: 14.05 MB / 1.11 GB, free: 15.29 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/1.604, allocations: 0 / 1.11 GB, free: 15.29 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.403e-06/1.604, allocations: 0 / 1.11 GB, free: 15.29 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.458e-05/1.604, allocations: 0 / 1.11 GB, free: 15.29 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.01443/1.618, allocations: 5.662 MB / 1.116 GB, free: 9.559 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.618, allocations: 12.03 kB / 1.116 GB, free: 9.547 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007304/1.619, allocations: 316.3 kB / 1.116 GB, free: 9.234 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002658/1.622, allocations: 1.521 MB / 1.117 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007765/1.623, allocations: 0.6969 MB / 1.118 GB, free: 6.852 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004107/1.623, allocations: 263.8 kB / 1.118 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007007/1.63, allocations: 4.351 MB / 1.122 GB, free: 2.164 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/1.63, allocations: 3.938 kB / 1.122 GB, free: 2.16 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002223/1.63, allocations: 99.97 kB / 1.123 GB, free: 2.062 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002882/1.631, allocations: 200.9 kB / 1.123 GB, free: 1.863 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008015/1.639, allocations: 5.087 MB / 1.128 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02323/1.662, allocations: 15.61 MB / 1.143 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005433/1.667, allocations: 3.011 MB / 1.146 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004031/1.671, allocations: 2.29 MB / 1.148 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2796/1.951, allocations: 9.336 MB / 1.157 GB, free: 361 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.927e-05/1.951, allocations: 64.52 kB / 1.157 GB, free: 361 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 8.817e-06/1.951, allocations: 1.938 kB / 1.157 GB, free: 361 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.02885/1.98, allocations: 12.95 MB / 1.17 GB, free: 356.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/1.98, allocations: 214 kB / 1.17 GB, free: 356.5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/1.982, allocations: 1.149 MB / 1.171 GB, free: 356 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004957/1.982, allocations: 74.98 kB / 1.171 GB, free: 356 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004914/1.983, allocations: 0.8114 MB / 1.172 GB, free: 355.4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000946/1.984, allocations: 1.052 MB / 1.173 GB, free: 354.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009913/1.985, allocations: 0.5138 MB / 1.174 GB, free: 354.3 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 4.262e-05/1.985, allocations: 303 kB / 1.174 GB, free: 354 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003634/1.989, allocations: 1.704 MB / 1.176 GB, free: 353.4 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003902/1.992, allocations: 1.925 MB / 1.178 GB, free: 352.6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007114/2, allocations: 3.673 MB / 1.181 GB, free: 351 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/2, allocations: 0 / 1.181 GB, free: 351 MB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.0122/2.012, allocations: 5.278 MB / 1.186 GB, free: 349.1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/2.012, allocations: 5.625 kB / 1.186 GB, free: 349.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.067e-05/2.012, allocations: 9.203 kB / 1.186 GB, free: 349.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00262/2.015, allocations: 0.8272 MB / 1.187 GB, free: 348.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/2.018, allocations: 0.618 MB / 1.188 GB, free: 348.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01609/2.034, allocations: 14.67 MB / 1.202 GB, free: 337 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/2.037, allocations: 144.2 kB / 1.202 GB, free: 336.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004851/2.037, allocations: 188.2 kB / 1.202 GB, free: 336.9 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.001229/2.038, allocations: 0.5454 MB / 1.203 GB, free: 336.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006968/2.039, allocations: 215.9 kB / 1.203 GB, free: 336.4 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/2.054, allocations: 8.258 MB / 1.211 GB, free: 333.4 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.916e-05/2.054, allocations: 31.72 kB / 1.211 GB, free: 333.4 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/2.054, allocations: 11.88 kB / 1.211 GB, free: 333.4 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.355e-05/2.054, allocations: 14.58 kB / 1.211 GB, free: 333.4 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/2.069, allocations: 9.305 MB / 1.22 GB, free: 329 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.764e-05/2.069, allocations: 11.88 kB / 1.22 GB, free: 329 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002753/2.072, allocations: 0.6089 MB / 1.221 GB, free: 328.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/2.074, allocations: 0.8552 MB / 1.222 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003875/2.075, allocations: 119.1 kB / 1.222 GB, free: 328.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.014/2.089, allocations: 14.67 MB / 1.236 GB, free: 315.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/2.089, allocations: 0 / 1.236 GB, free: 315.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/2.103, allocations: 7.722 MB / 1.244 GB, free: 311.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/2.104, allocations: 0.6697 MB / 1.244 GB, free: 310.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00034/2.104, allocations: 69.55 kB / 1.244 GB, free: 310.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/2.106, allocations: 146.7 kB / 1.245 GB, free: 310.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004557/2.106, allocations: 254.1 kB / 1.245 GB, free: 310.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003093/2.106, allocations: 179.8 kB / 1.245 GB, free: 310 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0009386/2.107, allocations: 0.9198 MB / 1.246 GB, free: 309 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/2.107, allocations: 0 / 1.246 GB, free: 309 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.006823/2.114, allocations: 3.246 MB / 1.249 GB, free: 306.2 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.008529/2.123, allocations: 3.914 MB / 1.253 GB, free: 303.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009649/2.132, allocations: 5.71 MB / 1.258 GB, free: 297.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/2.132, allocations: 0 / 1.258 GB, free: 297.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.005717/2.138, allocations: 3.772 MB / 1.262 GB, free: 293.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003598/2.142, allocations: 0.935 MB / 1.263 GB, free: 292.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008351/2.15, allocations: 6.083 MB / 1.269 GB, free: 286.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009906/2.151, allocations: 1.804 MB / 1.271 GB, free: 284.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002598/2.154, allocations: 1.435 MB / 1.272 GB, free: 283.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/2.154, allocations: 295.3 kB / 1.272 GB, free: 283 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/2.154, allocations: 0 / 1.272 GB, free: 283 MB / 0.8262 GB Notification: Performance of Templates: time 0.1258/2.28, allocations: 115.7 MB / 1.385 GB, free: 167.6 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