Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_dev_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.0013/0.0013, 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.001296/0.001296, allocations: 197.6 kB / 16.53 MB, free: 6.66 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.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7114/0.7114, allocations: 93.72 MB / 384.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 82.05 kB / 463.5 MB, free: 21.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1097, allocations: 68.27 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.938/1.048, allocations: 395.5 MB / 0.9056 GB, free: 160 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.06506/1.113, allocations: 72.77 MB / 0.9766 GB, free: 5.754 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/1.115, allocations: 67.66 kB / 0.9767 GB, free: 5.715 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.005402/1.12, allocations: 2.36 MB / 0.979 GB, free: 4.254 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02274/1.143, allocations: 9.484 MB / 0.9883 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.01988/1.163, allocations: 7.358 MB / 0.9954 GB, free: 8.258 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006926/1.17, allocations: 4.311 MB / 0.9996 GB, free: 4.93 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/1.172, allocations: 1.121 MB / 1.001 GB, free: 3.793 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004509/1.177, allocations: 2.214 MB / 1.003 GB, free: 1.754 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002619/1.179, allocations: 1.975 MB / 1.005 GB, free: 15.91 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004723/1.18, allocations: 308 kB / 1.005 GB, free: 15.61 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04534/1.225, allocations: 25.33 MB / 1.03 GB, free: 8.039 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001478/1.227, allocations: 0.9694 MB / 1.031 GB, free: 7.09 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002384/1.229, allocations: 1.612 MB / 1.032 GB, free: 5.492 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.03485/1.264, allocations: 13.98 MB / 1.046 GB, free: 8.199 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/1.264, allocations: 0 / 1.046 GB, free: 8.199 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.222e-06/1.264, allocations: 4 kB / 1.046 GB, free: 8.195 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 3.862e-05/1.264, allocations: 0 / 1.046 GB, free: 8.195 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.01453/1.279, allocations: 5.674 MB / 1.052 GB, free: 2.453 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/1.279, allocations: 16.02 kB / 1.052 GB, free: 2.438 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004854/1.279, allocations: 358.5 kB / 1.052 GB, free: 2.078 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007789/1.28, allocations: 316.4 kB / 1.052 GB, free: 1.766 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002522/1.282, allocations: 1.459 MB / 1.054 GB, free: 256 kB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007894/1.283, allocations: 0.693 MB / 1.054 GB, free: 15.45 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004741/1.284, allocations: 259.8 kB / 1.055 GB, free: 15.2 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007729/1.291, allocations: 4.331 MB / 1.059 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.908e-05/1.291, allocations: 0 / 1.059 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/1.292, allocations: 95.98 kB / 1.059 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002654/1.292, allocations: 208.9 kB / 1.059 GB, free: 10.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009013/1.301, allocations: 5.087 MB / 1.064 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02443/1.326, allocations: 15.72 MB / 1.079 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005955/1.331, allocations: 3.012 MB / 1.082 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004278/1.336, allocations: 2.271 MB / 1.085 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009964/1.346, allocations: 9.351 MB / 1.094 GB, free: 3.836 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.982e-05/1.346, allocations: 68.95 kB / 1.094 GB, free: 3.758 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 6.342e-06/1.346, allocations: 0 / 1.094 GB, free: 3.758 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03269/1.379, allocations: 12.97 MB / 1.106 GB, free: 6.5 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.379, allocations: 81.84 kB / 1.107 GB, free: 6.406 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/1.38, allocations: 1.163 MB / 1.108 GB, free: 5.23 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.000244/1.381, allocations: 77.7 kB / 1.108 GB, free: 5.148 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006849/1.381, allocations: 0.8175 MB / 1.109 GB, free: 4.32 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001037/1.382, allocations: 1.055 MB / 1.11 GB, free: 3.25 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/1.384, allocations: 0.5129 MB / 1.11 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002101/1.384, allocations: 305.1 kB / 1.11 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003675/1.387, allocations: 1.707 MB / 1.112 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.217/1.604, allocations: 1.882 MB / 1.114 GB, free: 361.4 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007315/1.612, allocations: 3.665 MB / 1.117 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/1.612, allocations: 4.406 kB / 1.117 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.0115/1.623, allocations: 5.272 MB / 1.123 GB, free: 359.1 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/1.623, allocations: 7.312 kB / 1.123 GB, free: 359.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/1.623, allocations: 15.44 kB / 1.123 GB, free: 359.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/1.626, allocations: 0.8385 MB / 1.123 GB, free: 358.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002693/1.629, allocations: 0.6127 MB / 1.124 GB, free: 358.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/1.645, allocations: 14.68 MB / 1.138 GB, free: 347.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/1.647, allocations: 146 kB / 1.139 GB, free: 347 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003818/1.647, allocations: 182.5 kB / 1.139 GB, free: 347 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.001099/1.648, allocations: 0.5476 MB / 1.139 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005336/1.649, allocations: 214.7 kB / 1.139 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/1.664, allocations: 8.276 MB / 1.147 GB, free: 343.7 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.885e-05/1.664, allocations: 36.38 kB / 1.148 GB, free: 343.7 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.758e-05/1.664, allocations: 9.094 kB / 1.148 GB, free: 343.7 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-05/1.664, allocations: 18.19 kB / 1.148 GB, free: 343.7 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01568/1.68, allocations: 9.311 MB / 1.157 GB, free: 340 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.987e-05/1.68, allocations: 11.47 kB / 1.157 GB, free: 340 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00265/1.683, allocations: 0.6141 MB / 1.157 GB, free: 339.9 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002247/1.685, allocations: 0.8495 MB / 1.158 GB, free: 339.7 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/1.685, allocations: 123.3 kB / 1.158 GB, free: 339.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01446/1.7, allocations: 14.68 MB / 1.173 GB, free: 326.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.7, allocations: 0 / 1.173 GB, free: 326.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/1.714, allocations: 7.73 MB / 1.18 GB, free: 322.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.715, allocations: 0.6716 MB / 1.181 GB, free: 322.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003869/1.715, allocations: 58.78 kB / 1.181 GB, free: 322 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/1.717, allocations: 151.8 kB / 1.181 GB, free: 322 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004394/1.717, allocations: 254.6 kB / 1.181 GB, free: 321.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/1.717, allocations: 176.2 kB / 1.181 GB, free: 321.8 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009834/1.718, allocations: 0.9291 MB / 1.182 GB, free: 321.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.41e-07/1.718, allocations: 0 / 1.182 GB, free: 321.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.006171/1.725, allocations: 3.251 MB / 1.185 GB, free: 320.6 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.0223/1.747, allocations: 12.26 MB / 1.197 GB, free: 310.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0163/1.763, allocations: 6.868 MB / 1.204 GB, free: 303.9 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.763, allocations: 0 / 1.204 GB, free: 303.9 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.005809/1.769, allocations: 3.764 MB / 1.208 GB, free: 300 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003777/1.773, allocations: 0.9293 MB / 1.209 GB, free: 299.2 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04081/1.814, allocations: 29.12 MB / 1.237 GB, free: 268.7 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/1.815, allocations: 1.816 MB / 1.239 GB, free: 266.9 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003057/1.818, allocations: 1.437 MB / 1.24 GB, free: 265.5 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/1.819, allocations: 1.167 MB / 1.241 GB, free: 264.3 MB / 0.7637 GB Notification: Performance of SimCode: time 5.41e-07/1.819, allocations: 0 / 1.241 GB, free: 264.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.196/2.015, allocations: 139.4 MB / 1.378 GB, free: 125.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/17.58, allocations: 14.45 kB / 1.378 GB, free: 125.1 MB / 0.7637 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)