Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_dev_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.006105/0.006105, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001528/0.001529, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7339/0.7339, allocations: 93.7 MB / 384.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002402, allocations: 79.86 kB / 0.5199 GB, free: 1.098 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3095, allocations: 68.25 MB / 0.5866 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7776/1.087, allocations: 395.5 MB / 0.9729 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5737/1.661, allocations: 72.74 MB / 1.044 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002871/1.664, allocations: 69.38 kB / 1.044 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.006357/1.67, allocations: 2.368 MB / 1.046 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02773/1.698, allocations: 9.475 MB / 1.056 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.02004/1.718, allocations: 7.358 MB / 1.063 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007312/1.725, allocations: 4.319 MB / 1.067 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00224/1.728, allocations: 1.12 MB / 1.068 GB, free: 16.01 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005484/1.733, allocations: 2.218 MB / 1.07 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004205/1.737, allocations: 1.97 MB / 1.072 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001016/1.738, allocations: 307.6 kB / 1.072 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04937/1.788, allocations: 25.38 MB / 1.097 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001937/1.79, allocations: 0.9761 MB / 1.098 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00303/1.793, allocations: 1.606 MB / 1.1 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.04111/1.834, allocations: 14.13 MB / 1.114 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.237e-05/1.834, allocations: 0 / 1.114 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.194e-06/1.834, allocations: 3.938 kB / 1.114 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.000145/1.834, allocations: 0 / 1.114 GB, free: 10.07 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.01736/1.852, allocations: 5.87 MB / 1.119 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/1.852, allocations: 9.594 kB / 1.119 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008137/1.852, allocations: 359.8 kB / 1.12 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/1.854, allocations: 340.3 kB / 1.12 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003546/1.857, allocations: 1.555 MB / 1.121 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008077/1.858, allocations: 0.6912 MB / 1.122 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007083/1.859, allocations: 262.6 kB / 1.122 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00905/1.868, allocations: 4.353 MB / 1.127 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.391e-05/1.868, allocations: 11.95 kB / 1.127 GB, free: 2.164 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/1.868, allocations: 95.44 kB / 1.127 GB, free: 2.145 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002979/1.868, allocations: 205.4 kB / 1.127 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009617/1.878, allocations: 5.089 MB / 1.132 GB, free: 14.52 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02612/1.904, allocations: 15.64 MB / 1.147 GB, free: 1.887 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005908/1.91, allocations: 3.009 MB / 1.15 GB, free: 136 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004442/1.915, allocations: 2.28 MB / 1.152 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009431/1.924, allocations: 9.337 MB / 1.161 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001113/1.924, allocations: 69.44 kB / 1.162 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=309): time 7.684e-06/1.924, allocations: 4 kB / 1.162 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=314): time 0.0347/1.959, allocations: 13.01 MB / 1.174 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/1.959, allocations: 218.3 kB / 1.174 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/1.961, allocations: 1.155 MB / 1.176 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0007481/1.962, allocations: 76.75 kB / 1.176 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007366/1.962, allocations: 0.8345 MB / 1.176 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001443/1.964, allocations: 1.106 MB / 1.178 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/1.965, allocations: 0.5068 MB / 1.178 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.965, allocations: 305.1 kB / 1.178 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003737/1.969, allocations: 1.703 MB / 1.18 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004402/1.973, allocations: 1.928 MB / 1.182 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008659/1.982, allocations: 3.666 MB / 1.185 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/1.982, allocations: 0 / 1.185 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01481/1.997, allocations: 5.296 MB / 1.191 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.483e-05/1.997, allocations: 4 kB / 1.191 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.45e-05/1.997, allocations: 8 kB / 1.191 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002914/2, allocations: 0.8276 MB / 1.191 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003328/2.003, allocations: 0.6205 MB / 1.192 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0224/2.026, allocations: 14.68 MB / 1.206 GB, free: 5.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/2.028, allocations: 147.4 kB / 1.207 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007826/2.029, allocations: 183.9 kB / 1.207 GB, free: 5.406 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.001777/2.031, allocations: 0.5461 MB / 1.207 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000896/2.032, allocations: 234.5 kB / 1.207 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02002/2.052, allocations: 8.257 MB / 1.216 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001322/2.052, allocations: 32 kB / 1.216 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.319e-05/2.052, allocations: 11.98 kB / 1.216 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.843e-05/2.052, allocations: 11.95 kB / 1.216 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02387/2.076, allocations: 9.328 MB / 1.225 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.494e-05/2.076, allocations: 8 kB / 1.225 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003372/2.079, allocations: 0.6103 MB / 1.225 GB, free: 2.383 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002972/2.082, allocations: 0.8557 MB / 1.226 GB, free: 1.508 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006995/2.083, allocations: 117.4 kB / 1.226 GB, free: 1.395 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02176/2.105, allocations: 14.67 MB / 1.241 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/2.105, allocations: 0 / 1.241 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01885/2.124, allocations: 7.744 MB / 1.248 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001916/2.126, allocations: 0.6788 MB / 1.249 GB, free: 9.312 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005296/2.126, allocations: 62.8 kB / 1.249 GB, free: 9.254 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/2.128, allocations: 143.9 kB / 1.249 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006025/2.129, allocations: 258.7 kB / 1.249 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004085/2.129, allocations: 171.9 kB / 1.249 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001432/2.13, allocations: 0.9284 MB / 1.25 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.21e-07/2.13, allocations: 0 / 1.25 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.01058/2.141, allocations: 3.303 MB / 1.254 GB, free: 4.461 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.03252/2.174, allocations: 12.33 MB / 1.266 GB, free: 8.363 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01372/2.187, allocations: 5.718 MB / 1.271 GB, free: 2.535 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/2.187, allocations: 0 / 1.271 GB, free: 2.535 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.008954/2.196, allocations: 3.78 MB / 1.275 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005343/2.202, allocations: 0.9171 MB / 1.276 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0624/2.264, allocations: 26.75 MB / 1.302 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/2.266, allocations: 1.812 MB / 1.304 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.003934/2.27, allocations: 1.431 MB / 1.305 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001921/2.272, allocations: 1.167 MB / 1.306 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of SimCode: time 8.81e-07/2.272, allocations: 0 / 1.306 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5489/2.821, allocations: 140.6 MB / 1.443 GB, free: 0.5243 GB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.22/23.04, allocations: 7.797 kB / 1.443 GB, free: 0.5243 GB / 1.029 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)