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.0008363/0.0008363, 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.001196/0.001196, allocations: 213.7 kB / 22.25 MB, free: 3.566 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.9386/0.9386, allocations: 230.6 MB / 256 MB, free: 9.598 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.7429/0.7429, allocations: 150.8 MB / 463.3 MB, free: 6.461 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.001608/0.001608, allocations: 86.06 kB / 0.6393 GB, free: 32.5 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1615, allocations: 88.08 MB / 0.7253 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle): time 0.6848/0.8464, allocations: 342.2 MB / 1.06 GB, free: 1.441 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.077/0.9234, allocations: 69.85 MB / 1.128 GB, free: 11.38 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01333/0.9367, allocations: 0.6692 MB / 1.128 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.01231/0.949, allocations: 3.994 MB / 1.132 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 0.03486/0.9839, allocations: 12.75 MB / 1.145 GB, free: 9.852 MB / 0.8855 GB Notification: Performance of NFTyping.typeClassSections: time 0.01934/1.003, allocations: 8.25 MB / 1.153 GB, free: 1.582 MB / 0.8855 GB Notification: Performance of NFFlatten.flatten: time 1.042/2.045, allocations: 19.19 MB / 1.172 GB, free: 20.33 MB / 0.9012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006454/2.051, allocations: 1.962 MB / 1.173 GB, free: 35.86 MB / 0.9168 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01961/2.071, allocations: 8.922 MB / 1.182 GB, free: 35.86 MB / 0.9168 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01779/2.089, allocations: 7.831 MB / 1.19 GB, free: 34.65 MB / 0.9168 GB Notification: Performance of NFPackage.collectConstants: time 0.008063/2.097, allocations: 0.7821 MB / 1.191 GB, free: 34.65 MB / 0.9168 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02384/2.121, allocations: 9.867 MB / 1.2 GB, free: 34.65 MB / 0.9168 GB Notification: Performance of NFScalarize.scalarize: time 0.005849/2.127, allocations: 2.254 MB / 1.202 GB, free: 34.14 MB / 0.9168 GB Notification: Performance of NFVerifyModel.verify: time 0.01184/2.138, allocations: 4.767 MB / 1.207 GB, free: 32.66 MB / 0.9168 GB Notification: Performance of NFConvertDAE.convert: time 0.04945/2.188, allocations: 19.7 MB / 1.226 GB, free: 29.69 MB / 0.9168 GB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/2.188, allocations: 0 / 1.226 GB, free: 29.69 MB / 0.9168 GB Notification: Performance of FrontEnd: time 2.996e-06/2.188, allocations: 0 / 1.226 GB, free: 29.69 MB / 0.9168 GB Notification: Performance of Transformations before backend: time 0.0009759/2.189, allocations: 0.9062 kB / 1.226 GB, free: 29.69 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.03629/2.225, allocations: 13.63 MB / 1.24 GB, free: 23.93 MB / 0.9168 GB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/2.225, allocations: 10.81 kB / 1.24 GB, free: 23.93 MB / 0.9168 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003647/2.229, allocations: 1.297 MB / 1.241 GB, free: 23.83 MB / 0.9168 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004848/2.234, allocations: 1.501 MB / 1.242 GB, free: 23.06 MB / 0.9168 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/2.25, allocations: 6.575 MB / 1.249 GB, free: 21.3 MB / 0.9168 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002686/2.253, allocations: 5.122 MB / 1.254 GB, free: 16.09 MB / 0.9168 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003696/2.256, allocations: 0.9709 MB / 1.255 GB, free: 16.07 MB / 0.9168 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02205/2.278, allocations: 10.16 MB / 1.265 GB, free: 15.45 MB / 0.9168 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002448/2.279, allocations: 10.97 kB / 1.265 GB, free: 15.45 MB / 0.9168 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008869/2.28, allocations: 399.1 kB / 1.265 GB, free: 15.45 MB / 0.9168 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002074/2.28, allocations: 240.3 kB / 1.265 GB, free: 15.45 MB / 0.9168 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02123/2.301, allocations: 10.33 MB / 1.275 GB, free: 15.36 MB / 0.9168 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05155/2.353, allocations: 22.1 MB / 1.297 GB, free: 10.47 MB / 0.9168 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08183/2.434, allocations: 45.66 MB / 1.342 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01191/2.446, allocations: 5.232 MB / 1.347 GB, free: 12.27 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05038/2.497, allocations: 15.69 MB / 1.362 GB, free: 13.04 MB / 0.9637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01361/2.51, allocations: 5.167 MB / 1.367 GB, free: 7.852 MB / 0.9637 GB Notification: Performance of pre-optimization done (n=1447): time 2.039e-05/2.51, allocations: 2.531 kB / 1.367 GB, free: 7.852 MB / 0.9637 GB Notification: Performance of matching and sorting (n=1447): time 0.04251/2.553, allocations: 14.45 MB / 1.381 GB, free: 9.406 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001916/2.553, allocations: 208.2 kB / 1.381 GB, free: 9.191 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/2.564, allocations: 5.41 MB / 1.387 GB, free: 3.805 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.002686/2.567, allocations: 261.7 kB / 1.387 GB, free: 3.543 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.003141/2.57, allocations: 4.092 MB / 1.391 GB, free: 15.44 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.006278/2.576, allocations: 5.01 MB / 1.396 GB, free: 10.5 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002854/2.579, allocations: 1.922 MB / 1.398 GB, free: 8.562 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 8.083e-05/2.579, allocations: 305.1 kB / 1.398 GB, free: 8.262 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006301/2.585, allocations: 3.55 MB / 1.401 GB, free: 4.672 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00956/2.595, allocations: 5.099 MB / 1.406 GB, free: 15.15 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01981/2.615, allocations: 9.033 MB / 1.415 GB, free: 5.789 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-05/2.615, allocations: 8 kB / 1.415 GB, free: 5.781 MB / 1.011 GB Notification: Performance of matching and sorting (n=1589) (initialization): time 0.03273/2.647, allocations: 11.5 MB / 1.426 GB, free: 10.36 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/2.648, allocations: 160.5 kB / 1.427 GB, free: 10.17 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.625e-05/2.648, allocations: 28 kB / 1.427 GB, free: 10.14 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/2.649, allocations: 0.5247 MB / 1.427 GB, free: 9.594 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0185/2.667, allocations: 5.393 MB / 1.432 GB, free: 4.355 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/2.678, allocations: 15.22 MB / 1.447 GB, free: 4.164 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008071/2.686, allocations: 0.9809 MB / 1.448 GB, free: 3.176 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002545/2.689, allocations: 471.8 kB / 1.449 GB, free: 2.715 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.006023/2.695, allocations: 1.403 MB / 1.45 GB, free: 1.453 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00385/2.699, allocations: 1.149 MB / 1.451 GB, free: 304 kB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03048/2.729, allocations: 12.16 MB / 1.463 GB, free: 4.363 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-05/2.729, allocations: 140 kB / 1.463 GB, free: 4.227 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.414e-05/2.729, allocations: 9.25 kB / 1.463 GB, free: 4.219 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003327/2.729, allocations: 71.72 kB / 1.463 GB, free: 4.148 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04738/2.777, allocations: 19.87 MB / 1.483 GB, free: 0.5234 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.684e-05/2.777, allocations: 0 / 1.483 GB, free: 0.5234 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01728/2.794, allocations: 5.21 MB / 1.488 GB, free: 11.45 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/2.795, allocations: 491.4 kB / 1.488 GB, free: 10.94 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002155/2.797, allocations: 339.8 kB / 1.489 GB, free: 10.61 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/2.808, allocations: 15.07 MB / 1.503 GB, free: 10.53 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/2.808, allocations: 0 / 1.503 GB, free: 10.53 MB / 1.104 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0365/2.844, allocations: 16.01 MB / 1.519 GB, free: 10.48 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0078/2.852, allocations: 1.975 MB / 1.521 GB, free: 8.496 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002991/2.855, allocations: 250 kB / 1.521 GB, free: 8.254 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00588/2.861, allocations: 296 kB / 1.521 GB, free: 7.965 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001877/2.863, allocations: 0.9176 MB / 1.522 GB, free: 7.047 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001053/2.864, allocations: 419.8 kB / 1.523 GB, free: 6.637 MB / 1.12 GB Notification: Performance of sorting global known variables: time 0.005325/2.869, allocations: 3.409 MB / 1.526 GB, free: 3.25 MB / 1.12 GB Notification: Performance of sort global known variables: time 2e-07/2.869, allocations: 0 / 1.526 GB, free: 3.25 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.01588/2.885, allocations: 3.787 MB / 1.53 GB, free: 15.45 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.04018/2.925, allocations: 19.49 MB / 1.549 GB, free: 12.34 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.02337/2.948, allocations: 10.79 MB / 1.559 GB, free: 1.547 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/2.948, allocations: 0 / 1.559 GB, free: 1.547 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0157/2.964, allocations: 6.097 MB / 1.565 GB, free: 11.61 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01919/2.983, allocations: 4.603 MB / 1.57 GB, free: 7.184 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5533/3.537, allocations: 70.95 MB / 1.639 GB, free: 0.562 GB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004205/3.541, allocations: 4.354 MB / 1.643 GB, free: 0.5614 GB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.009626/3.55, allocations: 2.128 MB / 1.645 GB, free: 0.5613 GB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006307/3.557, allocations: 5.26 MB / 1.65 GB, free: 0.5573 GB / 1.182 GB Notification: Performance of SimCode: time 3.317e-06/3.557, allocations: 0 / 1.65 GB, free: 0.5573 GB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3154/3.872, allocations: 291.2 MB / 1.935 GB, free: 299 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.29/24.17, allocations: 10.02 kB / 1.935 GB, free: 299 MB / 1.182 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Processes.PolytropicPerfectGas.Prescribed1and3Cycle_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Processes_PolytropicPerfectGas_Prescribed1and3Cycle_fmu --startTime=0 --stopTime=1.5 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 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: 27.572759854607284] Failed to read output from testmodel.py, exit status != 0: 24.410264217294753 24.419089219 22.228718384 Calling exit ...