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.006122/0.006122, allocations: 98.56 kB / 15.73 MB, free: 6.004 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.001504/0.001504, allocations: 195.3 kB / 16.67 MB, free: 5.934 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6364/0.6364, allocations: 91.18 MB / 381.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 75.88 kB / 0.5164 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1273, allocations: 67.69 MB / 0.5825 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.937/1.064, allocations: 395.5 MB / 0.9687 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.07464/1.139, allocations: 72.74 MB / 1.04 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00214/1.141, allocations: 64 kB / 1.04 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007766/1.149, allocations: 2.469 MB / 1.042 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.03365/1.183, allocations: 9.584 MB / 1.052 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.02597/1.209, allocations: 7.41 MB / 1.059 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007518/1.216, allocations: 4.257 MB / 1.063 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/1.219, allocations: 1.123 MB / 1.064 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005332/1.224, allocations: 2.25 MB / 1.066 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003966/1.228, allocations: 1.969 MB / 1.068 GB, free: 9.918 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001167/1.229, allocations: 304 kB / 1.068 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05517/1.285, allocations: 25.4 MB / 1.093 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001639/1.286, allocations: 0.9776 MB / 1.094 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002651/1.289, allocations: 1.594 MB / 1.096 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.03196/1.321, allocations: 14.11 MB / 1.11 GB, free: 15.44 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.321, allocations: 0 / 1.11 GB, free: 15.44 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.623e-06/1.321, allocations: 0 / 1.11 GB, free: 15.44 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001203/1.321, allocations: 0 / 1.11 GB, free: 15.44 MB / 0.795 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.01456/1.336, allocations: 5.852 MB / 1.115 GB, free: 9.5 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/1.336, allocations: 8.031 kB / 1.115 GB, free: 9.492 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006294/1.336, allocations: 370.4 kB / 1.116 GB, free: 9.121 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008466/1.337, allocations: 334 kB / 1.116 GB, free: 8.793 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002896/1.34, allocations: 1.542 MB / 1.117 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006993/1.341, allocations: 0.693 MB / 1.118 GB, free: 6.395 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005441/1.341, allocations: 259.9 kB / 1.118 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007928/1.349, allocations: 4.351 MB / 1.123 GB, free: 1.711 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.981e-05/1.349, allocations: 8 kB / 1.123 GB, free: 1.703 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/1.35, allocations: 95.98 kB / 1.123 GB, free: 1.609 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002696/1.35, allocations: 204.9 kB / 1.123 GB, free: 1.406 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008944/1.359, allocations: 5.091 MB / 1.128 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02344/1.382, allocations: 15.64 MB / 1.143 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005903/1.388, allocations: 3.014 MB / 1.146 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004243/1.393, allocations: 2.274 MB / 1.148 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2651/1.658, allocations: 9.338 MB / 1.157 GB, free: 360.4 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.49e-05/1.658, allocations: 68.19 kB / 1.158 GB, free: 360.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 1.222e-05/1.658, allocations: 0 / 1.158 GB, free: 360.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.02977/1.688, allocations: 12.99 MB / 1.17 GB, free: 356.1 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/1.688, allocations: 214.9 kB / 1.17 GB, free: 355.9 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/1.689, allocations: 1.14 MB / 1.172 GB, free: 355.5 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0003237/1.69, allocations: 81.42 kB / 1.172 GB, free: 355.4 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004375/1.69, allocations: 0.8173 MB / 1.172 GB, free: 354.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008141/1.691, allocations: 1.108 MB / 1.173 GB, free: 354.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/1.692, allocations: 0.5095 MB / 1.174 GB, free: 353.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 3.418e-05/1.692, allocations: 306.5 kB / 1.174 GB, free: 353.6 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003566/1.696, allocations: 1.705 MB / 1.176 GB, free: 353 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003774/1.699, allocations: 1.922 MB / 1.178 GB, free: 352.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007008/1.706, allocations: 3.668 MB / 1.181 GB, free: 350.6 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/1.706, allocations: 0 / 1.181 GB, free: 350.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01236/1.719, allocations: 5.294 MB / 1.187 GB, free: 348.7 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/1.719, allocations: 6 kB / 1.187 GB, free: 348.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.216e-05/1.719, allocations: 8.594 kB / 1.187 GB, free: 348.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/1.722, allocations: 0.831 MB / 1.187 GB, free: 348.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/1.725, allocations: 0.6216 MB / 1.188 GB, free: 348.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01609/1.741, allocations: 14.68 MB / 1.202 GB, free: 336.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/1.743, allocations: 144.2 kB / 1.202 GB, free: 336.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006276/1.743, allocations: 188.2 kB / 1.203 GB, free: 336.5 MB / 0.8262 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.001398/1.745, allocations: 0.5404 MB / 1.203 GB, free: 336.1 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/1.746, allocations: 228.8 kB / 1.203 GB, free: 336 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/1.761, allocations: 8.263 MB / 1.211 GB, free: 333 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.384e-05/1.761, allocations: 31.41 kB / 1.211 GB, free: 333 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.069e-05/1.761, allocations: 7.844 kB / 1.212 GB, free: 333 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-05/1.761, allocations: 17.95 kB / 1.212 GB, free: 333 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01656/1.778, allocations: 9.298 MB / 1.221 GB, free: 328.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-05/1.778, allocations: 11.8 kB / 1.221 GB, free: 328.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/1.78, allocations: 0.625 MB / 1.221 GB, free: 328.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/1.783, allocations: 0.8446 MB / 1.222 GB, free: 327.9 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000325/1.783, allocations: 123.2 kB / 1.222 GB, free: 327.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/1.798, allocations: 14.67 MB / 1.236 GB, free: 315 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.798, allocations: 6.203 kB / 1.236 GB, free: 315 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01492/1.813, allocations: 7.736 MB / 1.244 GB, free: 310.8 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/1.814, allocations: 0.6796 MB / 1.245 GB, free: 310.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004952/1.815, allocations: 63.94 kB / 1.245 GB, free: 310.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/1.816, allocations: 150.2 kB / 1.245 GB, free: 309.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004357/1.817, allocations: 254.1 kB / 1.245 GB, free: 309.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003298/1.817, allocations: 175.9 kB / 1.245 GB, free: 309.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001005/1.818, allocations: 0.9165 MB / 1.246 GB, free: 308.6 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/1.818, allocations: 2.188 kB / 1.246 GB, free: 308.6 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.006954/1.825, allocations: 3.307 MB / 1.249 GB, free: 305.9 MB / 0.8262 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.02366/1.849, allocations: 12.34 MB / 1.262 GB, free: 294.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01012/1.859, allocations: 5.719 MB / 1.267 GB, free: 288.2 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.859, allocations: 0 / 1.267 GB, free: 288.2 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.006551/1.866, allocations: 3.769 MB / 1.271 GB, free: 284.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004525/1.87, allocations: 0.914 MB / 1.272 GB, free: 283.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04591/1.916, allocations: 26.68 MB / 1.298 GB, free: 256.5 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/1.917, allocations: 1.808 MB / 1.299 GB, free: 254.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003461/1.921, allocations: 1.436 MB / 1.301 GB, free: 253.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001573/1.923, allocations: 1.155 MB / 1.302 GB, free: 252.1 MB / 0.8262 GB Notification: Performance of SimCode: time 7.92e-07/1.923, allocations: 0 / 1.302 GB, free: 252.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1629/2.085, allocations: 140.3 MB / 1.439 GB, free: 112 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.58/20.67, allocations: 7.984 kB / 1.439 GB, free: 111.9 MB / 0.8262 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)