Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.001365/0.001365, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 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.001409/0.001409, allocations: 220.5 kB / 23.03 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 207.7 MB / 233.9 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05002/0.05002, allocations: 9.148 MB / 295.3 MB, free: 12.52 MB / 238.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 67.61 kB / 411.9 MB, free: 46.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08581/0.08795, allocations: 50.76 MB / 462.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.3398/0.4278, allocations: 115.1 MB / 0.5642 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1083/0.5361, allocations: 98.59 MB / 0.6604 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005147/0.5366, allocations: 11.94 kB / 0.6605 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002939/0.5396, allocations: 1.231 MB / 0.6617 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003648/0.5432, allocations: 1.571 MB / 0.6632 GB, free: 12.19 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.07282/0.616, allocations: 31.43 MB / 0.6939 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002358/0.6184, allocations: 1.425 MB / 0.6953 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.6186, allocations: 81.92 kB / 0.6954 GB, free: 11.14 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:620:5-620:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.01824/0.6369, allocations: 10.12 MB / 0.7052 GB, free: 1 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005926/0.6375, allocations: 402.5 kB / 0.7056 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.6375, allocations: 40 kB / 0.7057 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04699/0.6845, allocations: 25.58 MB / 0.7306 GB, free: 6.934 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.6848, allocations: 131.5 kB / 0.7308 GB, free: 6.805 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004777/0.6853, allocations: 247.1 kB / 0.731 GB, free: 6.562 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2923/0.9776, allocations: 12.37 MB / 0.7431 GB, free: 64.17 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.9776, allocations: 0.5 kB / 0.7431 GB, free: 64.17 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9776, allocations: 0 / 0.7431 GB, free: 64.17 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.9776, allocations: 0.5 kB / 0.7431 GB, free: 64.17 MB / 0.545 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.008401/0.986, allocations: 2.591 MB / 0.7456 GB, free: 62.75 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.986, allocations: 13.67 kB / 0.7456 GB, free: 62.74 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3e-05/0.986, allocations: 13.78 kB / 0.7456 GB, free: 62.74 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.323e-05/0.9861, allocations: 85.14 kB / 0.7457 GB, free: 62.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006393/0.9868, allocations: 87.12 kB / 0.7458 GB, free: 62.68 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.9872, allocations: 282.6 kB / 0.7461 GB, free: 62.52 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.9873, allocations: 32.47 kB / 0.7461 GB, free: 62.52 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.9873, allocations: 31.62 kB / 0.7461 GB, free: 62.52 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.9886, allocations: 0.7598 MB / 0.7469 GB, free: 62.24 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.9886, allocations: 5.656 kB / 0.7469 GB, free: 62.24 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/0.9887, allocations: 12.94 kB / 0.7469 GB, free: 62.24 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.9887, allocations: 19.34 kB / 0.7469 GB, free: 62.24 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.99, allocations: 0.5601 MB / 0.7475 GB, free: 62.24 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.9921, allocations: 1.724 MB / 0.7491 GB, free: 61.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009528/0.9931, allocations: 467.9 kB / 0.7496 GB, free: 61.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.9935, allocations: 320.2 kB / 0.7499 GB, free: 61.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1933/1.187, allocations: 44.04 MB / 0.7929 GB, free: 60.48 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/1.187, allocations: 41.41 kB / 0.7929 GB, free: 60.44 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 2.945e-06/1.187, allocations: 0 / 0.7929 GB, free: 60.44 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.005526/1.192, allocations: 2.252 MB / 0.7951 GB, free: 60.05 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/1.192, allocations: 62.17 kB / 0.7952 GB, free: 59.99 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/1.193, allocations: 263.4 kB / 0.7955 GB, free: 59.85 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/1.193, allocations: 28.89 kB / 0.7955 GB, free: 59.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.158e-05/1.193, allocations: 196.8 kB / 0.7957 GB, free: 59.66 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/1.193, allocations: 275.4 kB / 0.7959 GB, free: 59.46 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/1.193, allocations: 99.02 kB / 0.796 GB, free: 59.41 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.36e-05/1.193, allocations: 348.7 kB / 0.7964 GB, free: 59.07 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00041/1.193, allocations: 287.6 kB / 0.7966 GB, free: 58.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004518/1.194, allocations: 404 kB / 0.797 GB, free: 58.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008758/1.195, allocations: 0.7171 MB / 0.7977 GB, free: 58.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/1.195, allocations: 0.6562 kB / 0.7977 GB, free: 58.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001184/1.196, allocations: 0.8207 MB / 0.7985 GB, free: 57.54 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.196, allocations: 6.344 kB / 0.7985 GB, free: 57.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/1.196, allocations: 4 kB / 0.7985 GB, free: 57.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/1.196, allocations: 60.23 kB / 0.7986 GB, free: 57.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/1.197, allocations: 145.9 kB / 0.7987 GB, free: 57.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06486/1.262, allocations: 19.48 MB / 0.8178 GB, free: 38.37 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005723/1.262, allocations: 31.28 kB / 0.8178 GB, free: 38.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/1.262, allocations: 16.64 kB / 0.8178 GB, free: 38.34 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (48): * Single equations (assignments): 40 * 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, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002712/1.263, allocations: 186.6 kB / 0.818 GB, free: 38.19 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.905e-05/1.263, allocations: 47.7 kB / 0.818 GB, free: 38.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/1.265, allocations: 1.737 MB / 0.8197 GB, free: 36.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/1.265, allocations: 14.95 kB / 0.8197 GB, free: 36.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/1.265, allocations: 7.938 kB / 0.8197 GB, free: 36.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001277/1.266, allocations: 1.322 MB / 0.821 GB, free: 35.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/1.268, allocations: 1.708 MB / 0.8227 GB, free: 34.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/1.268, allocations: 4 kB / 0.8227 GB, free: 34.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00029/1.268, allocations: 70.61 kB / 0.8228 GB, free: 34.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002834/1.268, allocations: 168.8 kB / 0.8229 GB, free: 34.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/1.268, allocations: 7.812 kB / 0.8229 GB, free: 34.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/1.269, allocations: 2.477 MB / 0.8254 GB, free: 31.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/1.269, allocations: 0.5469 kB / 0.8254 GB, free: 31.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/1.271, allocations: 1.414 MB / 0.8267 GB, free: 30.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.821e-05/1.271, allocations: 39.69 kB / 0.8268 GB, free: 30.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.41e-05/1.271, allocations: 15.88 kB / 0.8268 GB, free: 30.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/1.272, allocations: 27.84 kB / 0.8268 GB, free: 30.83 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/1.272, allocations: 48.42 kB / 0.8269 GB, free: 30.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/1.272, allocations: 11.88 kB / 0.8269 GB, free: 30.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001712/1.272, allocations: 223.2 kB / 0.8271 GB, free: 30.61 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/1.272, allocations: 0 / 0.8271 GB, free: 30.61 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01136/1.283, allocations: 3.57 MB / 0.8306 GB, free: 27.14 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.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 (37): * Single equations (assignments): 31 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02234/1.306, allocations: 6.339 MB / 0.8368 GB, free: 21.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002239/1.308, allocations: 1.009 MB / 0.8378 GB, free: 21.01 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.308, allocations: 8.562 kB / 0.8378 GB, free: 21.01 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006684/1.308, allocations: 494.4 kB / 0.8382 GB, free: 20.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/1.31, allocations: 400.4 kB / 0.8386 GB, free: 20.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/1.325, allocations: 6.349 MB / 0.8448 GB, free: 14.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/1.325, allocations: 253.9 kB / 0.8451 GB, free: 14.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004288/1.326, allocations: 137.8 kB / 0.8452 GB, free: 14.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/1.326, allocations: 167.6 kB / 0.8454 GB, free: 14.45 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.326, allocations: 6.078 kB / 0.8454 GB, free: 14.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4187/1.745, allocations: 135 MB / 0.9772 GB, free: 315.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.52/20.26, allocations: 6.344 kB / 0.9772 GB, free: 315.7 MB / 0.6544 GB " [Timeout remaining time 639] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 32.019040475948714] Failed to read output from testmodel.py, exit status != 0: 20.53104519995395 20.549864200000002 19.568831898 Calling exit ...