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.0008046/0.0008046, 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.0007718/0.0007718, 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.8567/0.8567, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.6219/0.6219, 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.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 1.373e-06/1.373e-06, allocations: 0 / 0.5534 GB, free: 13.17 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.246e-05/1.384e-05, allocations: 6.219 kB / 0.5534 GB, free: 13.16 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed2): time 0.4624/0.4624, allocations: 306.5 MB / 0.8528 GB, free: 10.75 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.05595/0.5184, allocations: 62.7 MB / 0.914 GB, free: 11.85 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009188/0.5276, allocations: 0.6151 MB / 0.9146 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.007779/0.5353, allocations: 3.837 MB / 0.9183 GB, free: 7.363 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.02456/0.5599, allocations: 11.85 MB / 0.9299 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.01486/0.5748, allocations: 8.022 MB / 0.9377 GB, free: 3.395 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.3704/0.9452, allocations: 18.62 MB / 0.9559 GB, free: 16.84 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003401/0.9486, allocations: 1.852 MB / 0.9577 GB, free: 32.36 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01454/0.9631, allocations: 10.96 MB / 0.9684 GB, free: 31.11 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007355/0.9705, allocations: 6.529 MB / 0.9748 GB, free: 30.36 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 0.0011/0.9716, allocations: 0.7166 MB / 0.9755 GB, free: 30.36 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01059/0.9822, allocations: 8.328 MB / 0.9836 GB, free: 29.96 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.000885/0.9831, allocations: 2.148 MB / 0.9857 GB, free: 29.34 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.9859, allocations: 3.584 MB / 0.9892 GB, free: 28.75 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.01965/1.006, allocations: 17.76 MB / 1.007 GB, free: 26.89 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.006, allocations: 4.188 kB / 1.007 GB, free: 26.89 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.573e-06/1.006, allocations: 0 / 1.007 GB, free: 26.89 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0002393/1.006, allocations: 2.406 kB / 1.007 GB, free: 26.89 MB / 0.7917 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.01317/1.019, allocations: 12.61 MB / 1.019 GB, free: 21.5 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/1.019, allocations: 9.469 kB / 1.019 GB, free: 21.5 MB / 0.7917 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008145/1.02, allocations: 1.237 MB / 1.02 GB, free: 21.41 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/1.021, allocations: 1.424 MB / 1.022 GB, free: 20.68 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006668/1.028, allocations: 6.109 MB / 1.027 GB, free: 19.04 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001832/1.03, allocations: 6.513 MB / 1.034 GB, free: 12.14 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006093/1.03, allocations: 0.8758 MB / 1.035 GB, free: 12.14 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00868/1.039, allocations: 9.689 MB / 1.044 GB, free: 11.29 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/1.039, allocations: 7.844 kB / 1.044 GB, free: 11.29 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004761/1.04, allocations: 381.3 kB / 1.045 GB, free: 11.29 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.184e-05/1.04, allocations: 229.7 kB / 1.045 GB, free: 11.29 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009767/1.049, allocations: 9.616 MB / 1.054 GB, free: 11.21 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03775/1.087, allocations: 24.12 MB / 1.078 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06696/1.154, allocations: 41.38 MB / 1.118 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008181/1.162, allocations: 4.832 MB / 1.123 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0291/1.191, allocations: 14.07 MB / 1.137 GB, free: 1.961 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006824/1.198, allocations: 4.615 MB / 1.141 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1279): time 1.323e-05/1.198, allocations: 0 / 1.141 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1279): time 0.0237/1.222, allocations: 12.89 MB / 1.154 GB, free: 388 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/1.222, allocations: 186.2 kB / 1.154 GB, free: 188 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006104/1.228, allocations: 5.247 MB / 1.159 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.00139/1.23, allocations: 229.7 kB / 1.159 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002636/1.232, allocations: 4.045 MB / 1.163 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.004334/1.237, allocations: 4.364 MB / 1.167 GB, free: 2.355 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002394/1.239, allocations: 1.819 MB / 1.169 GB, free: 0.5273 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.089e-05/1.239, allocations: 301.1 kB / 1.169 GB, free: 236 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/1.244, allocations: 3.267 MB / 1.173 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005973/1.25, allocations: 5.059 MB / 1.178 GB, free: 7.297 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.264, allocations: 8.67 MB / 1.186 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.711e-05/1.264, allocations: 12 kB / 1.186 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1479) (initialization): time 0.01694/1.281, allocations: 10.75 MB / 1.197 GB, free: 3.508 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.281, allocations: 160.5 kB / 1.197 GB, free: 3.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.762e-05/1.281, allocations: 44 kB / 1.197 GB, free: 3.277 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007415/1.282, allocations: 459.9 kB / 1.197 GB, free: 2.805 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01729/1.299, allocations: 5.913 MB / 1.203 GB, free: 13.04 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007154/1.306, allocations: 13.25 MB / 1.216 GB, free: 14.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006369/1.312, allocations: 0.9771 MB / 1.217 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00196/1.314, allocations: 463.8 kB / 1.217 GB, free: 13.47 MB / 0.948 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.003975/1.318, allocations: 1.351 MB / 1.219 GB, free: 12.26 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002278/1.321, allocations: 1.052 MB / 1.22 GB, free: 11.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/1.34, allocations: 10.84 MB / 1.23 GB, free: 0.4922 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-05/1.34, allocations: 128 kB / 1.23 GB, free: 376 kB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.797e-05/1.34, allocations: 0 / 1.23 GB, free: 376 kB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000219/1.34, allocations: 59.77 kB / 1.23 GB, free: 316 kB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03406/1.374, allocations: 17.98 MB / 1.248 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-05/1.374, allocations: 7.984 kB / 1.248 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01718/1.392, allocations: 5.571 MB / 1.253 GB, free: 9.039 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008745/1.392, allocations: 407.4 kB / 1.254 GB, free: 8.617 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001948/1.394, allocations: 291.8 kB / 1.254 GB, free: 8.332 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007169/1.402, allocations: 13.08 MB / 1.267 GB, free: 10.34 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.402, allocations: 4.125 kB / 1.267 GB, free: 10.34 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02694/1.428, allocations: 14.36 MB / 1.281 GB, free: 11.89 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005324/1.434, allocations: 1.749 MB / 1.283 GB, free: 10.14 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/1.436, allocations: 212 kB / 1.283 GB, free: 9.93 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004253/1.44, allocations: 295.9 kB / 1.283 GB, free: 9.641 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001728/1.442, allocations: 0.793 MB / 1.284 GB, free: 8.848 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009595/1.443, allocations: 371.8 kB / 1.284 GB, free: 8.484 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.004296/1.447, allocations: 3.259 MB / 1.287 GB, free: 5.238 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.71e-07/1.447, allocations: 0 / 1.287 GB, free: 5.238 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.009844/1.457, allocations: 3.385 MB / 1.291 GB, free: 1.848 MB / 1.01 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.2629/1.72, allocations: 17.16 MB / 1.307 GB, free: 0.491 GB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.01571/1.735, allocations: 9.89 MB / 1.317 GB, free: 498.7 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.735, allocations: 3.938 kB / 1.317 GB, free: 498.7 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.008113/1.744, allocations: 5.425 MB / 1.322 GB, free: 496.3 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01386/1.757, allocations: 4.195 MB / 1.327 GB, free: 494.9 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08972/1.847, allocations: 67.9 MB / 1.393 GB, free: 447.8 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00252/1.85, allocations: 4.046 MB / 1.397 GB, free: 445 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.007764/1.857, allocations: 1.918 MB / 1.399 GB, free: 443.9 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005015/1.862, allocations: 4.87 MB / 1.403 GB, free: 439.4 MB / 1.01 GB Notification: Performance of SimCode: time 2.324e-06/1.862, allocations: 0 / 1.403 GB, free: 439.4 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2333/2.096, allocations: 256 MB / 1.653 GB, free: 187.3 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.18/23.27, allocations: 4 kB / 1.653 GB, free: 187.3 MB / 1.01 GB " [Timeout remaining time 637] (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: 26.126527782529593] Failed to read output from testmodel.py, exit status != 0: 23.494089520536363 23.500220842 22.493303646 Calling exit ...