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.001244/0.001244, allocations: 104.1 kB / 16.37 MB, free: 6.473 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.00126/0.00126, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7754/0.7754, allocations: 89.49 MB / 380.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 75.88 kB / 459.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1306, allocations: 67.31 MB / 0.5146 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.9865/1.117, allocations: 395.3 MB / 0.9006 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.07921/1.196, allocations: 72.64 MB / 0.9715 GB, free: 1.328 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002406/1.199, allocations: 35.88 kB / 0.9716 GB, free: 1.293 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005852/1.205, allocations: 2.352 MB / 0.9739 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02353/1.228, allocations: 9.395 MB / 0.983 GB, free: 5.496 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01765/1.246, allocations: 7.354 MB / 0.9902 GB, free: 14.12 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.00595/1.252, allocations: 4.116 MB / 0.9943 GB, free: 9.992 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/1.254, allocations: 1.092 MB / 0.9953 GB, free: 8.902 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004/1.258, allocations: 2.13 MB / 0.9974 GB, free: 6.766 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002523/1.26, allocations: 1.927 MB / 0.9993 GB, free: 4.832 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004502/1.261, allocations: 308 kB / 0.9996 GB, free: 4.531 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4377/1.698, allocations: 25.37 MB / 1.024 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001511/1.7, allocations: 0.961 MB / 1.025 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002392/1.702, allocations: 1.548 MB / 1.027 GB, free: 10.75 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.03671/1.739, allocations: 13.84 MB / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/1.739, allocations: 2.562 kB / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.575e-06/1.739, allocations: 2.625 kB / 1.04 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001417/1.739, 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.01759/1.757, allocations: 5.46 MB / 1.046 GB, free: 8.238 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/1.757, allocations: 7.719 kB / 1.046 GB, free: 8.238 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007238/1.758, allocations: 294.3 kB / 1.046 GB, free: 8.102 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/1.759, allocations: 1.177 MB / 1.047 GB, free: 7.715 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005126/1.76, allocations: 0.6949 MB / 1.048 GB, free: 7.172 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003713/1.76, allocations: 262.8 kB / 1.048 GB, free: 7.164 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006483/1.767, allocations: 4.348 MB / 1.052 GB, free: 6.938 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.939e-05/1.767, allocations: 3.562 kB / 1.052 GB, free: 6.938 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/1.767, allocations: 96.52 kB / 1.052 GB, free: 6.938 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002376/1.767, allocations: 207.2 kB / 1.053 GB, free: 6.93 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007302/1.775, allocations: 5.084 MB / 1.058 GB, free: 6.891 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02087/1.796, allocations: 15.55 MB / 1.073 GB, free: 16.39 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004933/1.801, allocations: 2.999 MB / 1.076 GB, free: 16.33 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003465/1.804, allocations: 2.28 MB / 1.078 GB, free: 16.3 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007875/1.812, allocations: 9.347 MB / 1.087 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/1.812, allocations: 66.27 kB / 1.087 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=309): time 6.071e-06/1.812, allocations: 0 / 1.087 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=314): time 0.02632/1.838, allocations: 12.9 MB / 1.1 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.839, allocations: 210.9 kB / 1.1 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/1.84, allocations: 0.9418 MB / 1.101 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002994/1.84, allocations: 80.03 kB / 1.101 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003261/1.84, allocations: 0.7086 MB / 1.102 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008277/1.841, allocations: 1.055 MB / 1.103 GB, free: 308 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009019/1.842, allocations: 0.5075 MB / 1.103 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.374e-05/1.842, allocations: 305.8 kB / 1.103 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/1.845, allocations: 1.708 MB / 1.105 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003567/1.849, allocations: 1.918 MB / 1.107 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007106/1.856, allocations: 3.666 MB / 1.11 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/1.856, allocations: 2.906 kB / 1.11 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01184/1.868, allocations: 5.256 MB / 1.116 GB, free: 7.414 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/1.868, allocations: 4 kB / 1.116 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.146e-05/1.868, allocations: 8.75 kB / 1.116 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/1.87, allocations: 0.8336 MB / 1.116 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/1.874, allocations: 0.6157 MB / 1.117 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01815/1.892, allocations: 14.67 MB / 1.131 GB, free: 6.852 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/1.894, allocations: 150.9 kB / 1.132 GB, free: 6.707 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005502/1.895, allocations: 183.9 kB / 1.132 GB, free: 6.527 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.001249/1.896, allocations: 0.528 MB / 1.132 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006344/1.896, allocations: 193.7 kB / 1.132 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01553/1.912, allocations: 8.24 MB / 1.14 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-05/1.912, allocations: 39.98 kB / 1.14 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.912, allocations: 8 kB / 1.14 GB, free: 13.61 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.18e-05/1.912, allocations: 15.94 kB / 1.14 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/1.93, allocations: 9.232 MB / 1.15 GB, free: 4.379 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-05/1.93, allocations: 14.14 kB / 1.15 GB, free: 4.367 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.933, allocations: 0.6109 MB / 1.15 GB, free: 3.781 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/1.936, allocations: 0.8524 MB / 1.151 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004171/1.936, allocations: 123.4 kB / 1.151 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/1.954, allocations: 14.67 MB / 1.165 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.954, allocations: 0 / 1.165 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/1.971, allocations: 7.691 MB / 1.173 GB, free: 11.5 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/1.973, allocations: 0.6583 MB / 1.174 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/1.973, allocations: 58.89 kB / 1.174 GB, free: 10.76 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/1.975, allocations: 142.1 kB / 1.174 GB, free: 10.62 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005733/1.976, allocations: 262.3 kB / 1.174 GB, free: 10.37 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004145/1.976, allocations: 171.9 kB / 1.174 GB, free: 10.2 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001093/1.977, allocations: 0.7833 MB / 1.175 GB, free: 9.414 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/1.977, allocations: 0 / 1.175 GB, free: 9.414 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.009683/1.987, allocations: 3.248 MB / 1.178 GB, free: 6.168 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.0124/1.999, allocations: 3.927 MB / 1.182 GB, free: 2.613 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.01223/2.011, allocations: 5.709 MB / 1.188 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/2.011, allocations: 0 / 1.188 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.007231/2.019, allocations: 3.769 MB / 1.191 GB, free: 8.957 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003868/2.023, allocations: 0.9035 MB / 1.192 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009754/2.032, allocations: 5.836 MB / 1.198 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/2.034, allocations: 1.741 MB / 1.199 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.003325/2.037, allocations: 1.4 MB / 1.201 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008855/2.038, allocations: 293.9 kB / 1.201 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/2.038, allocations: 4 kB / 1.201 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of Templates: time 0.1552/2.193, allocations: 114.6 MB / 1.313 GB, free: 12.96 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 gbode -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