Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.0008896/0.0008896, 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.001014/0.001014, 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.9034/0.9034, allocations: 177.2 MB / 202.8 MB, free: 5.543 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.03098/0.03098, allocations: 7.524 MB / 266.7 MB, free: 6.074 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia 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(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 391.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.32e-05, allocations: 4.953 kB / 391.8 MB, free: 6.324 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2534/0.2534, allocations: 126.8 MB / 0.5064 GB, free: 16.02 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05415/0.3076, allocations: 86.74 MB / 0.5911 GB, free: 8.16 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004905/0.3081, allocations: 11.94 kB / 0.5912 GB, free: 8.148 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.3102, allocations: 1.244 MB / 0.5924 GB, free: 6.902 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002507/0.3127, allocations: 1.606 MB / 0.5939 GB, free: 5.289 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05685/0.3696, allocations: 31.85 MB / 0.625 GB, free: 5.383 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001591/0.3712, allocations: 1.452 MB / 0.6265 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.3713, allocations: 89.75 kB / 0.6265 GB, free: 3.84 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:621:5-621:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.2336/0.605, allocations: 10.42 MB / 0.6367 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004993/0.6055, allocations: 339.6 kB / 0.637 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 7.689e-05/0.6055, allocations: 44.19 kB / 0.6371 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03109/0.6366, allocations: 20.21 MB / 0.6568 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.637, allocations: 131.5 kB / 0.6569 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0006521/0.6377, allocations: 220.8 kB / 0.6572 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03281/0.6705, allocations: 11.84 MB / 0.6687 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.6705, allocations: 2.031 kB / 0.6687 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.963e-06/0.6705, allocations: 0 / 0.6687 GB, free: 28.49 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.6705, allocations: 0 / 0.6687 GB, free: 28.49 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.005236/0.6757, allocations: 2.13 MB / 0.6708 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.6758, allocations: 15.75 kB / 0.6708 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.89e-05/0.6758, allocations: 83.39 kB / 0.6709 GB, free: 27.26 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003133/0.6761, allocations: 85.3 kB / 0.671 GB, free: 27.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.6765, allocations: 278.7 kB / 0.6712 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.6765, allocations: 31.03 kB / 0.6713 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.6766, allocations: 31.22 kB / 0.6713 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006961/0.6773, allocations: 0.7508 MB / 0.672 GB, free: 26.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.6773, allocations: 0 / 0.672 GB, free: 26.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.6773, allocations: 13.94 kB / 0.6721 GB, free: 26.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.6773, allocations: 18.03 kB / 0.6721 GB, free: 26.79 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006212/0.678, allocations: 0.5202 MB / 0.6726 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.6793, allocations: 1.695 MB / 0.6742 GB, free: 25.98 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.6799, allocations: 454.5 kB / 0.6747 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.6801, allocations: 292.5 kB / 0.6749 GB, free: 25.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05947/0.7396, allocations: 34.15 MB / 0.7083 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.7396, allocations: 42.78 kB / 0.7083 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=78): time 2.154e-06/0.7396, allocations: 0 / 0.7083 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=83): time 0.003538/0.7432, allocations: 2.481 MB / 0.7108 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.7432, allocations: 56.16 kB / 0.7108 GB, free: 10.31 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.7434, allocations: 262.8 kB / 0.7111 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.7434, allocations: 37.58 kB / 0.7111 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.7435, allocations: 187.7 kB / 0.7113 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.532e-05/0.7436, allocations: 278.1 kB / 0.7115 GB, free: 9.664 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.107e-05/0.7436, allocations: 104.1 kB / 0.7116 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.7437, allocations: 355.3 kB / 0.712 GB, free: 9.25 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.7439, allocations: 283.4 kB / 0.7123 GB, free: 9.082 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.7442, allocations: 412.5 kB / 0.7126 GB, free: 8.762 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005589/0.7448, allocations: 0.7379 MB / 0.7134 GB, free: 8.254 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7448, allocations: 4 kB / 0.7134 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007849/0.7456, allocations: 0.828 MB / 0.7142 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.7456, allocations: 8 kB / 0.7142 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.7456, allocations: 4 kB / 0.7142 GB, free: 7.676 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004235/0.746, allocations: 149.7 kB / 0.7143 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.7463, allocations: 126.2 kB / 0.7145 GB, free: 7.434 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.7476, allocations: 3.644 MB / 0.718 GB, free: 19.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.7478, allocations: 31.09 kB / 0.718 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.7478, allocations: 19.94 kB / 0.7181 GB, free: 19.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.748, allocations: 188.8 kB / 0.7182 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/0.7481, allocations: 51.72 kB / 0.7183 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.7492, allocations: 1.702 MB / 0.72 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.7492, allocations: 19.64 kB / 0.72 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.7492, allocations: 6.453 kB / 0.72 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007439/0.7499, allocations: 1.266 MB / 0.7212 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.7513, allocations: 1.674 MB / 0.7228 GB, free: 16.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.7513, allocations: 0 / 0.7228 GB, free: 16.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.7515, allocations: 78.44 kB / 0.7229 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/0.7519, allocations: 257.3 kB / 0.7232 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.7519, allocations: 15.67 kB / 0.7232 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006823/0.7526, allocations: 1.794 MB / 0.7249 GB, free: 14 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.7526, allocations: 0 / 0.7249 GB, free: 14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.7538, allocations: 1.499 MB / 0.7264 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.7539, allocations: 44.45 kB / 0.7264 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.754, allocations: 11.42 kB / 0.7265 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.7541, allocations: 31.8 kB / 0.7265 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.589e-05/0.7542, allocations: 39.11 kB / 0.7265 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.7543, allocations: 18.92 kB / 0.7265 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001789/0.7544, allocations: 220.2 kB / 0.7267 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.7544, allocations: 0 / 0.7267 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005509/0.7599, allocations: 2.008 MB / 0.7287 GB, free: 10.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01212/0.7721, allocations: 4.803 MB / 0.7334 GB, free: 6.762 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001499/0.7736, allocations: 0.8467 MB / 0.7342 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.7736, allocations: 0 / 0.7342 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004395/0.774, allocations: 398.2 kB / 0.7346 GB, free: 5.879 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.7751, allocations: 404.1 kB / 0.735 GB, free: 5.543 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008807/0.7839, allocations: 5.787 MB / 0.7406 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.7841, allocations: 257.9 kB / 0.7409 GB, free: 440 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0003509/0.7845, allocations: 79.89 kB / 0.741 GB, free: 360 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.7846, allocations: 163.3 kB / 0.7411 GB, free: 312 kB / 0.5105 GB Notification: Performance of SimCode: time 1.483e-06/0.7846, allocations: 4 kB / 0.7411 GB, free: 308 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.8861, allocations: 80.04 MB / 0.8193 GB, free: 0.8828 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.48/10.37, allocations: 7.578 kB / 0.8193 GB, free: 0.8789 MB / 0.5886 GB " [Timeout remaining time 650] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.325467055663466] Failed to read output from testmodel.py, exit status != 0: 10.496620452031493 10.503964006 9.831625719 Calling exit ...