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.001479/0.001479, allocations: 108.5 kB / 16.36 MB, free: 6.285 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.001658/0.001658, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.281/1.281, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6716/0.6716, allocations: 89.49 MB / 380.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 83.86 kB / 459.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1445, allocations: 67.31 MB / 0.5146 GB, free: 7.172 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.9832/1.128, allocations: 395.2 MB / 0.9006 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0774/1.205, allocations: 72.65 MB / 0.9715 GB, free: 1.48 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/1.208, allocations: 31.81 kB / 0.9716 GB, free: 1.449 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.006313/1.214, allocations: 2.355 MB / 0.9739 GB, free: 15.08 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02772/1.242, allocations: 9.394 MB / 0.983 GB, free: 5.648 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.02016/1.262, allocations: 7.355 MB / 0.9902 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.006407/1.269, allocations: 4.104 MB / 0.9942 GB, free: 10.16 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/1.27, allocations: 1.11 MB / 0.9953 GB, free: 9.051 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004295/1.275, allocations: 2.118 MB / 0.9974 GB, free: 6.926 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/1.277, allocations: 1.935 MB / 0.9993 GB, free: 4.984 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0003879/1.278, allocations: 304 kB / 0.9996 GB, free: 4.688 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4583/1.736, allocations: 25.38 MB / 1.024 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001387/1.737, allocations: 0.9512 MB / 1.025 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002415/1.74, allocations: 1.545 MB / 1.027 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.0345/1.774, allocations: 13.86 MB / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.774, allocations: 0 / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.485e-06/1.774, allocations: 0 / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 8.446e-05/1.774, allocations: 0 / 1.04 GB, free: 10.45 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.01478/1.789, allocations: 5.46 MB / 1.046 GB, free: 8.227 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/1.789, allocations: 10.03 kB / 1.046 GB, free: 8.227 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006845/1.79, allocations: 294.3 kB / 1.046 GB, free: 8.09 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/1.792, allocations: 1.181 MB / 1.047 GB, free: 7.703 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004893/1.792, allocations: 0.692 MB / 1.048 GB, free: 7.164 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003621/1.793, allocations: 262.1 kB / 1.048 GB, free: 7.152 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006387/1.799, allocations: 4.348 MB / 1.052 GB, free: 6.926 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/1.799, allocations: 0 / 1.052 GB, free: 6.926 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002265/1.799, allocations: 101 kB / 1.052 GB, free: 6.926 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001992/1.8, allocations: 203.5 kB / 1.053 GB, free: 6.918 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007792/1.807, allocations: 5.087 MB / 1.058 GB, free: 6.879 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01972/1.827, allocations: 15.54 MB / 1.073 GB, free: 16.39 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004626/1.832, allocations: 3.01 MB / 1.076 GB, free: 16.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003271/1.835, allocations: 2.277 MB / 1.078 GB, free: 16.29 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007291/1.842, allocations: 9.339 MB / 1.087 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/1.843, allocations: 65.7 kB / 1.087 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=309): time 6.342e-06/1.843, allocations: 0 / 1.087 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=314): time 0.02388/1.866, allocations: 12.9 MB / 1.1 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/1.867, allocations: 214.4 kB / 1.1 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/1.868, allocations: 0.9341 MB / 1.101 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002154/1.868, allocations: 77.77 kB / 1.101 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/1.868, allocations: 0.712 MB / 1.102 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006895/1.869, allocations: 1.052 MB / 1.103 GB, free: 468 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008354/1.87, allocations: 0.5117 MB / 1.103 GB, free: 124 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.58e-05/1.87, allocations: 301.1 kB / 1.103 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002953/1.873, allocations: 1.703 MB / 1.105 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003202/1.876, allocations: 1.923 MB / 1.107 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006329/1.882, allocations: 3.667 MB / 1.11 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/1.882, allocations: 2.906 kB / 1.11 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01159/1.894, allocations: 5.258 MB / 1.116 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/1.894, allocations: 8 kB / 1.116 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.701e-05/1.894, allocations: 8.656 kB / 1.116 GB, free: 7.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/1.896, allocations: 0.8369 MB / 1.116 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/1.899, allocations: 0.613 MB / 1.117 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/1.917, allocations: 14.67 MB / 1.131 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/1.919, allocations: 141.9 kB / 1.132 GB, free: 6.891 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004856/1.92, allocations: 184 kB / 1.132 GB, free: 6.711 MB / 0.7481 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.001269/1.921, allocations: 0.5268 MB / 1.132 GB, free: 6.203 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006653/1.922, allocations: 194.4 kB / 1.132 GB, free: 6.012 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/1.938, allocations: 8.245 MB / 1.14 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-05/1.938, allocations: 33.09 kB / 1.14 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.552e-05/1.938, allocations: 8 kB / 1.14 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-05/1.938, allocations: 15.94 kB / 1.14 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02012/1.958, allocations: 9.243 MB / 1.15 GB, free: 4.562 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.458e-05/1.958, allocations: 8 kB / 1.15 GB, free: 4.555 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002771/1.961, allocations: 0.6173 MB / 1.15 GB, free: 3.961 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002427/1.963, allocations: 0.8452 MB / 1.151 GB, free: 3.109 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002996/1.964, allocations: 122.3 kB / 1.151 GB, free: 2.992 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0175/1.981, allocations: 14.66 MB / 1.165 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.981, allocations: 5.781 kB / 1.165 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/1.997, allocations: 7.701 MB / 1.173 GB, free: 11.68 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.998, allocations: 0.6505 MB / 1.174 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000366/1.999, allocations: 57.88 kB / 1.174 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/2, allocations: 150.4 kB / 1.174 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005336/2.001, allocations: 254 kB / 1.174 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003602/2.001, allocations: 174.3 kB / 1.174 GB, free: 10.39 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001022/2.002, allocations: 0.7945 MB / 1.175 GB, free: 9.59 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/2.002, allocations: 0 / 1.175 GB, free: 9.59 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.008569/2.01, allocations: 3.242 MB / 1.178 GB, free: 6.348 MB / 0.795 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.01022/2.021, allocations: 3.92 MB / 1.182 GB, free: 2.797 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.01109/2.032, allocations: 5.713 MB / 1.187 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/2.032, allocations: 2.906 kB / 1.188 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0068/2.039, allocations: 3.758 MB / 1.191 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003743/2.042, allocations: 0.8947 MB / 1.192 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009387/2.052, allocations: 5.854 MB / 1.198 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/2.053, allocations: 1.737 MB / 1.199 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.002978/2.056, allocations: 1.412 MB / 1.201 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007875/2.057, allocations: 287.3 kB / 1.201 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/2.057, allocations: 0 / 1.201 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.1478/2.205, allocations: 114.6 MB / 1.313 GB, free: 13.14 MB / 0.9356 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches