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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001127/0.001127, allocations: 192.3 kB / 16.14 MB, free: 6.734 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.343/1.343, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7591/0.7591, allocations: 89.51 MB / 379.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 78.31 kB / 457.6 MB, free: 23.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1615, allocations: 67.32 MB / 0.5127 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.263/1.424, allocations: 399.9 MB / 0.9031 GB, free: 0.5156 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.08413/1.508, allocations: 74.53 MB / 0.9759 GB, free: 7.922 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003104/1.511, allocations: 28.91 kB / 0.976 GB, free: 7.902 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006447/1.518, allocations: 2.221 MB / 0.9781 GB, free: 6.418 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02604/1.544, allocations: 8.234 MB / 0.9862 GB, free: 0.5664 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01914/1.563, allocations: 6.493 MB / 0.9925 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.007752/1.571, allocations: 6.04 MB / 0.9984 GB, free: 6.645 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/1.573, allocations: 0.9785 MB / 0.9994 GB, free: 5.641 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004919/1.578, allocations: 1.929 MB / 1.001 GB, free: 3.945 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003842/1.582, allocations: 1.981 MB / 1.003 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001074/1.583, allocations: 204 kB / 1.003 GB, free: 1.957 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05232/1.635, allocations: 28.35 MB / 1.031 GB, free: 7.879 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00174/1.637, allocations: 0.8604 MB / 1.032 GB, free: 7.035 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003667/1.64, allocations: 1.461 MB / 1.033 GB, free: 5.59 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.04458/1.685, allocations: 14.72 MB / 1.048 GB, free: 7.816 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/1.685, allocations: 0 / 1.048 GB, free: 7.816 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.064e-06/1.685, allocations: 0 / 1.048 GB, free: 7.816 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001285/1.685, allocations: 0 / 1.048 GB, free: 7.816 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.01836/1.704, allocations: 5.454 MB / 1.053 GB, free: 2.324 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/1.704, allocations: 12.03 kB / 1.053 GB, free: 2.312 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007571/1.704, allocations: 370.4 kB / 1.053 GB, free: 1.949 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008508/1.705, allocations: 292.7 kB / 1.054 GB, free: 1.66 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/1.707, allocations: 1.181 MB / 1.055 GB, free: 464 kB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006573/1.708, allocations: 0.6875 MB / 1.055 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004044/1.708, allocations: 262.3 kB / 1.056 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007847/1.716, allocations: 4.328 MB / 1.06 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-05/1.716, allocations: 3.984 kB / 1.06 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002499/1.717, allocations: 101.4 kB / 1.06 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/1.717, allocations: 208.9 kB / 1.06 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009125/1.726, allocations: 5.089 MB / 1.065 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02725/1.753, allocations: 15.58 MB / 1.08 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006402/1.76, allocations: 3.011 MB / 1.083 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004955/1.765, allocations: 2.278 MB / 1.086 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008505/1.773, allocations: 9.342 MB / 1.095 GB, free: 4.402 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.95e-05/1.773, allocations: 68.89 kB / 1.095 GB, free: 4.324 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 1.048e-05/1.773, allocations: 0 / 1.095 GB, free: 4.324 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03333/1.807, allocations: 12.9 MB / 1.107 GB, free: 7.148 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/1.807, allocations: 81.84 kB / 1.107 GB, free: 7.055 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/1.808, allocations: 0.9382 MB / 1.108 GB, free: 6.098 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0004091/1.809, allocations: 81.06 kB / 1.108 GB, free: 6.016 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000502/1.809, allocations: 0.718 MB / 1.109 GB, free: 5.289 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009643/1.81, allocations: 1.046 MB / 1.11 GB, free: 4.254 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009942/1.811, allocations: 0.5127 MB / 1.111 GB, free: 3.738 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.076e-05/1.811, allocations: 305.1 kB / 1.111 GB, free: 3.438 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003251/1.814, allocations: 1.703 MB / 1.113 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2185/2.033, allocations: 1.886 MB / 1.115 GB, free: 366.4 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008055/2.041, allocations: 3.663 MB / 1.118 GB, free: 366.1 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/2.041, allocations: 0 / 1.118 GB, free: 366.1 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01198/2.053, allocations: 5.251 MB / 1.123 GB, free: 364.3 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/2.053, allocations: 7.781 kB / 1.123 GB, free: 364.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.982e-05/2.053, allocations: 7.844 kB / 1.123 GB, free: 364.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002359/2.056, allocations: 0.8349 MB / 1.124 GB, free: 364.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/2.059, allocations: 0.6158 MB / 1.125 GB, free: 364.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/2.073, allocations: 13.54 MB / 1.138 GB, free: 353.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/2.076, allocations: 229 kB / 1.138 GB, free: 353.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004384/2.076, allocations: 179.8 kB / 1.138 GB, free: 353.2 MB / 0.7637 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.001156/2.077, allocations: 0.5257 MB / 1.139 GB, free: 352.8 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005726/2.078, allocations: 190.8 kB / 1.139 GB, free: 352.8 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/2.094, allocations: 8.248 MB / 1.147 GB, free: 349.9 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.773e-05/2.094, allocations: 35.83 kB / 1.147 GB, free: 349.9 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/2.094, allocations: 9.469 kB / 1.147 GB, free: 349.9 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.347e-05/2.094, allocations: 15.09 kB / 1.147 GB, free: 349.9 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/2.11, allocations: 9.245 MB / 1.156 GB, free: 346.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.068e-05/2.11, allocations: 12.41 kB / 1.156 GB, free: 346.2 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003266/2.114, allocations: 0.6106 MB / 1.157 GB, free: 346.2 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/2.116, allocations: 0.8543 MB / 1.158 GB, free: 345.9 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007865/2.117, allocations: 131.3 kB / 1.158 GB, free: 345.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/2.131, allocations: 13.53 MB / 1.171 GB, free: 333.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/2.131, allocations: 3.938 kB / 1.171 GB, free: 333.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/2.147, allocations: 7.698 MB / 1.178 GB, free: 329.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/2.148, allocations: 0.6494 MB / 1.179 GB, free: 329.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005387/2.149, allocations: 63.44 kB / 1.179 GB, free: 329.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/2.15, allocations: 215.4 kB / 1.179 GB, free: 329.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005174/2.151, allocations: 255.5 kB / 1.18 GB, free: 329 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003813/2.151, allocations: 179 kB / 1.18 GB, free: 329 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009451/2.152, allocations: 0.7873 MB / 1.18 GB, free: 328.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/2.152, allocations: 0 / 1.18 GB, free: 328.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008453/2.161, allocations: 3.237 MB / 1.184 GB, free: 327.9 MB / 0.7637 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.02614/2.187, allocations: 12.23 MB / 1.196 GB, free: 319.2 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01136/2.198, allocations: 5.714 MB / 1.201 GB, free: 313.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/2.198, allocations: 0 / 1.201 GB, free: 313.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.006703/2.205, allocations: 3.753 MB / 1.205 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004268/2.209, allocations: 0.8608 MB / 1.206 GB, free: 308.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04922/2.259, allocations: 28.69 MB / 1.234 GB, free: 278.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/2.26, allocations: 1.741 MB / 1.235 GB, free: 277.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004143/2.264, allocations: 1.409 MB / 1.237 GB, free: 275.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001834/2.266, allocations: 1.062 MB / 1.238 GB, free: 274.6 MB / 0.7637 GB Notification: Performance of SimCode: time 1.392e-06/2.266, allocations: 0 / 1.238 GB, free: 274.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.148/2.414, allocations: 134.3 MB / 1.369 GB, free: 140.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/2.414, allocations: 264.3 kB / 1.369 GB, free: 140.2 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.181/9.595, allocations: 0 / 1.369 GB, free: 140.2 MB / 0.7637 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)