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: "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009471/0.009471, allocations: 103.3 kB / 15.73 MB, free: 6 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.002363/0.002363, allocations: 193.8 kB / 16.68 MB, free: 5.922 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 / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7439/0.7439, allocations: 91.2 MB / 381.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 75.88 kB / 0.5163 GB, free: 4.637 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3595, allocations: 67.68 MB / 0.5824 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7566/1.116, allocations: 395.5 MB / 0.9687 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.6624/1.779, allocations: 72.71 MB / 1.04 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/1.781, allocations: 70.84 kB / 1.04 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005473/1.786, allocations: 2.372 MB / 1.042 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02656/1.813, allocations: 9.451 MB / 1.051 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0218/1.835, allocations: 7.359 MB / 1.059 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007297/1.842, allocations: 4.261 MB / 1.063 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/1.844, allocations: 1.113 MB / 1.064 GB, free: 16.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004764/1.849, allocations: 2.243 MB / 1.066 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003407/1.852, allocations: 1.966 MB / 1.068 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000728/1.853, allocations: 305.2 kB / 1.068 GB, free: 16.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04449/1.898, allocations: 25.38 MB / 1.093 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001824/1.899, allocations: 0.9686 MB / 1.094 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003298/1.903, allocations: 1.608 MB / 1.095 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.03892/1.942, allocations: 14.05 MB / 1.109 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/1.942, allocations: 0 / 1.109 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.944e-06/1.942, allocations: 0 / 1.109 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001321/1.942, allocations: 0 / 1.109 GB, free: 11.02 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.01714/1.959, allocations: 5.655 MB / 1.115 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/1.959, allocations: 10.59 kB / 1.115 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004479/1.96, allocations: 368 kB / 1.115 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000759/1.96, allocations: 318.5 kB / 1.115 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/1.963, allocations: 1.525 MB / 1.117 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005851/1.963, allocations: 0.6893 MB / 1.118 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003732/1.964, allocations: 264.9 kB / 1.118 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006714/1.97, allocations: 4.343 MB / 1.122 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.152e-05/1.971, allocations: 11.31 kB / 1.122 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/1.971, allocations: 101 kB / 1.122 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002204/1.971, allocations: 201.7 kB / 1.122 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007402/1.978, allocations: 5.092 MB / 1.127 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02284/2.001, allocations: 15.62 MB / 1.143 GB, free: 4.504 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006119/2.007, allocations: 3.006 MB / 1.145 GB, free: 2.746 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004555/2.012, allocations: 2.277 MB / 1.148 GB, free: 1.352 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008127/2.02, allocations: 9.341 MB / 1.157 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.204e-05/2.02, allocations: 62.27 kB / 1.157 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=309): time 8.295e-06/2.02, allocations: 8 kB / 1.157 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=314): time 0.0354/2.056, allocations: 12.95 MB / 1.17 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/2.056, allocations: 212.3 kB / 1.17 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/2.058, allocations: 1.146 MB / 1.171 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006828/2.058, allocations: 73.7 kB / 1.171 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005975/2.059, allocations: 0.8133 MB / 1.172 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001336/2.06, allocations: 1.05 MB / 1.173 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/2.062, allocations: 0.5104 MB / 1.173 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.693e-05/2.062, allocations: 301.1 kB / 1.174 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003449/2.065, allocations: 1.711 MB / 1.175 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003831/2.069, allocations: 1.921 MB / 1.177 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008546/2.078, allocations: 3.669 MB / 1.181 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/2.078, allocations: 0 / 1.181 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01503/2.093, allocations: 5.282 MB / 1.186 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/2.093, allocations: 6.969 kB / 1.186 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.145e-05/2.093, allocations: 12 kB / 1.186 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/2.096, allocations: 0.8338 MB / 1.187 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/2.099, allocations: 0.6213 MB / 1.187 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/2.117, allocations: 14.67 MB / 1.202 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00236/2.119, allocations: 150.8 kB / 1.202 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009723/2.12, allocations: 179.9 kB / 1.202 GB, free: 9.207 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.001944/2.122, allocations: 0.5431 MB / 1.202 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/2.123, allocations: 221.4 kB / 1.203 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01746/2.141, allocations: 8.254 MB / 1.211 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.966e-05/2.141, allocations: 32 kB / 1.211 GB, free: 164 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.163e-05/2.141, allocations: 8 kB / 1.211 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-05/2.141, allocations: 15.94 kB / 1.211 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02196/2.163, allocations: 9.315 MB / 1.22 GB, free: 6.812 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.843e-05/2.163, allocations: 8 kB / 1.22 GB, free: 6.805 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/2.166, allocations: 0.6095 MB / 1.22 GB, free: 6.219 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/2.169, allocations: 0.8554 MB / 1.221 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006412/2.17, allocations: 117.6 kB / 1.221 GB, free: 5.234 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01794/2.188, allocations: 14.66 MB / 1.236 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.188, allocations: 3.938 kB / 1.236 GB, free: 5.68 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01964/2.207, allocations: 7.723 MB / 1.243 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/2.209, allocations: 0.6697 MB / 1.244 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007999/2.21, allocations: 67.92 kB / 1.244 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/2.212, allocations: 145.9 kB / 1.244 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000664/2.213, allocations: 250.6 kB / 1.244 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005207/2.213, allocations: 179.8 kB / 1.245 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001432/2.215, allocations: 0.9198 MB / 1.245 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of sort global known variables: time 5.81e-07/2.215, allocations: 0 / 1.245 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.009155/2.224, allocations: 3.249 MB / 1.249 GB, free: 8.402 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.03113/2.255, allocations: 12.24 MB / 1.261 GB, free: 12.39 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0137/2.269, allocations: 5.716 MB / 1.266 GB, free: 6.566 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/2.269, allocations: 3.938 kB / 1.266 GB, free: 6.562 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.008335/2.277, allocations: 3.764 MB / 1.27 GB, free: 2.73 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005572/2.283, allocations: 0.9284 MB / 1.271 GB, free: 1.84 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06045/2.343, allocations: 26.52 MB / 1.297 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002455/2.346, allocations: 1.811 MB / 1.298 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.004448/2.35, allocations: 1.432 MB / 1.3 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002473/2.353, allocations: 1.159 MB / 1.301 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of SimCode: time 1.493e-06/2.353, allocations: 0 / 1.301 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5377/2.89, allocations: 141.6 MB / 1.439 GB, free: 0.5601 GB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 19/21.9, allocations: 14.12 kB / 1.439 GB, free: 0.5601 GB / 1.045 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_SimpleAirCycle_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)