Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.00122/0.00122, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001364/0.001364, allocations: 219.8 kB / 23.04 MB, free: 5.078 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.374/1.374, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.04929/0.04929, allocations: 9.151 MB / 295.2 MB, free: 12.71 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.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",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.002106/0.002106, allocations: 67.38 kB / 411.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.08589, allocations: 50.76 MB / 462.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4225/0.5084, allocations: 197.1 MB / 0.6443 GB, free: 3.215 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4551/0.9634, allocations: 142.1 MB / 0.7831 GB, free: 252 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.9649, allocations: 12.25 kB / 0.7831 GB, free: 252 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004194/0.9691, allocations: 1.622 MB / 0.7847 GB, free: 248 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004301/0.9734, allocations: 1.913 MB / 0.7865 GB, free: 228 kB / 0.545 GB [/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.09523/1.069, allocations: 40.88 MB / 0.8265 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002817/1.071, allocations: 1.946 MB / 0.8284 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/1.072, allocations: 134.5 kB / 0.8285 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/1.073, allocations: 0.8501 MB / 0.8293 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008978/1.074, allocations: 0.5552 MB / 0.8299 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.935e-05/1.074, allocations: 59.03 kB / 0.8299 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08661/1.161, allocations: 46.06 MB / 0.8749 GB, free: 7.039 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004317/1.162, allocations: 176.2 kB / 0.8751 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009333/1.162, allocations: 425.8 kB / 0.8755 GB, free: 6.457 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06233/1.225, allocations: 18.91 MB / 0.8939 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.225, allocations: 4 kB / 0.8939 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.174e-06/1.225, allocations: 0 / 0.8939 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.859e-05/1.225, allocations: 0 / 0.8939 GB, free: 4.98 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.008948/1.234, allocations: 3.417 MB / 0.8973 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.234, allocations: 15.98 kB / 0.8973 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.692e-05/1.234, allocations: 16.98 kB / 0.8973 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/1.234, allocations: 106.5 kB / 0.8974 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008684/1.235, allocations: 123 kB / 0.8975 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000623/1.235, allocations: 360.2 kB / 0.8979 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/1.236, allocations: 41 kB / 0.8979 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.034e-05/1.236, allocations: 48 kB / 0.898 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/1.237, allocations: 0.831 MB / 0.8988 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/1.237, allocations: 3.938 kB / 0.8988 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/1.238, allocations: 20 kB / 0.8988 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/1.238, allocations: 18.11 kB / 0.8988 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00187/1.239, allocations: 0.773 MB / 0.8996 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/1.243, allocations: 3.408 MB / 0.9029 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/1.245, allocations: 0.649 MB / 0.9035 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007763/1.246, allocations: 447.1 kB / 0.904 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2708/1.517, allocations: 58.55 MB / 0.9611 GB, free: 15.99 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/1.517, allocations: 39 kB / 0.9612 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.625e-06/1.517, allocations: 0 / 0.9612 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.009954/1.527, allocations: 3.347 MB / 0.9644 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/1.527, allocations: 55.91 kB / 0.9645 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/1.527, allocations: 312.5 kB / 0.9648 GB, free: 12.19 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/1.527, allocations: 37.7 kB / 0.9648 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/1.527, allocations: 233.5 kB / 0.965 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000324/1.528, allocations: 400.3 kB / 0.9654 GB, free: 11.53 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/1.528, allocations: 142.2 kB / 0.9656 GB, free: 11.38 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001694/1.528, allocations: 370.7 kB / 0.9659 GB, free: 11.01 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000759/1.529, allocations: 409.7 kB / 0.9663 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000897/1.53, allocations: 0.5434 MB / 0.9668 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/1.531, allocations: 1.006 MB / 0.9678 GB, free: 8.965 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/1.531, allocations: 4 kB / 0.9678 GB, free: 8.961 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002372/1.534, allocations: 1.159 MB / 0.969 GB, free: 7.785 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/1.534, allocations: 8 kB / 0.969 GB, free: 7.777 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/1.534, allocations: 4 kB / 0.969 GB, free: 7.773 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004265/1.534, allocations: 102.4 kB / 0.9691 GB, free: 7.664 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/1.535, allocations: 206.2 kB / 0.9693 GB, free: 7.465 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1392/1.674, allocations: 35.03 MB / 1.003 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/1.675, allocations: 44.03 kB / 1.004 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.96e-05/1.675, allocations: 27.98 kB / 1.004 GB, free: 3.113 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000411/1.675, allocations: 215 kB / 1.004 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/1.676, allocations: 63.58 kB / 1.004 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/1.679, allocations: 2.442 MB / 1.006 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/1.679, allocations: 22.64 kB / 1.006 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.679, allocations: 0 / 1.006 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1965/1.876, allocations: 1.685 MB / 1.008 GB, free: 367.6 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/1.879, allocations: 2.49 MB / 1.01 GB, free: 367.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/1.879, allocations: 4.281 kB / 1.01 GB, free: 367.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004754/1.879, allocations: 119.8 kB / 1.01 GB, free: 367.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/1.88, allocations: 210 kB / 1.011 GB, free: 367.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/1.88, allocations: 18.41 kB / 1.011 GB, free: 367.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/1.882, allocations: 3.777 MB / 1.014 GB, free: 363.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/1.882, allocations: 0.6094 kB / 1.014 GB, free: 363.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/1.885, allocations: 2.035 MB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/1.885, allocations: 62.23 kB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.386e-05/1.885, allocations: 15.31 kB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/1.885, allocations: 35.08 kB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/1.885, allocations: 67.2 kB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/1.885, allocations: 27.7 kB / 1.016 GB, free: 363.6 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000272/1.886, allocations: 251.6 kB / 1.017 GB, free: 363.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/1.886, allocations: 0 / 1.017 GB, free: 363.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.01344/1.899, allocations: 5.545 MB / 1.022 GB, free: 363.5 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0294/1.928, allocations: 9.205 MB / 1.031 GB, free: 361.1 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003028/1.931, allocations: 1.524 MB / 1.033 GB, free: 360.3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.931, allocations: 1.531 kB / 1.033 GB, free: 360.3 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/1.932, allocations: 0.7993 MB / 1.033 GB, free: 359.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/1.935, allocations: 0.523 MB / 1.034 GB, free: 359.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/1.953, allocations: 8.746 MB / 1.042 GB, free: 355.3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/1.953, allocations: 0.9368 MB / 1.043 GB, free: 354.6 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0005532/1.953, allocations: 182.8 kB / 1.044 GB, free: 354.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/1.954, allocations: 254.1 kB / 1.044 GB, free: 354.4 MB / 0.7169 GB Notification: Performance of SimCode: time 7.81e-07/1.954, allocations: 2.75 kB / 1.044 GB, free: 354.4 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2649/2.219, allocations: 212.2 MB / 1.251 GB, free: 155.6 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.67/22.89, allocations: 7.906 kB / 1.251 GB, free: 155.6 MB / 0.7169 GB " [Timeout remaining time 637] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.695164734963328] Failed to read output from testmodel.py, exit status != 0: 23.195791930076666 23.206452161 21.979106593 Calling exit ...