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.001008/0.001008, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001135/0.001135, allocations: 190.9 kB / 16.25 MB, free: 6.621 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.28/1.28, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 5.69/5.69, allocations: 91.19 MB / 381.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 76.88 kB / 459.9 MB, free: 23.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1318, allocations: 67.7 MB / 0.5152 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.25/1.382, allocations: 393.6 MB / 0.8996 GB, free: 196 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.08111/1.463, allocations: 72.64 MB / 0.9705 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003654/1.467, allocations: 80.47 kB / 0.9706 GB, free: 10.51 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.007948/1.475, allocations: 2.192 MB / 0.9727 GB, free: 9.059 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02788/1.503, allocations: 8.672 MB / 0.9812 GB, free: 2.793 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01963/1.522, allocations: 6.803 MB / 0.9879 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006466/1.529, allocations: 4.26 MB / 0.992 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001876/1.531, allocations: 1.118 MB / 0.9931 GB, free: 9.242 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005935/1.537, allocations: 2.213 MB / 0.9953 GB, free: 7.316 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003501/1.54, allocations: 2.065 MB / 0.9973 GB, free: 5.441 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0009142/1.541, allocations: 315.9 kB / 0.9976 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05019/1.591, allocations: 26.44 MB / 1.023 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001797/1.593, allocations: 0.971 MB / 1.024 GB, free: 12.03 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003991/1.597, allocations: 1.623 MB / 1.026 GB, free: 10.42 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.03951/1.637, allocations: 14.98 MB / 1.041 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.637, allocations: 0 / 1.041 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.493e-06/1.637, allocations: 0 / 1.041 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001395/1.637, allocations: 0 / 1.041 GB, free: 12.39 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.01615/1.653, allocations: 5.652 MB / 1.046 GB, free: 6.727 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/1.653, allocations: 8.031 kB / 1.046 GB, free: 6.719 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000986/1.654, allocations: 369.1 kB / 1.046 GB, free: 6.355 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/1.656, allocations: 320.3 kB / 1.047 GB, free: 6.039 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002998/1.659, allocations: 1.436 MB / 1.048 GB, free: 4.578 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007002/1.659, allocations: 0.6898 MB / 1.049 GB, free: 3.789 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007244/1.66, allocations: 259.6 kB / 1.049 GB, free: 3.539 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008141/1.668, allocations: 4.332 MB / 1.053 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.097e-05/1.668, allocations: 0 / 1.053 GB, free: 15.16 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003184/1.669, allocations: 96.92 kB / 1.053 GB, free: 15.07 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002463/1.669, allocations: 212.9 kB / 1.054 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008214/1.677, allocations: 5.083 MB / 1.059 GB, free: 9.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02329/1.7, allocations: 15.66 MB / 1.074 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/1.706, allocations: 3.011 MB / 1.077 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004336/1.71, allocations: 2.275 MB / 1.079 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008701/1.719, allocations: 9.348 MB / 1.088 GB, free: 8.457 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.58e-05/1.719, allocations: 64.95 kB / 1.088 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 7.884e-06/1.719, allocations: 3.938 kB / 1.088 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03109/1.75, allocations: 12.95 MB / 1.101 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/1.75, allocations: 81.84 kB / 1.101 GB, free: 11.06 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/1.752, allocations: 1.146 MB / 1.102 GB, free: 9.902 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0003413/1.752, allocations: 80.44 kB / 1.102 GB, free: 9.82 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/1.753, allocations: 0.8094 MB / 1.103 GB, free: 9 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001043/1.754, allocations: 1.043 MB / 1.104 GB, free: 7.969 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/1.755, allocations: 0.5116 MB / 1.104 GB, free: 7.457 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.052e-05/1.755, allocations: 309.1 kB / 1.105 GB, free: 7.152 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003355/1.759, allocations: 1.707 MB / 1.106 GB, free: 5.441 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/1.762, allocations: 1.882 MB / 1.108 GB, free: 3.543 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00708/1.769, allocations: 3.673 MB / 1.112 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/1.769, allocations: 3.938 kB / 1.112 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01248/1.782, allocations: 5.283 MB / 1.117 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/1.782, allocations: 8 kB / 1.117 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.64e-05/1.782, allocations: 8 kB / 1.117 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002577/1.785, allocations: 0.8392 MB / 1.118 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/1.788, allocations: 0.6163 MB / 1.118 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3155/2.103, allocations: 14.67 MB / 1.133 GB, free: 373.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002802/2.106, allocations: 229.4 kB / 1.133 GB, free: 373.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007183/2.107, allocations: 179.1 kB / 1.133 GB, free: 373.3 MB / 0.7794 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.001628/2.108, allocations: 0.5444 MB / 1.134 GB, free: 373.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007941/2.109, allocations: 215 kB / 1.134 GB, free: 373.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/2.126, allocations: 8.259 MB / 1.142 GB, free: 370.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.095e-05/2.126, allocations: 33.69 kB / 1.142 GB, free: 370.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.442e-05/2.126, allocations: 11.8 kB / 1.142 GB, free: 370.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.803e-05/2.126, allocations: 22.17 kB / 1.142 GB, free: 370.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01846/2.144, allocations: 9.307 MB / 1.151 GB, free: 367.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.629e-05/2.144, allocations: 20.38 kB / 1.151 GB, free: 367.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003445/2.148, allocations: 0.6138 MB / 1.152 GB, free: 367.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002598/2.151, allocations: 0.8525 MB / 1.153 GB, free: 366.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006003/2.151, allocations: 122.4 kB / 1.153 GB, free: 366.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/2.167, allocations: 14.68 MB / 1.167 GB, free: 355.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/2.167, allocations: 5.109 kB / 1.167 GB, free: 355.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/2.183, allocations: 7.73 MB / 1.175 GB, free: 352 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/2.185, allocations: 0.6691 MB / 1.175 GB, free: 351.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004747/2.185, allocations: 55.47 kB / 1.175 GB, free: 351.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/2.187, allocations: 214.6 kB / 1.175 GB, free: 351.4 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005556/2.188, allocations: 260.3 kB / 1.176 GB, free: 351.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003218/2.188, allocations: 181.2 kB / 1.176 GB, free: 351.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001053/2.189, allocations: 0.925 MB / 1.177 GB, free: 351 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/2.189, allocations: 0 / 1.177 GB, free: 351 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.01029/2.199, allocations: 3.247 MB / 1.18 GB, free: 350.5 MB / 0.7794 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.0238/2.223, allocations: 12.24 MB / 1.192 GB, free: 345.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0164/2.24, allocations: 6.863 MB / 1.199 GB, free: 341.8 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/2.24, allocations: 0 / 1.199 GB, free: 341.8 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.005947/2.246, allocations: 3.766 MB / 1.202 GB, free: 337.9 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/2.25, allocations: 0.9256 MB / 1.203 GB, free: 337.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04957/2.299, allocations: 30.04 MB / 1.233 GB, free: 305.9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/2.301, allocations: 1.812 MB / 1.234 GB, free: 304.1 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003145/2.304, allocations: 1.425 MB / 1.236 GB, free: 302.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/2.305, allocations: 1.163 MB / 1.237 GB, free: 301.5 MB / 0.7794 GB Notification: Performance of SimCode: time 8.01e-07/2.305, allocations: 0 / 1.237 GB, free: 301.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1791/2.484, allocations: 139 MB / 1.373 GB, free: 162.7 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/2.484, allocations: 263.9 kB / 1.373 GB, free: 162.4 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.476/9.96, allocations: 3.938 kB / 1.373 GB, free: 162.4 MB / 0.7794 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)