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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 193.6 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 222 MB, free: 4.996 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04041/0.04041, allocations: 9.086 MB / 278.4 MB, free: 12.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.84 kB / 337.4 MB, free: 25.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07746, allocations: 48.16 MB / 385.6 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2855/0.363, allocations: 144.2 MB / 0.5173 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3379/0.7009, allocations: 99.23 MB / 0.6142 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008387/0.7018, allocations: 6.156 kB / 0.6143 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003446/0.7053, allocations: 1.171 MB / 0.6154 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003644/0.709, allocations: 1.466 MB / 0.6168 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07958/0.7886, allocations: 25.12 MB / 0.6414 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002432/0.791, allocations: 1.829 MB / 0.6431 GB, free: 15.55 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.7913, allocations: 95.48 kB / 0.6432 GB, free: 15.53 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01878/0.8101, allocations: 9.378 MB / 0.6524 GB, free: 12.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/0.8108, allocations: 383 kB / 0.6528 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-05/0.8109, allocations: 24.31 kB / 0.6528 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05614/0.867, allocations: 26.56 MB / 0.6787 GB, free: 9.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004119/0.8675, allocations: 100.4 kB / 0.6788 GB, free: 9.453 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008226/0.8683, allocations: 283.9 kB / 0.6791 GB, free: 9.238 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04539/0.9137, allocations: 11.51 MB / 0.6903 GB, free: 476 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.532e-05/0.9138, allocations: 2.188 kB / 0.6903 GB, free: 476 kB / 478.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.9138, allocations: 0 / 0.6903 GB, free: 476 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.9138, allocations: 0 / 0.6903 GB, free: 476 kB / 478.1 MB 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.008316/0.9222, allocations: 2.143 MB / 0.6924 GB, free: 14.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.9223, allocations: 12.03 kB / 0.6924 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000211/0.9225, allocations: 91.33 kB / 0.6925 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000586/0.9231, allocations: 79.34 kB / 0.6926 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005757/0.9236, allocations: 330.1 kB / 0.6929 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.9237, allocations: 30.47 kB / 0.6929 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.164e-05/0.9238, allocations: 39 kB / 0.693 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.9251, allocations: 0.5786 MB / 0.6935 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.9251, allocations: 11.89 kB / 0.6935 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.9252, allocations: 14.75 kB / 0.6936 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.9252, allocations: 21.52 kB / 0.6936 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.9265, allocations: 0.5138 MB / 0.6941 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.9295, allocations: 2.476 MB / 0.6965 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.9308, allocations: 0.4925 MB / 0.697 GB, free: 9.793 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005481/0.9314, allocations: 326.3 kB / 0.6973 GB, free: 9.469 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.403/1.334, allocations: 113.3 MB / 0.8079 GB, free: 313.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.054e-05/1.334, allocations: 33.72 kB / 0.8079 GB, free: 313.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.657e-06/1.334, allocations: 2.25 kB / 0.8079 GB, free: 313.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006742/1.341, allocations: 2.634 MB / 0.8105 GB, free: 313.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/1.341, allocations: 62.47 kB / 0.8106 GB, free: 313 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/1.342, allocations: 261.8 kB / 0.8108 GB, free: 312.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.726e-05/1.342, allocations: 31.77 kB / 0.8109 GB, free: 312.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/1.342, allocations: 187.2 kB / 0.811 GB, free: 312.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/1.342, allocations: 270.1 kB / 0.8113 GB, free: 312.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/1.342, allocations: 99.56 kB / 0.8114 GB, free: 312.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001027/1.343, allocations: 357.1 kB / 0.8117 GB, free: 312.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005342/1.343, allocations: 278.4 kB / 0.812 GB, free: 312 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006753/1.344, allocations: 395.9 kB / 0.8124 GB, free: 311.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/1.345, allocations: 0.7086 MB / 0.8131 GB, free: 311.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/1.345, allocations: 1.609 kB / 0.8131 GB, free: 311.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001573/1.347, allocations: 0.8147 MB / 0.8139 GB, free: 311 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/1.347, allocations: 7.016 kB / 0.8139 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/1.347, allocations: 4.188 kB / 0.8139 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009084/1.348, allocations: 152.6 kB / 0.814 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/1.348, allocations: 120.2 kB / 0.8141 GB, free: 311 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/1.35, allocations: 3.656 MB / 0.8177 GB, free: 307.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003969/1.351, allocations: 42.78 kB / 0.8177 GB, free: 307.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/1.351, allocations: 21.55 kB / 0.8178 GB, free: 307.3 MB / 0.5919 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.0002326/1.351, allocations: 191.5 kB / 0.8179 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/1.351, allocations: 43.94 kB / 0.818 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/1.354, allocations: 1.69 MB / 0.8196 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.263e-05/1.354, allocations: 16.48 kB / 0.8196 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/1.354, allocations: 0.7188 kB / 0.8196 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001482/1.355, allocations: 1.245 MB / 0.8209 GB, free: 305.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/1.358, allocations: 1.733 MB / 0.8226 GB, free: 304.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.358, allocations: 3.969 kB / 0.8226 GB, free: 304.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/1.358, allocations: 70.97 kB / 0.8226 GB, free: 304.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006828/1.359, allocations: 261.8 kB / 0.8229 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/1.359, allocations: 15.64 kB / 0.8229 GB, free: 304.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007699/1.359, allocations: 1.777 MB / 0.8246 GB, free: 302.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/1.359, allocations: 1.562 kB / 0.8246 GB, free: 302.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/1.362, allocations: 1.456 MB / 0.826 GB, free: 302 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/1.362, allocations: 116.4 kB / 0.8262 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/1.362, allocations: 15 kB / 0.8262 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/1.362, allocations: 36.53 kB / 0.8262 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/1.363, allocations: 44.81 kB / 0.8263 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/1.363, allocations: 13.86 kB / 0.8263 GB, free: 301.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002329/1.363, allocations: 225.6 kB / 0.8265 GB, free: 301.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.363, allocations: 3.906 kB / 0.8265 GB, free: 301.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006231/1.369, allocations: 1.976 MB / 0.8284 GB, free: 301.6 MB / 0.5919 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.01267/1.382, allocations: 4.507 MB / 0.8328 GB, free: 300 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001893/1.384, allocations: 0.8729 MB / 0.8337 GB, free: 299.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.384, allocations: 3.625 kB / 0.8337 GB, free: 299.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006917/1.384, allocations: 431.4 kB / 0.8341 GB, free: 299.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/1.386, allocations: 383.4 kB / 0.8344 GB, free: 299.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008987/1.395, allocations: 5.91 MB / 0.8402 GB, free: 294 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/1.396, allocations: 0.8454 MB / 0.841 GB, free: 293.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004451/1.396, allocations: 85.61 kB / 0.8411 GB, free: 293.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/1.396, allocations: 163.4 kB / 0.8413 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.062e-06/1.396, allocations: 0 / 0.8413 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5154/1.912, allocations: 77.06 MB / 0.9165 GB, free: 216 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/1.912, allocations: 251.5 kB / 0.9168 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.765/6.677, allocations: 0 / 0.9168 GB, free: 215.7 MB / 0.5919 GB (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 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)