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.001524/0.001524, allocations: 108 kB / 15.6 MB, free: 132 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.00144/0.00144, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7497/0.7497, allocations: 91.21 MB / 381.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 81.75 kB / 460.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1205, allocations: 67.7 MB / 0.5157 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.048/1.169, allocations: 395.5 MB / 0.902 GB, free: 220 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.07524/1.244, allocations: 72.74 MB / 0.973 GB, free: 8.41 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/1.247, allocations: 68.75 kB / 0.9731 GB, free: 8.367 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006242/1.253, allocations: 2.371 MB / 0.9754 GB, free: 6.898 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02701/1.28, allocations: 9.453 MB / 0.9846 GB, free: 344 kB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01831/1.299, allocations: 7.371 MB / 0.9918 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005306/1.304, allocations: 4.253 MB / 0.996 GB, free: 7.645 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001771/1.306, allocations: 1.111 MB / 0.997 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004178/1.31, allocations: 2.205 MB / 0.9992 GB, free: 4.598 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003081/1.313, allocations: 1.961 MB / 1.001 GB, free: 2.82 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0008837/1.314, allocations: 308 kB / 1.001 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04731/1.361, allocations: 25.34 MB / 1.026 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001473/1.363, allocations: 0.9673 MB / 1.027 GB, free: 10.16 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003139/1.366, allocations: 1.612 MB / 1.029 GB, free: 8.566 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.04067/1.407, allocations: 13.96 MB / 1.042 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/1.407, allocations: 4 kB / 1.042 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.914e-06/1.407, allocations: 0 / 1.042 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 9.429e-05/1.407, allocations: 0 / 1.042 GB, free: 11.41 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.01563/1.422, allocations: 5.658 MB / 1.048 GB, free: 5.734 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/1.422, allocations: 8.031 kB / 1.048 GB, free: 5.727 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006288/1.423, allocations: 365.8 kB / 1.048 GB, free: 5.367 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008587/1.424, allocations: 320.3 kB / 1.048 GB, free: 5.051 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/1.427, allocations: 1.432 MB / 1.05 GB, free: 3.594 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006901/1.427, allocations: 0.7014 MB / 1.051 GB, free: 2.793 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005249/1.428, allocations: 258.5 kB / 1.051 GB, free: 2.547 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007828/1.436, allocations: 4.332 MB / 1.055 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.576e-05/1.436, allocations: 0 / 1.055 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003046/1.436, allocations: 96.53 kB / 1.055 GB, free: 14.08 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002924/1.436, allocations: 208.9 kB / 1.055 GB, free: 13.88 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008406/1.445, allocations: 5.081 MB / 1.06 GB, free: 8.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/1.47, allocations: 15.72 MB / 1.076 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006578/1.476, allocations: 3.003 MB / 1.079 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004826/1.481, allocations: 2.286 MB / 1.081 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008214/1.49, allocations: 9.337 MB / 1.09 GB, free: 7.422 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.365e-05/1.49, allocations: 64.95 kB / 1.09 GB, free: 7.348 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 9.248e-06/1.49, allocations: 4 kB / 1.09 GB, free: 7.344 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03292/1.523, allocations: 12.95 MB / 1.103 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/1.523, allocations: 93.78 kB / 1.103 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/1.524, allocations: 1.142 MB / 1.104 GB, free: 8.859 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0004534/1.525, allocations: 73.7 kB / 1.104 GB, free: 8.781 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005955/1.525, allocations: 0.8127 MB / 1.105 GB, free: 7.961 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.527, allocations: 1.053 MB / 1.106 GB, free: 6.918 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001262/1.528, allocations: 0.5063 MB / 1.106 GB, free: 6.41 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.011e-05/1.528, allocations: 305.1 kB / 1.107 GB, free: 6.109 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003494/1.532, allocations: 1.707 MB / 1.108 GB, free: 4.398 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003851/1.535, allocations: 1.894 MB / 1.11 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2713/1.807, allocations: 3.66 MB / 1.114 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/1.807, allocations: 0.7188 kB / 1.114 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01271/1.819, allocations: 5.275 MB / 1.119 GB, free: 362 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/1.82, allocations: 6.219 kB / 1.119 GB, free: 362 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/1.82, allocations: 14.77 kB / 1.119 GB, free: 362 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/1.822, allocations: 0.8483 MB / 1.12 GB, free: 361.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/1.825, allocations: 0.6147 MB / 1.12 GB, free: 361.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/1.842, allocations: 14.67 MB / 1.135 GB, free: 350 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/1.845, allocations: 142.9 kB / 1.135 GB, free: 350 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000447/1.845, allocations: 187 kB / 1.135 GB, free: 349.9 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.001283/1.847, allocations: 0.5464 MB / 1.135 GB, free: 349.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005874/1.847, allocations: 212.6 kB / 1.136 GB, free: 349.6 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01631/1.864, allocations: 8.253 MB / 1.144 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.433e-05/1.864, allocations: 39.91 kB / 1.144 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.618e-05/1.864, allocations: 8.688 kB / 1.144 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.498e-05/1.864, allocations: 14.86 kB / 1.144 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01845/1.882, allocations: 9.313 MB / 1.153 GB, free: 342.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.843e-05/1.882, allocations: 15.3 kB / 1.153 GB, free: 342.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002776/1.885, allocations: 0.6175 MB / 1.153 GB, free: 342.9 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.888, allocations: 0.8498 MB / 1.154 GB, free: 342.7 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003988/1.888, allocations: 120.5 kB / 1.154 GB, free: 342.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.903, allocations: 14.69 MB / 1.169 GB, free: 330 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/1.903, allocations: 0 / 1.169 GB, free: 330 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01549/1.919, allocations: 7.722 MB / 1.176 GB, free: 325.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/1.92, allocations: 0.6712 MB / 1.177 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003879/1.921, allocations: 59.88 kB / 1.177 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/1.922, allocations: 154.8 kB / 1.177 GB, free: 325.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004849/1.923, allocations: 252.8 kB / 1.177 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002987/1.923, allocations: 177.8 kB / 1.178 GB, free: 325 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001005/1.924, allocations: 0.9165 MB / 1.178 GB, free: 324.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/1.924, allocations: 4.438 kB / 1.178 GB, free: 324.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.007987/1.932, allocations: 3.25 MB / 1.182 GB, free: 323.8 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.0255/1.958, allocations: 12.25 MB / 1.194 GB, free: 316.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0181/1.976, allocations: 6.87 MB / 1.2 GB, free: 309.8 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/1.976, allocations: 4 kB / 1.2 GB, free: 309.8 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007021/1.983, allocations: 3.767 MB / 1.204 GB, free: 306 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004296/1.987, allocations: 0.9313 MB / 1.205 GB, free: 305.1 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04687/2.034, allocations: 28.99 MB / 1.233 GB, free: 274.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001966/2.036, allocations: 1.816 MB / 1.235 GB, free: 273 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003881/2.04, allocations: 1.426 MB / 1.236 GB, free: 271.6 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001841/2.042, allocations: 1.159 MB / 1.237 GB, free: 270.4 MB / 0.7637 GB Notification: Performance of SimCode: time 9.22e-07/2.042, allocations: 3.938 kB / 1.237 GB, free: 270.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1921/2.234, allocations: 139.1 MB / 1.373 GB, free: 131.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/17.14, allocations: 3.859 kB / 1.373 GB, free: 131.5 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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)