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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.2829/0.2829, allocations: 99.8 kB / 15.73 MB, free: 6.043 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.009293/0.009293, allocations: 202.9 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 18.2/18.2, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 7.405/7.405, allocations: 89.47 MB / 380 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.05447/0.05447, allocations: 75.88 kB / 0.5139 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2553, allocations: 67.3 MB / 0.5796 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.447/1.702, allocations: 395.2 MB / 0.9656 GB, free: 15 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.09492/1.797, allocations: 72.65 MB / 1.037 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00312/1.8, allocations: 26.28 kB / 1.037 GB, free: 10.95 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007562/1.808, allocations: 2.351 MB / 1.039 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.03047/1.839, allocations: 9.392 MB / 1.048 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.02162/1.86, allocations: 7.36 MB / 1.055 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007734/1.868, allocations: 4.106 MB / 1.059 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/1.87, allocations: 1.096 MB / 1.06 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004639/1.874, allocations: 2.126 MB / 1.062 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003047/1.877, allocations: 1.935 MB / 1.064 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000524/1.878, allocations: 304 kB / 1.065 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05059/1.929, allocations: 25.39 MB / 1.089 GB, free: 6.156 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001758/1.93, allocations: 0.9582 MB / 1.09 GB, free: 5.195 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002427/1.933, allocations: 1.552 MB / 1.092 GB, free: 3.637 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0414/1.974, allocations: 13.9 MB / 1.105 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/1.974, allocations: 0 / 1.105 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.803e-06/1.974, allocations: 8 kB / 1.105 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.373e-05/1.974, allocations: 0 / 1.105 GB, free: 5.688 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.01649/1.991, allocations: 5.638 MB / 1.111 GB, free: 15.96 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/1.991, allocations: 8.031 kB / 1.111 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004715/1.991, allocations: 366.5 kB / 1.111 GB, free: 15.59 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000831/1.992, allocations: 310.2 kB / 1.112 GB, free: 15.28 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/1.994, allocations: 1.184 MB / 1.113 GB, free: 14.05 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009266/1.995, allocations: 0.6931 MB / 1.113 GB, free: 13.25 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004073/1.996, allocations: 255.9 kB / 1.114 GB, free: 13 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007834/2.003, allocations: 4.351 MB / 1.118 GB, free: 8.57 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.545e-05/2.004, allocations: 3.953 kB / 1.118 GB, free: 8.566 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/2.004, allocations: 103.9 kB / 1.118 GB, free: 8.465 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000258/2.004, allocations: 204.9 kB / 1.118 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008635/2.013, allocations: 5.087 MB / 1.123 GB, free: 3.16 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02438/2.037, allocations: 15.58 MB / 1.138 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005658/2.043, allocations: 3.003 MB / 1.141 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003958/2.047, allocations: 2.278 MB / 1.144 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009117/2.056, allocations: 9.343 MB / 1.153 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.836e-05/2.056, allocations: 64.95 kB / 1.153 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 7.303e-06/2.056, allocations: 3.938 kB / 1.153 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.3928/2.449, allocations: 12.92 MB / 1.165 GB, free: 364 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/2.449, allocations: 216.8 kB / 1.166 GB, free: 363.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/2.45, allocations: 0.9411 MB / 1.166 GB, free: 363.4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006485/2.451, allocations: 73.17 kB / 1.167 GB, free: 363.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/2.452, allocations: 0.7289 MB / 1.167 GB, free: 362.8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001172/2.453, allocations: 1.106 MB / 1.168 GB, free: 362.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009207/2.454, allocations: 0.5089 MB / 1.169 GB, free: 361.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 5.826e-05/2.454, allocations: 309.1 kB / 1.169 GB, free: 361.6 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003697/2.457, allocations: 1.704 MB / 1.171 GB, free: 361 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004501/2.462, allocations: 1.921 MB / 1.173 GB, free: 360.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008749/2.471, allocations: 3.67 MB / 1.176 GB, free: 358.6 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/2.471, allocations: 0 / 1.176 GB, free: 358.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01373/2.485, allocations: 5.26 MB / 1.181 GB, free: 356.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/2.485, allocations: 5.672 kB / 1.181 GB, free: 356.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.431e-05/2.485, allocations: 9.734 kB / 1.181 GB, free: 356.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002804/2.488, allocations: 0.8379 MB / 1.182 GB, free: 356.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/2.491, allocations: 0.6097 MB / 1.183 GB, free: 356.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01732/2.508, allocations: 14.69 MB / 1.197 GB, free: 344.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002491/2.511, allocations: 141.8 kB / 1.197 GB, free: 344.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007173/2.511, allocations: 185.6 kB / 1.197 GB, free: 344.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.001497/2.513, allocations: 0.5293 MB / 1.198 GB, free: 344.1 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008326/2.514, allocations: 209.2 kB / 1.198 GB, free: 344 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01603/2.53, allocations: 8.229 MB / 1.206 GB, free: 341 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001019/2.53, allocations: 35.66 kB / 1.206 GB, free: 341 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.533e-05/2.53, allocations: 7.938 kB / 1.206 GB, free: 341 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.889e-05/2.53, allocations: 18.42 kB / 1.206 GB, free: 341 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/2.548, allocations: 9.236 MB / 1.215 GB, free: 336.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.628e-05/2.548, allocations: 11.89 kB / 1.215 GB, free: 336.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/2.551, allocations: 0.6155 MB / 1.216 GB, free: 336.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002416/2.553, allocations: 0.8489 MB / 1.217 GB, free: 336.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006549/2.554, allocations: 121.7 kB / 1.217 GB, free: 336.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/2.569, allocations: 14.68 MB / 1.231 GB, free: 323.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/2.569, allocations: 3.938 kB / 1.231 GB, free: 323.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/2.585, allocations: 7.714 MB / 1.239 GB, free: 319.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/2.587, allocations: 0.6654 MB / 1.239 GB, free: 318.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005485/2.587, allocations: 56.66 kB / 1.239 GB, free: 318.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/2.589, allocations: 144.3 kB / 1.24 GB, free: 318.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005586/2.59, allocations: 260.5 kB / 1.24 GB, free: 318.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003578/2.59, allocations: 171.7 kB / 1.24 GB, free: 318.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008927/2.591, allocations: 0.7874 MB / 1.241 GB, free: 317.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/2.591, allocations: 0 / 1.241 GB, free: 317.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.009817/2.601, allocations: 3.303 MB / 1.244 GB, free: 316.2 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.02846/2.629, allocations: 12.29 MB / 1.256 GB, free: 304.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01189/2.641, allocations: 5.727 MB / 1.262 GB, free: 298.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/2.641, allocations: 4 kB / 1.262 GB, free: 298.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.006905/2.648, allocations: 3.758 MB / 1.265 GB, free: 294.6 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004517/2.653, allocations: 0.9079 MB / 1.266 GB, free: 293.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04328/2.696, allocations: 25.8 MB / 1.291 GB, free: 267.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/2.697, allocations: 1.741 MB / 1.293 GB, free: 265.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003123/2.7, allocations: 1.412 MB / 1.294 GB, free: 264.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/2.702, allocations: 1.061 MB / 1.295 GB, free: 263.4 MB / 0.8262 GB Notification: Performance of SimCode: time 1.383e-06/2.702, allocations: 4 kB / 1.295 GB, free: 263.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2756/2.977, allocations: 137.7 MB / 1.43 GB, free: 125.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.54/22.52, allocations: 15.92 kB / 1.43 GB, free: 125.9 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 & /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)