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.0009712/0.0009712, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007661/0.007661, allocations: 168.4 kB / 16.26 MB, free: 6.648 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.208/1.208, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 5.155/5.155, allocations: 89.65 MB / 381.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003871, allocations: 8.875 kB / 460.7 MB, free: 24.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1304, allocations: 68.83 MB / 0.5171 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.9867/1.117, allocations: 393.9 MB / 0.9018 GB, free: 0.7695 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.06521/1.182, allocations: 73.4 MB / 0.9735 GB, free: 2.902 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/1.186, allocations: 28.62 kB / 0.9735 GB, free: 2.883 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00499/1.191, allocations: 2.209 MB / 0.9757 GB, free: 1.414 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01989/1.211, allocations: 8.235 MB / 0.9837 GB, free: 11.56 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01593/1.226, allocations: 6.5 MB / 0.9901 GB, free: 6.715 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.006347/1.233, allocations: 6.035 MB / 0.996 GB, free: 0.8398 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/1.234, allocations: 0.9561 MB / 0.9969 GB, free: 15.86 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003318/1.238, allocations: 1.79 MB / 0.9987 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/1.24, allocations: 1.788 MB / 1 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005836/1.241, allocations: 132 kB / 1.001 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04387/1.285, allocations: 28.28 MB / 1.028 GB, free: 1.965 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001228/1.286, allocations: 0.7465 MB / 1.029 GB, free: 1.238 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002277/1.288, allocations: 1.364 MB / 1.03 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.03162/1.32, allocations: 14.6 MB / 1.044 GB, free: 2.23 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/1.32, allocations: 0 / 1.044 GB, free: 2.23 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.924e-06/1.32, allocations: 0 / 1.044 GB, free: 2.23 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001135/1.32, allocations: 4 kB / 1.044 GB, free: 2.227 MB / 0.6856 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.01224/1.332, allocations: 4.989 MB / 1.049 GB, free: 13.19 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/1.332, allocations: 12.03 kB / 1.049 GB, free: 13.18 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007544/1.333, allocations: 357.4 kB / 1.05 GB, free: 12.82 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007178/1.334, allocations: 292.7 kB / 1.05 GB, free: 12.54 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/1.336, allocations: 1.184 MB / 1.051 GB, free: 11.32 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006637/1.337, allocations: 0.7152 MB / 1.052 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005284/1.337, allocations: 255.5 kB / 1.052 GB, free: 10.27 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00652/1.344, allocations: 4.418 MB / 1.056 GB, free: 5.801 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.77e-05/1.344, allocations: 7.938 kB / 1.056 GB, free: 5.797 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/1.344, allocations: 102.7 kB / 1.056 GB, free: 5.703 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002259/1.344, allocations: 204.9 kB / 1.057 GB, free: 5.5 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007294/1.351, allocations: 5.189 MB / 1.062 GB, free: 308 kB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01988/1.371, allocations: 15.69 MB / 1.077 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005134/1.376, allocations: 3.109 MB / 1.08 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003799/1.38, allocations: 2.36 MB / 1.082 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2157/1.596, allocations: 9.345 MB / 1.092 GB, free: 336.9 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.369e-05/1.596, allocations: 65.3 kB / 1.092 GB, free: 336.9 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=309): time 7.414e-06/1.596, allocations: 0 / 1.092 GB, free: 336.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=314): time 0.02622/1.622, allocations: 13.75 MB / 1.105 GB, free: 333.1 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/1.622, allocations: 92.77 kB / 1.105 GB, free: 333 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/1.624, allocations: 0.9375 MB / 1.106 GB, free: 332.6 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002673/1.624, allocations: 75.11 kB / 1.106 GB, free: 332.6 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003567/1.624, allocations: 0.719 MB / 1.107 GB, free: 332 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006518/1.625, allocations: 1.05 MB / 1.108 GB, free: 331.2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/1.625, allocations: 205.6 kB / 1.108 GB, free: 331.1 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 3.508e-05/1.625, allocations: 305 kB / 1.108 GB, free: 330.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003141/1.628, allocations: 1.786 MB / 1.11 GB, free: 330.2 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003614/1.632, allocations: 1.974 MB / 1.112 GB, free: 329.4 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006406/1.638, allocations: 3.843 MB / 1.116 GB, free: 327.8 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/1.638, allocations: 1.375 kB / 1.116 GB, free: 327.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01082/1.649, allocations: 5.628 MB / 1.121 GB, free: 325.9 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/1.649, allocations: 11.81 kB / 1.121 GB, free: 325.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/1.649, allocations: 11.72 kB / 1.121 GB, free: 325.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/1.652, allocations: 0.9341 MB / 1.122 GB, free: 325.7 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/1.654, allocations: 0.6276 MB / 1.123 GB, free: 325.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01376/1.668, allocations: 14.1 MB / 1.137 GB, free: 314.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/1.67, allocations: 266.3 kB / 1.137 GB, free: 314.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003164/1.67, allocations: 181.5 kB / 1.137 GB, free: 314.6 MB / 0.7325 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.0009006/1.671, allocations: 0.5213 MB / 1.137 GB, free: 314.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/1.671, allocations: 189.9 kB / 1.138 GB, free: 314.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/1.685, allocations: 8.635 MB / 1.146 GB, free: 310.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-05/1.685, allocations: 33.59 kB / 1.146 GB, free: 310.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/1.685, allocations: 9.688 kB / 1.146 GB, free: 310.6 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.622e-05/1.685, allocations: 15.94 kB / 1.146 GB, free: 310.6 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01508/1.7, allocations: 9.642 MB / 1.156 GB, free: 303.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.862e-05/1.7, allocations: 15.92 kB / 1.156 GB, free: 303.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002435/1.702, allocations: 0.6367 MB / 1.156 GB, free: 302.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/1.705, allocations: 0.9551 MB / 1.157 GB, free: 301.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002363/1.705, allocations: 121.9 kB / 1.157 GB, free: 301.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/1.719, allocations: 14.09 MB / 1.171 GB, free: 286.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.719, allocations: 0 / 1.171 GB, free: 286.6 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/1.733, allocations: 8.13 MB / 1.179 GB, free: 278.3 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/1.734, allocations: 0.6817 MB / 1.18 GB, free: 277.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004358/1.735, allocations: 60.45 kB / 1.18 GB, free: 277.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/1.736, allocations: 251.4 kB / 1.18 GB, free: 277.3 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/1.737, allocations: 260.5 kB / 1.18 GB, free: 277.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000325/1.737, allocations: 179.8 kB / 1.18 GB, free: 276.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008458/1.738, allocations: 0.7867 MB / 1.181 GB, free: 276.1 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/1.738, allocations: 0 / 1.181 GB, free: 276.1 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.006705/1.745, allocations: 3.233 MB / 1.184 GB, free: 273.3 MB / 0.7325 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.02294/1.768, allocations: 12.69 MB / 1.197 GB, free: 261.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.009707/1.777, allocations: 5.976 MB / 1.203 GB, free: 255.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.778, allocations: 3.938 kB / 1.203 GB, free: 255.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.005971/1.783, allocations: 3.965 MB / 1.206 GB, free: 251.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004329/1.788, allocations: 0.8568 MB / 1.207 GB, free: 250.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04259/1.83, allocations: 29.78 MB / 1.236 GB, free: 219.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/1.832, allocations: 1.749 MB / 1.238 GB, free: 217.6 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002956/1.835, allocations: 1.403 MB / 1.239 GB, free: 216.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/1.836, allocations: 1.062 MB / 1.24 GB, free: 215.1 MB / 0.7325 GB Notification: Performance of SimCode: time 5.31e-07/1.836, allocations: 0 / 1.24 GB, free: 215.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.655/3.491, allocations: 133.3 MB / 1.371 GB, free: 82.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/3.491, allocations: 264.3 kB / 1.371 GB, free: 81.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/12.16, allocations: 0 / 1.371 GB, free: 81.82 MB / 0.7325 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)