Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.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.0008798/0.0008798, allocations: 101.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.001112/0.001112, allocations: 213.2 kB / 22.25 MB, free: 3.586 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 1.023/1.023, allocations: 230.6 MB / 256 MB, free: 9.633 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.7892/0.7892, allocations: 150.8 MB / 463.2 MB, free: 6.496 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.Prescribed2,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 86.53 kB / 0.6393 GB, free: 32.5 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1591, allocations: 88.08 MB / 0.7253 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2): time 0.6537/0.8129, allocations: 308.3 MB / 1.026 GB, free: 3.457 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.06414/0.877, allocations: 62.66 MB / 1.088 GB, free: 4.609 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01275/0.8898, allocations: 0.6151 MB / 1.088 GB, free: 3.988 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.902, allocations: 3.781 MB / 1.092 GB, free: 184 kB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.03379/0.9358, allocations: 11.48 MB / 1.103 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.01843/0.9542, allocations: 7.907 MB / 1.111 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.02504/0.9792, allocations: 18 MB / 1.128 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004137/0.9834, allocations: 1.834 MB / 1.13 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01463/0.998, allocations: 8.446 MB / 1.138 GB, free: 228 kB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01303/1.011, allocations: 7.393 MB / 1.146 GB, free: 8.797 MB / 0.8855 GB Notification: Performance of NFPackage.collectConstants: time 0.004015/1.015, allocations: 0.7148 MB / 1.146 GB, free: 8.082 MB / 0.8855 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01765/1.033, allocations: 8.237 MB / 1.154 GB, free: 15.83 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 0.00312/1.036, allocations: 2.11 MB / 1.156 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 0.00859/1.044, allocations: 4.455 MB / 1.161 GB, free: 9.23 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 1.037/2.081, allocations: 18.06 MB / 1.178 GB, free: 54.73 MB / 0.9012 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/2.081, allocations: 3.109 kB / 1.178 GB, free: 54.73 MB / 0.9012 GB Notification: Performance of FrontEnd: time 2.364e-06/2.081, allocations: 0 / 1.178 GB, free: 54.73 MB / 0.9012 GB Notification: Performance of Transformations before backend: time 0.0004439/2.082, allocations: 0.7656 kB / 1.178 GB, free: 54.73 MB / 0.9012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2381 * Number of variables: 2381 Notification: Performance of Generate backend data structure: time 0.02541/2.107, allocations: 12.74 MB / 1.191 GB, free: 49.37 MB / 0.9012 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/2.107, allocations: 9.781 kB / 1.191 GB, free: 49.37 MB / 0.9012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001285/2.108, allocations: 1.238 MB / 1.192 GB, free: 49.27 MB / 0.9012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/2.112, allocations: 1.42 MB / 1.194 GB, free: 48.55 MB / 0.9012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/2.123, allocations: 6.104 MB / 1.199 GB, free: 46.91 MB / 0.9012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001879/2.125, allocations: 6.507 MB / 1.206 GB, free: 40.01 MB / 0.9012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/2.126, allocations: 0.8819 MB / 1.207 GB, free: 40.01 MB / 0.9012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/2.14, allocations: 9.682 MB / 1.216 GB, free: 39.16 MB / 0.9012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/2.14, allocations: 14.03 kB / 1.216 GB, free: 39.16 MB / 0.9012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005364/2.14, allocations: 384.3 kB / 1.217 GB, free: 39.16 MB / 0.9012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/2.14, allocations: 227 kB / 1.217 GB, free: 39.16 MB / 0.9012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01247/2.153, allocations: 9.616 MB / 1.226 GB, free: 39.08 MB / 0.9012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03231/2.185, allocations: 24.16 MB / 1.25 GB, free: 30.86 MB / 0.9012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06508/2.25, allocations: 41.38 MB / 1.29 GB, free: 25.35 MB / 0.9012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009637/2.26, allocations: 4.826 MB / 1.295 GB, free: 25.09 MB / 0.9012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02664/2.286, allocations: 14.07 MB / 1.309 GB, free: 18.71 MB / 0.9012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005822/2.292, allocations: 4.615 MB / 1.313 GB, free: 16.48 MB / 0.9012 GB Notification: Performance of pre-optimization done (n=1279): time 1.567e-05/2.292, allocations: 0 / 1.313 GB, free: 16.48 MB / 0.9012 GB Notification: Performance of matching and sorting (n=1279): time 0.01771/2.31, allocations: 12.89 MB / 1.326 GB, free: 4.355 MB / 0.9012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/2.31, allocations: 191.1 kB / 1.326 GB, free: 4.156 MB / 0.9012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007124/2.317, allocations: 5.247 MB / 1.331 GB, free: 14.92 MB / 0.9168 GB Notification: Performance of collectPreVariables (initialization): time 0.0007274/2.318, allocations: 233.7 kB / 1.331 GB, free: 14.68 MB / 0.9168 GB Notification: Performance of collectInitialEqns (initialization): time 0.002662/2.321, allocations: 4.053 MB / 1.335 GB, free: 10.62 MB / 0.9168 GB Notification: Performance of collectInitialBindings (initialization): time 0.00381/2.324, allocations: 4.42 MB / 1.339 GB, free: 6.262 MB / 0.9168 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/2.326, allocations: 1.823 MB / 1.341 GB, free: 4.426 MB / 0.9168 GB Notification: Performance of setup shared object (initialization): time 0.0001001/2.326, allocations: 309.1 kB / 1.342 GB, free: 4.121 MB / 0.9168 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00483/2.331, allocations: 3.264 MB / 1.345 GB, free: 0.8242 MB / 0.9168 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006194/2.337, allocations: 5.054 MB / 1.35 GB, free: 11.19 MB / 0.9324 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/2.348, allocations: 8.67 MB / 1.358 GB, free: 2.035 MB / 0.9324 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.958e-05/2.348, allocations: 12 kB / 1.358 GB, free: 2.023 MB / 0.9324 GB Notification: Performance of matching and sorting (n=1479) (initialization): time 0.01629/2.364, allocations: 10.76 MB / 1.369 GB, free: 7.398 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-05/2.364, allocations: 164.5 kB / 1.369 GB, free: 7.207 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.213e-05/2.364, allocations: 44 kB / 1.369 GB, free: 7.164 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000749/2.365, allocations: 464.1 kB / 1.369 GB, free: 6.691 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02348/2.389, allocations: 5.912 MB / 1.375 GB, free: 0.9297 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008659/2.397, allocations: 13.26 MB / 1.388 GB, free: 2.816 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009133/2.407, allocations: 0.9811 MB / 1.389 GB, free: 1.828 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001473/2.408, allocations: 467.8 kB / 1.389 GB, free: 1.371 MB / 0.9637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 190 * 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 (1438): * Single equations (assignments): 1424 * 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.004639/2.413, allocations: 1.344 MB / 1.391 GB, free: 168 kB / 0.9637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003661/2.416, allocations: 1.055 MB / 1.392 GB, free: 15.1 MB / 0.9793 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01671/2.433, allocations: 10.85 MB / 1.402 GB, free: 4.391 MB / 0.9793 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.578e-05/2.433, allocations: 124 kB / 1.402 GB, free: 4.27 MB / 0.9793 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/2.433, allocations: 3.938 kB / 1.403 GB, free: 4.266 MB / 0.9793 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-05/2.433, allocations: 63.75 kB / 1.403 GB, free: 4.203 MB / 0.9793 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/2.46, allocations: 17.97 MB / 1.42 GB, free: 2.445 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/2.46, allocations: 0 / 1.42 GB, free: 2.445 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01711/2.477, allocations: 5.584 MB / 1.426 GB, free: 12.98 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009035/2.478, allocations: 400.8 kB / 1.426 GB, free: 12.57 MB / 1.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001432/2.479, allocations: 287.8 kB / 1.426 GB, free: 12.29 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007202/2.486, allocations: 13.1 MB / 1.439 GB, free: 14.29 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/2.486, allocations: 1.203 kB / 1.439 GB, free: 14.29 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02249/2.509, allocations: 14.35 MB / 1.453 GB, free: 15.84 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004216/2.513, allocations: 1.755 MB / 1.455 GB, free: 14.09 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001075/2.514, allocations: 208 kB / 1.455 GB, free: 13.88 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/2.517, allocations: 287.9 kB / 1.455 GB, free: 13.6 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008218/2.517, allocations: 0.7958 MB / 1.456 GB, free: 12.8 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004814/2.518, allocations: 375.8 kB / 1.456 GB, free: 12.44 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.003957/2.522, allocations: 3.263 MB / 1.46 GB, free: 9.188 MB / 1.042 GB Notification: Performance of sort global known variables: time 2.7e-07/2.522, allocations: 0 / 1.46 GB, free: 9.188 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.007734/2.53, allocations: 3.385 MB / 1.463 GB, free: 5.797 MB / 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 (1275): * Single equations (assignments): 1256 * 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.02189/2.551, allocations: 17.13 MB / 1.48 GB, free: 4.922 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.01508/2.567, allocations: 9.883 MB / 1.489 GB, free: 11.05 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/2.567, allocations: 0 / 1.489 GB, free: 11.05 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.006626/2.573, allocations: 5.435 MB / 1.495 GB, free: 5.75 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01284/2.586, allocations: 4.199 MB / 1.499 GB, free: 1.707 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09881/2.685, allocations: 67.46 MB / 1.565 GB, free: 12.54 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/2.688, allocations: 4.052 MB / 1.568 GB, free: 8.449 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.008389/2.696, allocations: 1.911 MB / 1.57 GB, free: 6.742 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004505/2.701, allocations: 4.871 MB / 1.575 GB, free: 1.871 MB / 1.151 GB Notification: Performance of SimCode: time 2.395e-06/2.701, allocations: 0 / 1.575 GB, free: 1.871 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6532/3.354, allocations: 256.4 MB / 1.825 GB, free: 359.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.84/24.2, allocations: 8 kB / 1.825 GB, free: 359.9 MB / 1.151 GB " [Timeout remaining time 636] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed2_fmu --startTime=0 --stopTime=1.5 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed2.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 27.741864720359445] Failed to read output from testmodel.py, exit status != 0: 24.422273055650294 24.429170732 22.34549459 Calling exit ...