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.001257/0.001257, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7277/0.7277, allocations: 91.2 MB / 381.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 76.34 kB / 460.4 MB, free: 23.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1195, allocations: 67.7 MB / 0.5157 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.121/1.241, allocations: 395.5 MB / 0.902 GB, free: 200 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.07392/1.315, allocations: 72.74 MB / 0.973 GB, free: 8.43 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002842/1.317, allocations: 66.16 kB / 0.9731 GB, free: 8.391 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006081/1.324, allocations: 2.37 MB / 0.9754 GB, free: 6.922 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02797/1.352, allocations: 9.456 MB / 0.9846 GB, free: 364 kB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.02013/1.372, allocations: 7.357 MB / 0.9918 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006612/1.378, allocations: 4.258 MB / 0.9959 GB, free: 7.672 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/1.38, allocations: 1.118 MB / 0.997 GB, free: 6.535 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00463/1.385, allocations: 2.199 MB / 0.9992 GB, free: 4.625 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/1.388, allocations: 1.967 MB / 1.001 GB, free: 2.84 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005901/1.389, allocations: 308 kB / 1.001 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04857/1.437, allocations: 25.33 MB / 1.026 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001787/1.439, allocations: 0.9796 MB / 1.027 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003028/1.442, allocations: 1.614 MB / 1.029 GB, free: 8.602 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.04118/1.483, allocations: 13.96 MB / 1.042 GB, free: 11.45 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/1.483, allocations: 0 / 1.042 GB, free: 11.45 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.094e-06/1.483, allocations: 0 / 1.042 GB, free: 11.45 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 9.365e-05/1.483, allocations: 0 / 1.042 GB, free: 11.45 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.01641/1.5, allocations: 5.661 MB / 1.048 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/1.5, allocations: 8.031 kB / 1.048 GB, free: 5.766 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005307/1.5, allocations: 363.6 kB / 1.048 GB, free: 5.406 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/1.501, allocations: 316.3 kB / 1.048 GB, free: 5.094 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/1.504, allocations: 1.437 MB / 1.05 GB, free: 3.633 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007399/1.505, allocations: 0.6986 MB / 1.051 GB, free: 2.832 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000407/1.505, allocations: 258.5 kB / 1.051 GB, free: 2.586 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007832/1.513, allocations: 4.326 MB / 1.055 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.495e-05/1.513, allocations: 0 / 1.055 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002528/1.513, allocations: 102.3 kB / 1.055 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002547/1.513, allocations: 208.9 kB / 1.055 GB, free: 13.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008479/1.522, allocations: 5.079 MB / 1.06 GB, free: 8.824 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/1.549, allocations: 15.72 MB / 1.076 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006057/1.555, allocations: 3.005 MB / 1.079 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004539/1.559, allocations: 2.278 MB / 1.081 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008393/1.568, allocations: 9.345 MB / 1.09 GB, free: 7.461 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.293e-05/1.568, allocations: 64.95 kB / 1.09 GB, free: 7.387 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 7.724e-06/1.568, allocations: 3.938 kB / 1.09 GB, free: 7.383 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03485/1.603, allocations: 12.95 MB / 1.103 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/1.603, allocations: 85.84 kB / 1.103 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/1.605, allocations: 1.142 MB / 1.104 GB, free: 8.902 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0004384/1.605, allocations: 77.7 kB / 1.104 GB, free: 8.82 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006022/1.606, allocations: 0.8094 MB / 1.105 GB, free: 8 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.607, allocations: 1.051 MB / 1.106 GB, free: 6.961 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/1.608, allocations: 0.5029 MB / 1.106 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001133/1.608, allocations: 309.1 kB / 1.107 GB, free: 6.152 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/1.612, allocations: 1.707 MB / 1.108 GB, free: 4.441 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004099/1.616, allocations: 1.89 MB / 1.11 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2743/1.89, allocations: 3.669 MB / 1.114 GB, free: 363.1 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.299e-05/1.89, allocations: 0 / 1.114 GB, free: 363.1 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01519/1.905, allocations: 5.284 MB / 1.119 GB, free: 362.3 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/1.906, allocations: 5.188 kB / 1.119 GB, free: 362.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-05/1.906, allocations: 8.969 kB / 1.119 GB, free: 362.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002474/1.908, allocations: 0.8405 MB / 1.12 GB, free: 362.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003002/1.911, allocations: 0.6214 MB / 1.12 GB, free: 362 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/1.929, allocations: 14.67 MB / 1.135 GB, free: 350.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/1.931, allocations: 147.3 kB / 1.135 GB, free: 350.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.933, allocations: 179.8 kB / 1.135 GB, free: 350.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.002949/1.935, allocations: 0.5481 MB / 1.135 GB, free: 349.8 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.937, allocations: 214.2 kB / 1.136 GB, free: 349.8 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/1.956, allocations: 8.258 MB / 1.144 GB, free: 346.9 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.337e-05/1.956, allocations: 39.69 kB / 1.144 GB, free: 346.9 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.829e-05/1.956, allocations: 9.25 kB / 1.144 GB, free: 346.9 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.615e-05/1.956, allocations: 15.66 kB / 1.144 GB, free: 346.9 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02149/1.978, allocations: 9.315 MB / 1.153 GB, free: 343.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-05/1.978, allocations: 15.19 kB / 1.153 GB, free: 343.2 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/1.981, allocations: 0.6123 MB / 1.153 GB, free: 343.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/1.983, allocations: 0.8478 MB / 1.154 GB, free: 342.9 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004832/1.984, allocations: 128.1 kB / 1.154 GB, free: 342.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/2, allocations: 14.67 MB / 1.169 GB, free: 330.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/2, allocations: 3.938 kB / 1.169 GB, free: 330.3 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01716/2.017, allocations: 7.722 MB / 1.176 GB, free: 326.2 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/2.019, allocations: 0.6793 MB / 1.177 GB, free: 325.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008431/2.02, allocations: 57.39 kB / 1.177 GB, free: 325.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/2.022, allocations: 152.8 kB / 1.177 GB, free: 325.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006812/2.023, allocations: 260.4 kB / 1.177 GB, free: 325.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004986/2.023, allocations: 173.1 kB / 1.178 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001301/2.025, allocations: 0.9244 MB / 1.178 GB, free: 324.8 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.31e-07/2.025, allocations: 0 / 1.178 GB, free: 324.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008746/2.033, allocations: 3.245 MB / 1.182 GB, free: 324.1 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.02821/2.062, allocations: 12.25 MB / 1.194 GB, free: 316.9 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01842/2.08, allocations: 6.868 MB / 1.2 GB, free: 310 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/2.08, allocations: 4 kB / 1.2 GB, free: 310 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007063/2.087, allocations: 3.761 MB / 1.204 GB, free: 306.1 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006858/2.094, allocations: 0.929 MB / 1.205 GB, free: 305.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0581/2.152, allocations: 29 MB / 1.233 GB, free: 274.9 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/2.154, allocations: 1.804 MB / 1.235 GB, free: 273.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004245/2.158, allocations: 1.437 MB / 1.236 GB, free: 271.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001976/2.16, allocations: 1.159 MB / 1.237 GB, free: 270.5 MB / 0.7637 GB Notification: Performance of SimCode: time 1.042e-06/2.16, allocations: 0 / 1.237 GB, free: 270.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1927/2.353, allocations: 139.1 MB / 1.373 GB, free: 131.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.09/18.44, allocations: 7.797 kB / 1.373 GB, free: 131.6 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)