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.001264/0.001264, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.00151/0.00151, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9643/0.9643, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.6734/0.6734, allocations: 116 MB / 375.2 MB, free: 4.188 MB / 346.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 1.893e-06/1.893e-06, allocations: 0 / 0.5534 GB, free: 13.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.814e-05, allocations: 2.281 kB / 0.5534 GB, free: 13.18 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle): time 0.5735/0.5735, allocations: 340 MB / 0.8855 GB, free: 9.113 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.5081/1.082, allocations: 69.88 MB / 0.9537 GB, free: 15.99 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01306/1.095, allocations: 0.6675 MB / 0.9544 GB, free: 15.99 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.01294/1.108, allocations: 4.053 MB / 0.9583 GB, free: 15.99 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.03902/1.147, allocations: 13.18 MB / 0.9712 GB, free: 13.53 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0225/1.169, allocations: 8.379 MB / 0.9794 GB, free: 12.88 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0279/1.197, allocations: 19.86 MB / 0.9988 GB, free: 7.793 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005653/1.203, allocations: 1.968 MB / 1.001 GB, free: 7.32 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02858/1.231, allocations: 11.61 MB / 1.012 GB, free: 5.961 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01438/1.246, allocations: 6.898 MB / 1.019 GB, free: 5.172 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 0.004028/1.25, allocations: 0.7827 MB / 1.02 GB, free: 5.172 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02068/1.27, allocations: 9.978 MB / 1.029 GB, free: 4.438 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.004475/1.275, allocations: 2.297 MB / 1.032 GB, free: 3.785 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.01286/1.288, allocations: 3.838 MB / 1.035 GB, free: 3.148 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0378/1.325, allocations: 19.37 MB / 1.054 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/1.325, allocations: 1.406 kB / 1.054 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.725e-06/1.325, allocations: 2.969 kB / 1.054 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0009607/1.326, allocations: 3.938 kB / 1.054 GB, free: 14.54 MB / 0.8073 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.03014/1.357, allocations: 13.5 MB / 1.067 GB, free: 7.266 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.357, allocations: 8.312 kB / 1.067 GB, free: 7.266 MB / 0.8073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002299/1.359, allocations: 1.29 MB / 1.069 GB, free: 6.938 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003995/1.363, allocations: 1.505 MB / 1.07 GB, free: 5.867 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01507/1.378, allocations: 6.57 MB / 1.077 GB, free: 0.6445 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002546/1.381, allocations: 5.126 MB / 1.082 GB, free: 10.84 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002968/1.384, allocations: 0.973 MB / 1.082 GB, free: 10.19 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/1.403, allocations: 10.16 MB / 1.092 GB, free: 2.293 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001699/1.403, allocations: 4.688 kB / 1.092 GB, free: 2.293 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/1.405, allocations: 404 kB / 1.093 GB, free: 1.898 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001593/1.405, allocations: 236 kB / 1.093 GB, free: 1.668 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01785/1.423, allocations: 10.33 MB / 1.103 GB, free: 7.355 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04408/1.467, allocations: 22.09 MB / 1.125 GB, free: 1.73 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07575/1.543, allocations: 45.28 MB / 1.169 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01021/1.553, allocations: 5.23 MB / 1.174 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04349/1.596, allocations: 15.69 MB / 1.189 GB, free: 14.93 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01034/1.607, allocations: 5.163 MB / 1.194 GB, free: 9.75 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=1447): time 1.648e-05/1.607, allocations: 0 / 1.194 GB, free: 9.75 MB / 0.9323 GB Notification: Performance of matching and sorting (n=1447): time 0.03235/1.639, allocations: 14.45 MB / 1.209 GB, free: 11.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/1.639, allocations: 206.7 kB / 1.209 GB, free: 11.09 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006321/1.646, allocations: 5.417 MB / 1.214 GB, free: 5.691 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001728/1.647, allocations: 256.1 kB / 1.214 GB, free: 5.438 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002678/1.65, allocations: 4.091 MB / 1.218 GB, free: 1.34 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005963/1.656, allocations: 4.944 MB / 1.223 GB, free: 12.46 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002708/1.659, allocations: 1.92 MB / 1.225 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.274e-05/1.659, allocations: 301.1 kB / 1.225 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005749/1.664, allocations: 3.554 MB / 1.229 GB, free: 6.637 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007976/1.672, allocations: 5.09 MB / 1.234 GB, free: 1.121 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01578/1.688, allocations: 9.04 MB / 1.242 GB, free: 7.758 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-05/1.688, allocations: 15.94 kB / 1.243 GB, free: 7.742 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1589) (initialization): time 0.02406/1.712, allocations: 11.5 MB / 1.254 GB, free: 12.33 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.712, allocations: 156.5 kB / 1.254 GB, free: 12.14 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-05/1.712, allocations: 28 kB / 1.254 GB, free: 12.12 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009883/1.713, allocations: 0.5284 MB / 1.254 GB, free: 11.56 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01696/1.73, allocations: 5.402 MB / 1.26 GB, free: 6.316 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009771/1.74, allocations: 15.19 MB / 1.275 GB, free: 6.148 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007557/1.748, allocations: 0.9809 MB / 1.275 GB, free: 5.16 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002242/1.75, allocations: 471.8 kB / 1.276 GB, free: 4.699 MB / 1.01 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.005485/1.755, allocations: 1.415 MB / 1.277 GB, free: 3.426 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003753/1.759, allocations: 1.137 MB / 1.278 GB, free: 2.281 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02256/1.782, allocations: 12.17 MB / 1.29 GB, free: 6.34 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.269e-05/1.782, allocations: 136 kB / 1.29 GB, free: 6.207 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.859e-05/1.782, allocations: 4.094 kB / 1.29 GB, free: 6.203 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002307/1.782, allocations: 71.67 kB / 1.291 GB, free: 6.133 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/1.827, allocations: 19.85 MB / 1.31 GB, free: 2.531 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.694e-05/1.827, allocations: 11.98 kB / 1.31 GB, free: 2.52 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2968/2.124, allocations: 5.197 MB / 1.315 GB, free: 0.5297 GB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/2.125, allocations: 0.4883 MB / 1.315 GB, free: 0.5297 GB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002044/2.127, allocations: 343.6 kB / 1.316 GB, free: 0.5297 GB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006876/2.134, allocations: 15.05 MB / 1.33 GB, free: 0.5173 GB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/2.134, allocations: 0 / 1.33 GB, free: 0.5173 GB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03578/2.17, allocations: 16.01 MB / 1.346 GB, free: 0.5132 GB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005995/2.176, allocations: 1.982 MB / 1.348 GB, free: 0.5126 GB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003195/2.179, allocations: 252.1 kB / 1.348 GB, free: 0.5124 GB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005178/2.184, allocations: 292.4 kB / 1.349 GB, free: 0.5122 GB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002328/2.186, allocations: 0.9133 MB / 1.349 GB, free: 0.5121 GB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001331/2.188, allocations: 420.9 kB / 1.35 GB, free: 0.512 GB / 1.042 GB Notification: Performance of sorting global known variables: time 0.004324/2.192, allocations: 3.406 MB / 1.353 GB, free: 0.5109 GB / 1.042 GB Notification: Performance of sort global known variables: time 5e-08/2.192, allocations: 0 / 1.353 GB, free: 0.5109 GB / 1.042 GB Notification: Performance of remove unused functions: time 0.01105/2.203, allocations: 3.799 MB / 1.357 GB, free: 0.5101 GB / 1.042 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.03384/2.237, allocations: 19.55 MB / 1.376 GB, free: 0.5022 GB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.01866/2.256, allocations: 10.78 MB / 1.387 GB, free: 0.4948 GB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/2.256, allocations: 3.938 kB / 1.387 GB, free: 0.4948 GB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.009879/2.266, allocations: 6.096 MB / 1.392 GB, free: 0.4893 GB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01629/2.282, allocations: 4.621 MB / 1.397 GB, free: 497.7 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1139/2.396, allocations: 71.48 MB / 1.467 GB, free: 428.1 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003937/2.4, allocations: 4.353 MB / 1.471 GB, free: 423.8 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.009332/2.409, allocations: 2.118 MB / 1.473 GB, free: 422.2 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005875/2.415, allocations: 5.261 MB / 1.478 GB, free: 417 MB / 1.042 GB Notification: Performance of SimCode: time 1.132e-06/2.415, allocations: 0 / 1.478 GB, free: 417 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2897/2.705, allocations: 291 MB / 1.762 GB, free: 128.1 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.76/28.47, allocations: 12.03 kB / 1.762 GB, free: 128.1 MB / 1.042 GB " [Timeout remaining time 631] (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: 31.54336998332292] Failed to read output from testmodel.py, exit status != 0: 28.71357676014304 28.720411122 27.392549009 Calling exit ...