Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.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.0007523/0.0007523, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0007622/0.0007622, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.851/0.851, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.5948/0.5948, allocations: 116 MB / 375.2 MB, free: 4.199 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.Prescribed1and3Flow,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Flow",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 0.5534 GB, free: 13.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.367e-05, allocations: 6.078 kB / 0.5534 GB, free: 13.17 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow): time 0.5115/0.5115, allocations: 360.9 MB / 0.9058 GB, free: 4.215 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.4199/0.9314, allocations: 76.36 MB / 0.9804 GB, free: 15.97 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01032/0.9417, allocations: 0.7268 MB / 0.9811 GB, free: 15.97 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.009558/0.9513, allocations: 4.428 MB / 0.9854 GB, free: 15.89 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0302/0.9815, allocations: 14.39 MB / 0.9995 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.01943/1.001, allocations: 9.153 MB / 1.008 GB, free: 11.86 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.02425/1.025, allocations: 21.7 MB / 1.03 GB, free: 6.305 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005961/1.031, allocations: 2.215 MB / 1.032 GB, free: 5.746 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02479/1.056, allocations: 12.69 MB / 1.044 GB, free: 4.238 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/1.067, allocations: 7.537 MB / 1.052 GB, free: 2.922 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 0.003129/1.07, allocations: 0.8517 MB / 1.052 GB, free: 2.922 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02196/1.092, allocations: 10.91 MB / 1.063 GB, free: 0.9297 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.005841/1.098, allocations: 2.573 MB / 1.066 GB, free: 0 / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.009674/1.108, allocations: 4.195 MB / 1.07 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.03967/1.147, allocations: 20.92 MB / 1.09 GB, free: 1.148 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.147, allocations: 1.406 kB / 1.09 GB, free: 1.148 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.733e-06/1.147, allocations: 0 / 1.09 GB, free: 1.148 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0005501/1.148, allocations: 4 kB / 1.09 GB, free: 1.145 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02264/1.171, allocations: 14.71 MB / 1.104 GB, free: 2.727 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/1.171, allocations: 8.031 kB / 1.104 GB, free: 2.719 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002449/1.173, allocations: 1.421 MB / 1.106 GB, free: 1.289 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003376/1.176, allocations: 1.643 MB / 1.107 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/1.19, allocations: 7.163 MB / 1.114 GB, free: 8.883 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002673/1.192, allocations: 5.721 MB / 1.12 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/1.195, allocations: 1.058 MB / 1.121 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01961/1.214, allocations: 11.1 MB / 1.132 GB, free: 5.707 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001498/1.215, allocations: 7.188 kB / 1.132 GB, free: 5.703 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007582/1.215, allocations: 428 kB / 1.132 GB, free: 5.285 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/1.216, allocations: 267.2 kB / 1.133 GB, free: 5.027 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/1.233, allocations: 11.29 MB / 1.144 GB, free: 9.754 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04303/1.276, allocations: 24.16 MB / 1.167 GB, free: 2.082 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0938/1.37, allocations: 53.35 MB / 1.219 GB, free: 11.57 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009961/1.38, allocations: 5.707 MB / 1.225 GB, free: 5.836 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0436/1.424, allocations: 17.11 MB / 1.242 GB, free: 5.148 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008018/1.432, allocations: 5.617 MB / 1.247 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=1577): time 1.571e-05/1.432, allocations: 0 / 1.247 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of matching and sorting (n=1577): time 0.02371/1.455, allocations: 15.44 MB / 1.262 GB, free: 15.95 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/1.455, allocations: 215.8 kB / 1.262 GB, free: 15.73 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006545/1.462, allocations: 5.902 MB / 1.268 GB, free: 9.867 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.001593/1.464, allocations: 281.7 kB / 1.268 GB, free: 9.586 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002835/1.466, allocations: 4.468 MB / 1.273 GB, free: 5.105 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004887/1.471, allocations: 5.397 MB / 1.278 GB, free: 15.78 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003017/1.474, allocations: 2.091 MB / 1.28 GB, free: 13.68 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 7.468e-05/1.474, allocations: 309 kB / 1.28 GB, free: 13.38 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005838/1.48, allocations: 3.857 MB / 1.284 GB, free: 9.484 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007378/1.488, allocations: 5.529 MB / 1.29 GB, free: 3.496 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01557/1.503, allocations: 9.843 MB / 1.299 GB, free: 9.238 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-05/1.503, allocations: 8 kB / 1.299 GB, free: 9.23 MB / 1.026 GB Notification: Performance of matching and sorting (n=1731) (initialization): time 0.4704/1.974, allocations: 12.38 MB / 1.311 GB, free: 0.5169 GB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 9.832e-05/1.974, allocations: 160.5 kB / 1.311 GB, free: 0.5168 GB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-05/1.974, allocations: 32.83 kB / 1.311 GB, free: 0.5168 GB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007813/1.975, allocations: 455.8 kB / 1.312 GB, free: 0.5167 GB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01776/1.992, allocations: 6.01 MB / 1.318 GB, free: 0.5167 GB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006931/1.999, allocations: 13.24 MB / 1.331 GB, free: 0.5055 GB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006008/2.005, allocations: 1.067 MB / 1.332 GB, free: 0.5055 GB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/2.007, allocations: 0.5072 MB / 1.332 GB, free: 0.5055 GB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (1690): * Single equations (assignments): 1676 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * 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): 3 systems {(1,10), (1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.004679/2.012, allocations: 1.526 MB / 1.334 GB, free: 0.5052 GB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002959/2.015, allocations: 1.241 MB / 1.335 GB, free: 0.5052 GB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02131/2.036, allocations: 13.14 MB / 1.348 GB, free: 0.5 GB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-05/2.036, allocations: 153.7 kB / 1.348 GB, free: 0.5 GB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/2.036, allocations: 7.609 kB / 1.348 GB, free: 0.5 GB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001966/2.036, allocations: 76.69 kB / 1.348 GB, free: 0.5 GB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03699/2.073, allocations: 21.51 MB / 1.369 GB, free: 0.4916 GB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/2.073, allocations: 3.141 kB / 1.369 GB, free: 0.4916 GB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01612/2.089, allocations: 5.803 MB / 1.375 GB, free: 499.6 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000802/2.09, allocations: 414.3 kB / 1.375 GB, free: 499.2 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001747/2.092, allocations: 367.3 kB / 1.375 GB, free: 498.9 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004663/2.097, allocations: 13.1 MB / 1.388 GB, free: 485.2 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.097, allocations: 0 / 1.388 GB, free: 485.2 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02888/2.126, allocations: 17.32 MB / 1.405 GB, free: 469.2 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0056/2.131, allocations: 2.159 MB / 1.407 GB, free: 467.6 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/2.133, allocations: 266 kB / 1.407 GB, free: 467.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004807/2.138, allocations: 319.9 kB / 1.408 GB, free: 467.1 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00173/2.14, allocations: 0.994 MB / 1.409 GB, free: 466.3 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008844/2.141, allocations: 467.7 kB / 1.409 GB, free: 465.8 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.003333/2.144, allocations: 3.704 MB / 1.413 GB, free: 462.2 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.61e-07/2.144, allocations: 0 / 1.413 GB, free: 462.2 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.01173/2.156, allocations: 4.126 MB / 1.417 GB, free: 458.3 MB / 1.026 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 (1577): * Single equations (assignments): 1558 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * 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): 3 systems {(1,10), (1,10), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02812/2.184, allocations: 21.13 MB / 1.437 GB, free: 437.8 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01882/2.203, allocations: 11.42 MB / 1.449 GB, free: 426.2 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/2.203, allocations: 4 kB / 1.449 GB, free: 426.2 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.009927/2.213, allocations: 6.362 MB / 1.455 GB, free: 419.7 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01574/2.228, allocations: 5.043 MB / 1.46 GB, free: 415 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.119/2.347, allocations: 77.95 MB / 1.536 GB, free: 335.2 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004029/2.351, allocations: 4.743 MB / 1.54 GB, free: 330.5 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.01034/2.362, allocations: 2.319 MB / 1.543 GB, free: 328.8 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006202/2.368, allocations: 5.827 MB / 1.548 GB, free: 323 MB / 1.026 GB Notification: Performance of SimCode: time 1.643e-06/2.368, allocations: 3.938 kB / 1.548 GB, free: 323 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2988/2.667, allocations: 315.7 MB / 1.857 GB, free: 8.586 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.09/27.75, allocations: 4.062 kB / 1.857 GB, free: 8.582 MB / 1.026 GB " [Timeout remaining time 632] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Flow_fmu --startTime=0 --stopTime=1.5 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Flow.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Flow.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 30.870822361670434] Failed to read output from testmodel.py, exit status != 0: 28.00439184345305 28.236895016 27.086934773 Calling exit ...