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.00115/0.00115, allocations: 109 kB / 16.41 MB, free: 6.5 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.001023/0.001023, allocations: 183 kB / 17.34 MB, free: 5.762 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7219/0.7219, allocations: 91.19 MB / 382.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 79.88 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3515, allocations: 67.68 MB / 0.5836 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7614/1.113, allocations: 395.5 MB / 0.9698 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5825/1.696, allocations: 72.73 MB / 1.041 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002748/1.698, allocations: 66.94 kB / 1.041 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005982/1.704, allocations: 2.47 MB / 1.043 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02481/1.729, allocations: 9.571 MB / 1.053 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01926/1.749, allocations: 7.417 MB / 1.06 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007225/1.756, allocations: 4.265 MB / 1.064 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00197/1.758, allocations: 1.115 MB / 1.065 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005386/1.763, allocations: 2.242 MB / 1.067 GB, free: 16.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003974/1.767, allocations: 1.965 MB / 1.069 GB, free: 16.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0009147/1.768, allocations: 310.8 kB / 1.07 GB, free: 16.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04805/1.816, allocations: 25.41 MB / 1.094 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002228/1.819, allocations: 0.9772 MB / 1.095 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003843/1.822, allocations: 1.602 MB / 1.097 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.042/1.864, allocations: 14.05 MB / 1.111 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/1.864, allocations: 0 / 1.111 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.525e-06/1.864, allocations: 0 / 1.111 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001335/1.865, allocations: 0 / 1.111 GB, free: 10.92 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.01713/1.882, allocations: 5.65 MB / 1.116 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/1.882, allocations: 13.72 kB / 1.116 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008449/1.883, allocations: 318.5 kB / 1.116 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/1.885, allocations: 1.524 MB / 1.118 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006616/1.886, allocations: 0.6989 MB / 1.119 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/1.886, allocations: 258.8 kB / 1.119 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009037/1.896, allocations: 4.347 MB / 1.123 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.347e-05/1.896, allocations: 7.984 kB / 1.123 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/1.896, allocations: 96.91 kB / 1.123 GB, free: 4.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002702/1.896, allocations: 206.1 kB / 1.123 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009027/1.905, allocations: 5.086 MB / 1.128 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0255/1.931, allocations: 15.63 MB / 1.144 GB, free: 4.449 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005509/1.936, allocations: 3.003 MB / 1.147 GB, free: 2.691 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004072/1.94, allocations: 2.281 MB / 1.149 GB, free: 1.293 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008008/1.948, allocations: 9.347 MB / 1.158 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.416e-05/1.949, allocations: 63.39 kB / 1.158 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=309): time 8.476e-06/1.949, allocations: 0 / 1.158 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of matching and sorting (n=314): time 0.032/1.981, allocations: 12.96 MB / 1.171 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/1.981, allocations: 210.4 kB / 1.171 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/1.982, allocations: 1.146 MB / 1.172 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006589/1.983, allocations: 75.73 kB / 1.172 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005715/1.984, allocations: 0.8147 MB / 1.173 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001053/1.985, allocations: 1.057 MB / 1.174 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008389/1.986, allocations: 0.5054 MB / 1.174 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.819e-05/1.986, allocations: 309.1 kB / 1.175 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003289/1.989, allocations: 1.703 MB / 1.176 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003792/1.993, allocations: 1.918 MB / 1.178 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007569/2, allocations: 3.67 MB / 1.182 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/2, allocations: 0 / 1.182 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.0127/2.013, allocations: 5.281 MB / 1.187 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/2.013, allocations: 8 kB / 1.187 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.533e-05/2.013, allocations: 15.98 kB / 1.187 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/2.016, allocations: 0.8291 MB / 1.188 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003172/2.019, allocations: 0.6197 MB / 1.188 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01824/2.037, allocations: 14.67 MB / 1.203 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/2.04, allocations: 145.5 kB / 1.203 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005769/2.04, allocations: 186.5 kB / 1.203 GB, free: 9.141 MB / 0.8575 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.001425/2.042, allocations: 0.5366 MB / 1.204 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006969/2.042, allocations: 217.4 kB / 1.204 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0161/2.059, allocations: 8.245 MB / 1.212 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.126e-05/2.059, allocations: 32 kB / 1.212 GB, free: 108 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/2.059, allocations: 8 kB / 1.212 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.759e-05/2.059, allocations: 19.88 kB / 1.212 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/2.078, allocations: 9.306 MB / 1.221 GB, free: 6.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-05/2.079, allocations: 8 kB / 1.221 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003124/2.082, allocations: 0.6113 MB / 1.222 GB, free: 6.168 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002603/2.084, allocations: 0.854 MB / 1.222 GB, free: 5.297 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005612/2.085, allocations: 122.7 kB / 1.223 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01859/2.104, allocations: 14.67 MB / 1.237 GB, free: 5.625 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/2.104, allocations: 7.938 kB / 1.237 GB, free: 5.617 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/2.121, allocations: 7.717 MB / 1.244 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/2.123, allocations: 0.6736 MB / 1.245 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005506/2.124, allocations: 65.58 kB / 1.245 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/2.126, allocations: 152 kB / 1.245 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005269/2.126, allocations: 253.4 kB / 1.245 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003791/2.126, allocations: 171.9 kB / 1.246 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00138/2.128, allocations: 0.9237 MB / 1.247 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.5e-07/2.128, allocations: 0 / 1.247 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.01079/2.139, allocations: 3.252 MB / 1.25 GB, free: 8.34 MB / 0.9044 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.01351/2.152, allocations: 3.924 MB / 1.254 GB, free: 4.727 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01323/2.166, allocations: 5.723 MB / 1.259 GB, free: 14.89 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/2.166, allocations: 0 / 1.259 GB, free: 14.89 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.008226/2.174, allocations: 3.755 MB / 1.263 GB, free: 11.06 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/2.179, allocations: 0.9175 MB / 1.264 GB, free: 10.18 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/2.191, allocations: 6.202 MB / 1.27 GB, free: 3.969 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/2.193, allocations: 1.808 MB / 1.272 GB, free: 2.121 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/2.194, allocations: 359.2 kB / 1.272 GB, free: 1.77 MB / 0.92 GB Notification: Performance of SimCode: time 1.072e-06/2.195, allocations: 3.938 kB / 1.272 GB, free: 1.766 MB / 0.92 GB Notification: Performance of Templates: time 0.4903/2.685, allocations: 156.5 MB / 1.425 GB, free: 0.5652 GB / 1.045 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches