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.008027/0.008027, allocations: 97.31 kB / 15.73 MB, free: 6.047 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.001958/0.001958, allocations: 184.4 kB / 16.67 MB, free: 5.969 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 / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6479/0.6479, allocations: 91.19 MB / 381.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 79.88 kB / 0.5164 GB, free: 9.523 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1169, allocations: 67.7 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.092/1.209, allocations: 395.5 MB / 0.9687 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.06991/1.279, allocations: 72.74 MB / 1.04 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/1.282, allocations: 67.47 kB / 1.04 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.006385/1.288, allocations: 2.472 MB / 1.042 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02453/1.313, allocations: 9.566 MB / 1.052 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01833/1.331, allocations: 7.417 MB / 1.059 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005764/1.337, allocations: 4.257 MB / 1.063 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/1.339, allocations: 1.12 MB / 1.064 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003878/1.342, allocations: 2.242 MB / 1.066 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002846/1.345, allocations: 1.969 MB / 1.068 GB, free: 9.941 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0008081/1.346, allocations: 308 kB / 1.068 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04603/1.392, allocations: 25.41 MB / 1.093 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001614/1.394, allocations: 0.97 MB / 1.094 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003165/1.397, allocations: 1.606 MB / 1.096 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.04782/1.445, allocations: 14.11 MB / 1.11 GB, free: 15.45 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/1.445, allocations: 0 / 1.11 GB, free: 15.45 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.485e-06/1.445, allocations: 0 / 1.11 GB, free: 15.45 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.000157/1.445, allocations: 0 / 1.11 GB, free: 15.45 MB / 0.795 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.01844/1.464, allocations: 5.848 MB / 1.115 GB, free: 9.516 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/1.464, allocations: 8.031 kB / 1.115 GB, free: 9.508 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007994/1.464, allocations: 362.5 kB / 1.116 GB, free: 9.145 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/1.465, allocations: 330 kB / 1.116 GB, free: 8.82 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/1.468, allocations: 1.542 MB / 1.117 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000732/1.469, allocations: 0.693 MB / 1.118 GB, free: 6.422 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005667/1.47, allocations: 263.9 kB / 1.118 GB, free: 6.164 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008896/1.479, allocations: 4.351 MB / 1.123 GB, free: 1.734 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.697e-05/1.479, allocations: 0 / 1.123 GB, free: 1.734 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/1.479, allocations: 99.98 kB / 1.123 GB, free: 1.637 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003015/1.479, allocations: 208.9 kB / 1.123 GB, free: 1.43 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009247/1.489, allocations: 5.091 MB / 1.128 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0243/1.513, allocations: 15.64 MB / 1.143 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005927/1.519, allocations: 3.015 MB / 1.146 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004058/1.523, allocations: 2.278 MB / 1.148 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3201/1.843, allocations: 9.341 MB / 1.157 GB, free: 360.3 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.905e-05/1.843, allocations: 67.92 kB / 1.158 GB, free: 360.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 1.057e-05/1.843, allocations: 0.7812 kB / 1.158 GB, free: 360.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.03098/1.874, allocations: 12.99 MB / 1.17 GB, free: 356.1 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.458e-05/1.875, allocations: 216.8 kB / 1.17 GB, free: 355.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/1.876, allocations: 1.14 MB / 1.172 GB, free: 355.4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.000447/1.877, allocations: 78.92 kB / 1.172 GB, free: 355.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/1.877, allocations: 0.8167 MB / 1.172 GB, free: 354.8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001108/1.878, allocations: 1.108 MB / 1.173 GB, free: 354 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/1.879, allocations: 0.511 MB / 1.174 GB, free: 353.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 5.148e-05/1.879, allocations: 308.2 kB / 1.174 GB, free: 353.6 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003801/1.883, allocations: 1.705 MB / 1.176 GB, free: 352.9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/1.887, allocations: 1.921 MB / 1.178 GB, free: 352.1 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007581/1.895, allocations: 3.666 MB / 1.181 GB, free: 350.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/1.895, allocations: 0 / 1.181 GB, free: 350.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01225/1.907, allocations: 5.294 MB / 1.187 GB, free: 348.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/1.907, allocations: 6.188 kB / 1.187 GB, free: 348.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.017e-05/1.907, allocations: 8.859 kB / 1.187 GB, free: 348.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002553/1.91, allocations: 0.8367 MB / 1.187 GB, free: 348.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003008/1.913, allocations: 0.6096 MB / 1.188 GB, free: 348.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/1.929, allocations: 14.68 MB / 1.202 GB, free: 336.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/1.931, allocations: 143.2 kB / 1.202 GB, free: 336.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008704/1.932, allocations: 190.2 kB / 1.203 GB, free: 336.4 MB / 0.8262 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.001409/1.934, allocations: 0.5456 MB / 1.203 GB, free: 336 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/1.934, allocations: 223.7 kB / 1.203 GB, free: 335.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01448/1.949, allocations: 8.27 MB / 1.211 GB, free: 332.9 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-05/1.949, allocations: 39.22 kB / 1.212 GB, free: 332.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/1.949, allocations: 11.72 kB / 1.212 GB, free: 332.9 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.509e-05/1.949, allocations: 14.06 kB / 1.212 GB, free: 332.9 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/1.965, allocations: 9.3 MB / 1.221 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.079e-05/1.965, allocations: 15.92 kB / 1.221 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002632/1.968, allocations: 0.6069 MB / 1.221 GB, free: 328.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002297/1.97, allocations: 0.8534 MB / 1.222 GB, free: 327.8 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004196/1.971, allocations: 115.2 kB / 1.222 GB, free: 327.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01432/1.985, allocations: 14.67 MB / 1.237 GB, free: 314.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.985, allocations: 0 / 1.237 GB, free: 314.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.999, allocations: 7.745 MB / 1.244 GB, free: 310.8 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/2, allocations: 0.6756 MB / 1.245 GB, free: 310.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003707/2.001, allocations: 70.61 kB / 1.245 GB, free: 310.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/2.002, allocations: 142.9 kB / 1.245 GB, free: 310 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000464/2.002, allocations: 260 kB / 1.245 GB, free: 309.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002862/2.003, allocations: 179.7 kB / 1.245 GB, free: 309.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0009148/2.004, allocations: 0.9198 MB / 1.246 GB, free: 308.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/2.004, allocations: 0 / 1.246 GB, free: 308.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.007108/2.011, allocations: 3.303 MB / 1.249 GB, free: 306 MB / 0.8262 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.02232/2.033, allocations: 12.32 MB / 1.262 GB, free: 294.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009584/2.043, allocations: 5.715 MB / 1.267 GB, free: 288.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/2.043, allocations: 4.125 kB / 1.267 GB, free: 288.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.005914/2.049, allocations: 3.77 MB / 1.271 GB, free: 284.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004023/2.053, allocations: 0.9259 MB / 1.272 GB, free: 283.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04233/2.095, allocations: 26.68 MB / 1.298 GB, free: 256.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/2.096, allocations: 1.816 MB / 1.3 GB, free: 254.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002889/2.099, allocations: 1.435 MB / 1.301 GB, free: 253.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/2.1, allocations: 1.151 MB / 1.302 GB, free: 252.2 MB / 0.8262 GB Notification: Performance of SimCode: time 1.002e-06/2.1, allocations: 4 kB / 1.302 GB, free: 252.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2159/2.316, allocations: 140.3 MB / 1.439 GB, free: 112 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.45/20.76, allocations: 7.922 kB / 1.439 GB, free: 112 MB / 0.8262 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)