Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008608/0.0008608, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009627/0.0009627, allocations: 210.6 kB / 22.25 MB, free: 3.578 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9656/0.9656, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6866/0.6866, allocations: 150.8 MB / 463.2 MB, free: 6.43 MB / 362.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Cycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Cycle",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 88.23 kB / 0.6393 GB, free: 32.31 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1431, allocations: 88.07 MB / 0.7253 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle): time 0.6502/0.7933, allocations: 342.2 MB / 1.059 GB, free: 1.484 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.07193/0.8652, allocations: 69.85 MB / 1.128 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01791/0.8832, allocations: 0.6692 MB / 1.128 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.01405/0.8972, allocations: 3.994 MB / 1.132 GB, free: 6.719 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 0.03996/0.9372, allocations: 12.75 MB / 1.145 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of NFTyping.typeClassSections: time 0.01866/0.9558, allocations: 8.254 MB / 1.153 GB, free: 1.617 MB / 0.8855 GB Notification: Performance of NFFlatten.flatten: time 1.034/1.99, allocations: 19.19 MB / 1.172 GB, free: 20.25 MB / 0.9012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00647/1.997, allocations: 1.961 MB / 1.173 GB, free: 35.79 MB / 0.9168 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02173/2.018, allocations: 8.924 MB / 1.182 GB, free: 35.79 MB / 0.9168 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0171/2.035, allocations: 7.828 MB / 1.19 GB, free: 34.57 MB / 0.9168 GB Notification: Performance of NFPackage.collectConstants: time 0.00468/2.04, allocations: 0.7805 MB / 1.191 GB, free: 34.57 MB / 0.9168 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02251/2.063, allocations: 9.873 MB / 1.2 GB, free: 34.57 MB / 0.9168 GB Notification: Performance of NFScalarize.scalarize: time 0.00612/2.069, allocations: 2.251 MB / 1.202 GB, free: 34.07 MB / 0.9168 GB Notification: Performance of NFVerifyModel.verify: time 0.01191/2.081, allocations: 4.771 MB / 1.207 GB, free: 32.59 MB / 0.9168 GB Notification: Performance of NFConvertDAE.convert: time 0.03866/2.119, allocations: 19.69 MB / 1.226 GB, free: 29.61 MB / 0.9168 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/2.119, allocations: 7.844 kB / 1.226 GB, free: 29.61 MB / 0.9168 GB Notification: Performance of FrontEnd: time 2.545e-06/2.119, allocations: 0 / 1.226 GB, free: 29.61 MB / 0.9168 GB Notification: Performance of Transformations before backend: time 0.0007226/2.12, allocations: 1.125 kB / 1.226 GB, free: 29.61 MB / 0.9168 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2520 * Number of variables: 2520 Notification: Performance of Generate backend data structure: time 0.02677/2.147, allocations: 13.63 MB / 1.24 GB, free: 23.85 MB / 0.9168 GB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/2.147, allocations: 10.59 kB / 1.24 GB, free: 23.85 MB / 0.9168 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001409/2.148, allocations: 1.298 MB / 1.241 GB, free: 23.75 MB / 0.9168 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002785/2.151, allocations: 1.503 MB / 1.242 GB, free: 22.98 MB / 0.9168 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/2.164, allocations: 6.572 MB / 1.249 GB, free: 21.21 MB / 0.9168 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001885/2.166, allocations: 5.127 MB / 1.254 GB, free: 16 MB / 0.9168 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/2.167, allocations: 0.9713 MB / 1.255 GB, free: 15.99 MB / 0.9168 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/2.182, allocations: 10.16 MB / 1.265 GB, free: 15.37 MB / 0.9168 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/2.182, allocations: 5.594 kB / 1.265 GB, free: 15.37 MB / 0.9168 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005855/2.183, allocations: 397.9 kB / 1.265 GB, free: 15.37 MB / 0.9168 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/2.183, allocations: 240.7 kB / 1.265 GB, free: 15.36 MB / 0.9168 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01277/2.196, allocations: 10.32 MB / 1.275 GB, free: 15.29 MB / 0.9168 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0502/2.246, allocations: 22.1 MB / 1.297 GB, free: 10.39 MB / 0.9168 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08801/2.334, allocations: 45.7 MB / 1.342 GB, free: 15.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01043/2.344, allocations: 5.241 MB / 1.347 GB, free: 12.22 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04338/2.388, allocations: 15.68 MB / 1.362 GB, free: 13 MB / 0.9637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008904/2.396, allocations: 5.17 MB / 1.367 GB, free: 7.805 MB / 0.9637 GB Notification: Performance of pre-optimization done (n=1447): time 1.72e-05/2.396, allocations: 0 / 1.367 GB, free: 7.805 MB / 0.9637 GB Notification: Performance of matching and sorting (n=1447): time 0.02815/2.425, allocations: 14.45 MB / 1.381 GB, free: 9.359 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/2.425, allocations: 203.8 kB / 1.381 GB, free: 9.148 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007232/2.432, allocations: 5.414 MB / 1.387 GB, free: 3.758 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.00205/2.434, allocations: 257.7 kB / 1.387 GB, free: 3.5 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.003148/2.437, allocations: 4.091 MB / 1.391 GB, free: 15.4 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.006042/2.443, allocations: 5.02 MB / 1.396 GB, free: 10.45 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003024/2.446, allocations: 1.924 MB / 1.398 GB, free: 8.508 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 9.827e-05/2.446, allocations: 302.4 kB / 1.398 GB, free: 8.211 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005972/2.452, allocations: 3.553 MB / 1.401 GB, free: 4.621 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007447/2.46, allocations: 5.09 MB / 1.406 GB, free: 15.11 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01644/2.476, allocations: 9.041 MB / 1.415 GB, free: 5.738 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.361e-05/2.476, allocations: 8 kB / 1.415 GB, free: 5.73 MB / 1.011 GB Notification: Performance of matching and sorting (n=1589) (initialization): time 0.03151/2.508, allocations: 11.51 MB / 1.426 GB, free: 10.31 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/2.508, allocations: 156.5 kB / 1.427 GB, free: 10.13 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.595e-05/2.508, allocations: 28 kB / 1.427 GB, free: 10.1 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/2.509, allocations: 0.5206 MB / 1.427 GB, free: 9.555 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01683/2.526, allocations: 5.404 MB / 1.432 GB, free: 4.305 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/2.536, allocations: 15.2 MB / 1.447 GB, free: 4.133 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007156/2.543, allocations: 0.9887 MB / 1.448 GB, free: 3.137 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/2.546, allocations: 471.8 kB / 1.449 GB, free: 2.676 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 132 * Number of states: 0 () * Number of discrete variables: 25 (massFlowRate1.count,$PRE.massFlowRate1.count,massFlowRate1.T_start,$PRE.massFlowRate1.T_start,isentropicEfficiency.count,$PRE.isentropicEfficiency.count,isentropicEfficiency.T_start,$PRE.isentropicEfficiency.T_start,pressureRatio.count,$PRE.pressureRatio.count,pressureRatio.T_start,$PRE.pressureRatio.T_start,inletTemperature.count,$PRE.inletTemperature.count,inletTemperature.T_start,$PRE.inletTemperature.T_start,inletPressure.count,$PRE.inletPressure.count,inletPressure.T_start,$PRE.inletPressure.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1537): * Single equations (assignments): 1522 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,11), (1,10), (1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.005473/2.551, allocations: 1.425 MB / 1.45 GB, free: 1.395 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003597/2.555, allocations: 1.141 MB / 1.451 GB, free: 252 kB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/2.582, allocations: 12.16 MB / 1.463 GB, free: 4.316 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/2.582, allocations: 143.9 kB / 1.463 GB, free: 4.176 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.555e-05/2.582, allocations: 4 kB / 1.463 GB, free: 4.172 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004137/2.582, allocations: 67.73 kB / 1.463 GB, free: 4.105 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04745/2.63, allocations: 19.86 MB / 1.483 GB, free: 0.4922 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.457e-05/2.63, allocations: 0 / 1.483 GB, free: 0.4922 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01749/2.647, allocations: 5.213 MB / 1.488 GB, free: 11.41 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/2.648, allocations: 499.8 kB / 1.488 GB, free: 10.9 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001993/2.65, allocations: 343.8 kB / 1.489 GB, free: 10.56 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008976/2.659, allocations: 15.06 MB / 1.503 GB, free: 10.49 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/2.659, allocations: 0 / 1.503 GB, free: 10.49 MB / 1.104 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03432/2.693, allocations: 16.01 MB / 1.519 GB, free: 10.44 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006853/2.7, allocations: 1.979 MB / 1.521 GB, free: 8.453 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002222/2.703, allocations: 248 kB / 1.521 GB, free: 8.211 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005443/2.708, allocations: 299.9 kB / 1.521 GB, free: 7.918 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001684/2.71, allocations: 0.9099 MB / 1.522 GB, free: 7.008 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001048/2.711, allocations: 423.8 kB / 1.523 GB, free: 6.594 MB / 1.12 GB Notification: Performance of sorting global known variables: time 0.005728/2.716, allocations: 3.405 MB / 1.526 GB, free: 3.211 MB / 1.12 GB Notification: Performance of sort global known variables: time 5.51e-07/2.716, allocations: 0 / 1.526 GB, free: 3.211 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.01516/2.732, allocations: 3.783 MB / 1.53 GB, free: 15.42 MB / 1.136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (massFlowRate.y) * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inletPressure.T_start,inletPressure.count,inletTemperature.T_start,inletTemperature.count,pressureRatio.T_start,pressureRatio.count,isentropicEfficiency.T_start,isentropicEfficiency.count,massFlowRate1.T_start,massFlowRate1.count) * Number of discrete states: 5 (massFlowRate1.count,isentropicEfficiency.count,pressureRatio.count,inletTemperature.count,inletPressure.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1433): * Single equations (assignments): 1413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,10), (1,10), (1,10), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03592/2.768, allocations: 19.5 MB / 1.549 GB, free: 12.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.02153/2.789, allocations: 10.78 MB / 1.559 GB, free: 1.516 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/2.789, allocations: 96 / 1.559 GB, free: 1.516 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01263/2.802, allocations: 6.104 MB / 1.565 GB, free: 11.57 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0193/2.821, allocations: 4.615 MB / 1.57 GB, free: 7.129 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5345/3.355, allocations: 70.94 MB / 1.639 GB, free: 0.562 GB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00412/3.36, allocations: 4.356 MB / 1.643 GB, free: 0.5614 GB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.009626/3.369, allocations: 2.132 MB / 1.645 GB, free: 0.5613 GB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006665/3.376, allocations: 5.258 MB / 1.65 GB, free: 0.5573 GB / 1.182 GB Notification: Performance of SimCode: time 2.906e-06/3.376, allocations: 0 / 1.65 GB, free: 0.5573 GB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/3.703, allocations: 291.2 MB / 1.935 GB, free: 299 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 22/25.7, allocations: 7.984 kB / 1.935 GB, free: 299 MB / 1.182 GB " [Timeout remaining time 634] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle_res.csv --start-time 0 --stop-time 1.5 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Cycle.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 28.927961328066885] Failed to read output from testmodel.py, exit status != 0: 25.947217278182507 25.955318306 23.834019454 Calling exit ...