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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001257/0.001257, allocations: 191.9 kB / 16.14 MB, free: 6.719 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7267/0.7267, allocations: 91.21 MB / 381.2 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 88.44 kB / 459.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1333, allocations: 67.69 MB / 0.5149 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.287/1.421, allocations: 400.3 MB / 0.9059 GB, free: 416 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.09125/1.512, allocations: 74.65 MB / 0.9788 GB, free: 5.695 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003233/1.515, allocations: 78.03 kB / 0.9788 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006342/1.522, allocations: 2.229 MB / 0.981 GB, free: 4.164 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02765/1.549, allocations: 8.272 MB / 0.9891 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.02498/1.574, allocations: 6.501 MB / 0.9954 GB, free: 9.441 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.008781/1.583, allocations: 6.182 MB / 1.001 GB, free: 4.238 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/1.586, allocations: 0.9934 MB / 1.002 GB, free: 3.223 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005387/1.591, allocations: 2.002 MB / 1.004 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003873/1.595, allocations: 2.016 MB / 1.006 GB, free: 15.65 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001203/1.596, allocations: 204 kB / 1.007 GB, free: 15.45 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05102/1.647, allocations: 28.35 MB / 1.034 GB, free: 5.02 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001798/1.649, allocations: 0.8696 MB / 1.035 GB, free: 4.168 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003729/1.653, allocations: 1.519 MB / 1.037 GB, free: 2.664 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0407/1.693, allocations: 14.82 MB / 1.051 GB, free: 4.805 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.693, allocations: 8 kB / 1.051 GB, free: 4.797 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.004e-06/1.693, allocations: 0 / 1.051 GB, free: 4.797 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 5.181e-05/1.694, allocations: 0 / 1.051 GB, free: 4.797 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.01389/1.707, allocations: 5.656 MB / 1.057 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.707, allocations: 16.02 kB / 1.057 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/1.708, allocations: 316.3 kB / 1.057 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/1.71, allocations: 1.435 MB / 1.058 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006661/1.711, allocations: 0.6965 MB / 1.059 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/1.712, allocations: 261.9 kB / 1.059 GB, free: 12.29 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007121/1.719, allocations: 4.328 MB / 1.063 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.038e-05/1.719, allocations: 3.938 kB / 1.063 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/1.719, allocations: 97.31 kB / 1.064 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002533/1.719, allocations: 204.9 kB / 1.064 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007963/1.727, allocations: 5.086 MB / 1.069 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02288/1.75, allocations: 15.67 MB / 1.084 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005472/1.756, allocations: 3.011 MB / 1.087 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004182/1.76, allocations: 2.275 MB / 1.089 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007726/1.768, allocations: 9.345 MB / 1.098 GB, free: 1.203 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.947e-05/1.768, allocations: 68.95 kB / 1.098 GB, free: 1.125 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 6.632e-06/1.768, allocations: 0 / 1.098 GB, free: 1.125 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03106/1.799, allocations: 12.96 MB / 1.111 GB, free: 3.875 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/1.799, allocations: 85.84 kB / 1.111 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/1.801, allocations: 1.146 MB / 1.112 GB, free: 2.617 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0005346/1.801, allocations: 69.7 kB / 1.112 GB, free: 2.543 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005481/1.802, allocations: 0.8133 MB / 1.113 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.803, allocations: 1.047 MB / 1.114 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008996/1.804, allocations: 0.5091 MB / 1.115 GB, free: 144 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.3017/2.105, allocations: 304.9 kB / 1.115 GB, free: 364.2 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004805/2.11, allocations: 1.702 MB / 1.117 GB, free: 364.2 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004715/2.115, allocations: 1.89 MB / 1.118 GB, free: 364.1 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007649/2.123, allocations: 3.667 MB / 1.122 GB, free: 362.5 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.861e-05/2.123, allocations: 0 / 1.122 GB, free: 362.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01207/2.135, allocations: 5.278 MB / 1.127 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.095e-05/2.135, allocations: 9.875 kB / 1.127 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.068e-05/2.135, allocations: 13.25 kB / 1.127 GB, free: 360.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002675/2.138, allocations: 0.8305 MB / 1.128 GB, free: 360.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003499/2.141, allocations: 0.6143 MB / 1.129 GB, free: 360.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/2.159, allocations: 13.53 MB / 1.142 GB, free: 349.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/2.161, allocations: 234.7 kB / 1.142 GB, free: 349.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007737/2.162, allocations: 181.3 kB / 1.142 GB, free: 349.6 MB / 0.7637 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.001513/2.164, allocations: 0.5394 MB / 1.143 GB, free: 349.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007852/2.165, allocations: 212.8 kB / 1.143 GB, free: 349.3 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01603/2.181, allocations: 8.267 MB / 1.151 GB, free: 346.3 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.44e-05/2.181, allocations: 31.69 kB / 1.151 GB, free: 346.3 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/2.181, allocations: 10.38 kB / 1.151 GB, free: 346.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.353e-05/2.181, allocations: 18.19 kB / 1.151 GB, free: 346.3 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/2.198, allocations: 9.329 MB / 1.16 GB, free: 342.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.876e-05/2.198, allocations: 15.8 kB / 1.16 GB, free: 342.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002972/2.201, allocations: 0.6119 MB / 1.161 GB, free: 342.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/2.203, allocations: 0.8442 MB / 1.162 GB, free: 341.9 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005145/2.204, allocations: 125.7 kB / 1.162 GB, free: 341.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/2.218, allocations: 13.52 MB / 1.175 GB, free: 330 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/2.218, allocations: 3.938 kB / 1.175 GB, free: 330 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/2.232, allocations: 7.721 MB / 1.182 GB, free: 325.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/2.234, allocations: 0.6725 MB / 1.183 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005096/2.234, allocations: 71.08 kB / 1.183 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/2.236, allocations: 210.2 kB / 1.183 GB, free: 325.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004861/2.237, allocations: 250.4 kB / 1.184 GB, free: 325 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003236/2.237, allocations: 185.3 kB / 1.184 GB, free: 325 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001009/2.238, allocations: 0.9214 MB / 1.185 GB, free: 324.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 5.51e-07/2.238, allocations: 0 / 1.185 GB, free: 324.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008332/2.246, allocations: 3.25 MB / 1.188 GB, free: 323.8 MB / 0.7637 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.01011/2.256, allocations: 3.925 MB / 1.192 GB, free: 321.9 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01065/2.267, allocations: 5.706 MB / 1.197 GB, free: 316 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/2.267, allocations: 0 / 1.197 GB, free: 316 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.00646/2.274, allocations: 3.759 MB / 1.201 GB, free: 312.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004049/2.278, allocations: 0.8719 MB / 1.202 GB, free: 311.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008622/2.286, allocations: 7.231 MB / 1.209 GB, free: 304.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000967/2.287, allocations: 1.808 MB / 1.211 GB, free: 302.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002956/2.29, allocations: 1.426 MB / 1.212 GB, free: 300.9 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008469/2.291, allocations: 299.3 kB / 1.212 GB, free: 300.6 MB / 0.7637 GB Notification: Performance of SimCode: time 6.22e-07/2.291, allocations: 4 kB / 1.212 GB, free: 300.6 MB / 0.7637 GB Notification: Performance of Templates: time 0.1221/2.413, allocations: 112.7 MB / 1.322 GB, free: 188.1 MB / 0.7637 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