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.008185/0.008186, allocations: 95.44 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.001632/0.001633, allocations: 199.5 kB / 16.68 MB, free: 5.973 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.582/1.582, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8501/0.8501, allocations: 93.71 MB / 384.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 83.81 kB / 0.5204 GB, free: 5.812 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1786, allocations: 68.27 MB / 0.5871 GB, free: 1.469 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.502/1.68, allocations: 395.5 MB / 0.9734 GB, free: 372 kB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.09098/1.771, allocations: 72.77 MB / 1.044 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004051/1.775, allocations: 68.75 kB / 1.044 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.008398/1.784, allocations: 2.37 MB / 1.047 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.03652/1.82, allocations: 9.475 MB / 1.056 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.02615/1.847, allocations: 7.359 MB / 1.063 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007696/1.854, allocations: 4.315 MB / 1.067 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/1.856, allocations: 1.116 MB / 1.069 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005506/1.862, allocations: 2.219 MB / 1.071 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004118/1.866, allocations: 1.969 MB / 1.073 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0007671/1.867, allocations: 304 kB / 1.073 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06306/1.93, allocations: 25.38 MB / 1.098 GB, free: 3.461 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002694/1.932, allocations: 0.9698 MB / 1.099 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.00371/1.936, allocations: 1.606 MB / 1.1 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.05099/1.987, allocations: 14.12 MB / 1.114 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 9.417e-06/1.987, allocations: 7.938 kB / 1.114 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.853e-06/1.987, allocations: 0 / 1.114 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001236/1.987, allocations: 4 kB / 1.114 GB, free: 2.703 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.02543/2.013, allocations: 5.856 MB / 1.12 GB, free: 12.76 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 8.325e-05/2.013, allocations: 12.03 kB / 1.12 GB, free: 12.75 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/2.015, allocations: 338 kB / 1.12 GB, free: 12.41 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/2.019, allocations: 1.558 MB / 1.122 GB, free: 10.8 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009444/2.02, allocations: 0.7008 MB / 1.122 GB, free: 9.992 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005757/2.021, allocations: 259.9 kB / 1.123 GB, free: 9.738 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00928/2.03, allocations: 4.347 MB / 1.127 GB, free: 5.312 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.908e-05/2.03, allocations: 3.953 kB / 1.127 GB, free: 5.309 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002298/2.03, allocations: 99.97 kB / 1.127 GB, free: 5.211 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002723/2.03, allocations: 208.9 kB / 1.127 GB, free: 5.004 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008615/2.039, allocations: 5.079 MB / 1.132 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/2.064, allocations: 15.65 MB / 1.147 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/2.069, allocations: 3.008 MB / 1.15 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003702/2.073, allocations: 2.278 MB / 1.152 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008259/2.081, allocations: 9.339 MB / 1.162 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.483e-05/2.081, allocations: 72.89 kB / 1.162 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=309): time 7.424e-06/2.081, allocations: 0 / 1.162 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=314): time 0.03208/2.114, allocations: 13 MB / 1.174 GB, free: 1.062 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/2.114, allocations: 218.3 kB / 1.175 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4387/2.552, allocations: 1.153 MB / 1.176 GB, free: 375.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.001046/2.554, allocations: 75.2 kB / 1.176 GB, free: 375.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007398/2.554, allocations: 0.8347 MB / 1.177 GB, free: 375.8 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001757/2.556, allocations: 1.101 MB / 1.178 GB, free: 375.4 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/2.557, allocations: 0.5136 MB / 1.178 GB, free: 375.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.53e-05/2.557, allocations: 307.1 kB / 1.178 GB, free: 375.1 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004347/2.562, allocations: 1.706 MB / 1.18 GB, free: 374.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004634/2.566, allocations: 1.924 MB / 1.182 GB, free: 374 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008278/2.575, allocations: 3.669 MB / 1.186 GB, free: 372.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.086e-05/2.575, allocations: 0.75 kB / 1.186 GB, free: 372.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01454/2.589, allocations: 5.291 MB / 1.191 GB, free: 370.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/2.59, allocations: 4.609 kB / 1.191 GB, free: 370.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.226e-05/2.59, allocations: 13.88 kB / 1.191 GB, free: 370.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002899/2.593, allocations: 0.8299 MB / 1.192 GB, free: 370.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003755/2.596, allocations: 0.6147 MB / 1.192 GB, free: 370.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01925/2.616, allocations: 14.68 MB / 1.207 GB, free: 358.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/2.619, allocations: 143.3 kB / 1.207 GB, free: 358.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000888/2.619, allocations: 188.2 kB / 1.207 GB, free: 358.3 MB / 0.8419 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.001917/2.621, allocations: 0.5383 MB / 1.207 GB, free: 358 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/2.623, allocations: 229.5 kB / 1.208 GB, free: 357.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01937/2.642, allocations: 8.268 MB / 1.216 GB, free: 354.9 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/2.642, allocations: 33.38 kB / 1.216 GB, free: 354.9 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.965e-05/2.642, allocations: 11.77 kB / 1.216 GB, free: 354.9 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-05/2.642, allocations: 18.97 kB / 1.216 GB, free: 354.9 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02558/2.668, allocations: 9.308 MB / 1.225 GB, free: 351.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.805e-05/2.668, allocations: 8.688 kB / 1.225 GB, free: 351.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003608/2.672, allocations: 0.6145 MB / 1.225 GB, free: 351.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002994/2.675, allocations: 0.8527 MB / 1.226 GB, free: 350.9 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008676/2.676, allocations: 120.8 kB / 1.226 GB, free: 350.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01809/2.694, allocations: 14.67 MB / 1.241 GB, free: 338.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/2.694, allocations: 3.938 kB / 1.241 GB, free: 338.9 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01755/2.711, allocations: 7.743 MB / 1.248 GB, free: 334.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002283/2.714, allocations: 0.6754 MB / 1.249 GB, free: 334.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005804/2.714, allocations: 67.8 kB / 1.249 GB, free: 334.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/2.716, allocations: 146.1 kB / 1.249 GB, free: 334.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005846/2.716, allocations: 257.1 kB / 1.249 GB, free: 334 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000373/2.717, allocations: 180.9 kB / 1.25 GB, free: 333.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001189/2.718, allocations: 0.9301 MB / 1.25 GB, free: 333.4 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/2.718, allocations: 0 / 1.25 GB, free: 333.4 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.01187/2.73, allocations: 3.3 MB / 1.254 GB, free: 332.9 MB / 0.8419 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.01569/2.746, allocations: 3.978 MB / 1.258 GB, free: 331.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01347/2.759, allocations: 5.719 MB / 1.263 GB, free: 328.4 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/2.759, allocations: 3.469 kB / 1.263 GB, free: 328.4 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.007683/2.767, allocations: 3.781 MB / 1.267 GB, free: 324.6 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004963/2.772, allocations: 0.9253 MB / 1.268 GB, free: 323.7 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/2.782, allocations: 6.186 MB / 1.274 GB, free: 317.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/2.784, allocations: 1.812 MB / 1.276 GB, free: 315.7 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0037/2.787, allocations: 1.44 MB / 1.277 GB, free: 314.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009297/2.788, allocations: 307.3 kB / 1.277 GB, free: 314 MB / 0.8419 GB Notification: Performance of SimCode: time 2.204e-06/2.788, allocations: 0 / 1.277 GB, free: 314 MB / 0.8419 GB Notification: Performance of Templates: time 0.1517/2.94, allocations: 115.7 MB / 1.39 GB, free: 198.5 MB / 0.8419 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