Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.001138/0.001138, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001273/0.001273, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04077/0.04077, allocations: 9.065 MB / 279.4 MB, free: 12.25 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.000492/0.000492, allocations: 15.94 kB / 339.2 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.08318, allocations: 49.18 MB / 388.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2658/0.349, allocations: 117.8 MB / 0.4943 GB, free: 1.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0691/0.4182, allocations: 77.43 MB / 0.5699 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005027/0.4187, allocations: 4 kB / 0.5699 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002799/0.4215, allocations: 1.129 MB / 0.571 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003195/0.4247, allocations: 1.289 MB / 0.5723 GB, free: 1.359 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2811/0.7059, allocations: 22.63 MB / 0.5944 GB, free: 16.83 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.7074, allocations: 0.7836 MB / 0.5951 GB, free: 16.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.7076, allocations: 91.12 kB / 0.5952 GB, free: 16.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01757/0.7252, allocations: 9.804 MB / 0.6048 GB, free: 16.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004039/0.7256, allocations: 269.5 kB / 0.605 GB, free: 16.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.7257, allocations: 17.53 kB / 0.6051 GB, free: 16.64 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04243/0.7681, allocations: 25.63 MB / 0.6301 GB, free: 16.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.7684, allocations: 90.25 kB / 0.6302 GB, free: 16.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003826/0.7688, allocations: 148.2 kB / 0.6303 GB, free: 16.56 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/0.7828, allocations: 6.494 MB / 0.6367 GB, free: 14.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.7828, allocations: 0 / 0.6367 GB, free: 14.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.7828, allocations: 0 / 0.6367 GB, free: 14.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.7829, allocations: 0 / 0.6367 GB, free: 14.63 MB / 446.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.004722/0.7876, allocations: 1.998 MB / 0.6386 GB, free: 13.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.7876, allocations: 18.33 kB / 0.6386 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.331e-05/0.7877, allocations: 82.58 kB / 0.6387 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006002/0.7883, allocations: 90.41 kB / 0.6388 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.7887, allocations: 323.4 kB / 0.6391 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.7887, allocations: 35.44 kB / 0.6391 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.7888, allocations: 37.59 kB / 0.6392 GB, free: 12.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.7899, allocations: 0.601 MB / 0.6398 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.7899, allocations: 7.344 kB / 0.6398 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.7899, allocations: 13.19 kB / 0.6398 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.79, allocations: 13.08 kB / 0.6398 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.7911, allocations: 0.5771 MB / 0.6403 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.7933, allocations: 2.508 MB / 0.6428 GB, free: 25.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009541/0.7943, allocations: 0.5136 MB / 0.6433 GB, free: 25.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2282/1.023, allocations: 136.2 MB / 0.7763 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/1.023, allocations: 37.78 kB / 0.7763 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.846e-06/1.023, allocations: 0 / 0.7763 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006351/1.029, allocations: 2.709 MB / 0.779 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/1.029, allocations: 62.97 kB / 0.779 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/1.029, allocations: 252.7 kB / 0.7793 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/1.029, allocations: 37.14 kB / 0.7793 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/1.03, allocations: 189.3 kB / 0.7795 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000185/1.03, allocations: 265.8 kB / 0.7797 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/1.03, allocations: 11.56 kB / 0.7798 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001298/1.03, allocations: 350.4 kB / 0.7801 GB, free: 9.191 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005004/1.03, allocations: 285.3 kB / 0.7804 GB, free: 9.02 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005612/1.031, allocations: 417.4 kB / 0.7808 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000551/1.032, allocations: 333.9 kB / 0.7811 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/1.032, allocations: 0 / 0.7811 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001482/1.033, allocations: 0.8142 MB / 0.7819 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/1.033, allocations: 7.953 kB / 0.7819 GB, free: 7.926 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/1.033, allocations: 4 kB / 0.7819 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/1.033, allocations: 69.42 kB / 0.782 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/1.034, allocations: 134.9 kB / 0.7821 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2656/1.3, allocations: 24.47 MB / 0.806 GB, free: 310.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006019/1.3, allocations: 58.98 kB / 0.806 GB, free: 310.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/1.3, allocations: 16.88 kB / 0.806 GB, free: 310.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003154/1.301, allocations: 188.4 kB / 0.8062 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.501e-05/1.301, allocations: 54.33 kB / 0.8063 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/1.303, allocations: 1.599 MB / 0.8078 GB, free: 310.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/1.303, allocations: 17.23 kB / 0.8079 GB, free: 310.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/1.303, allocations: 0 / 0.8079 GB, free: 310.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001186/1.304, allocations: 1.202 MB / 0.809 GB, free: 309.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/1.306, allocations: 1.67 MB / 0.8107 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/1.306, allocations: 0 / 0.8107 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/1.306, allocations: 90.2 kB / 0.8107 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002958/1.307, allocations: 114.4 kB / 0.8109 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/1.307, allocations: 7.609 kB / 0.8109 GB, free: 308.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009038/1.307, allocations: 1.908 MB / 0.8127 GB, free: 307 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.307, allocations: 10.69 kB / 0.8127 GB, free: 307 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/1.309, allocations: 1.298 MB / 0.814 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/1.309, allocations: 138 kB / 0.8141 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.381e-05/1.309, allocations: 11.97 kB / 0.8141 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/1.31, allocations: 44.97 kB / 0.8142 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.952e-05/1.31, allocations: 51.56 kB / 0.8142 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/1.31, allocations: 14.77 kB / 0.8143 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001963/1.31, allocations: 240.5 kB / 0.8145 GB, free: 306 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.31, allocations: 0 / 0.8145 GB, free: 306 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007832/1.318, allocations: 3.182 MB / 0.8176 GB, free: 305.8 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.p,volume.medium.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01705/1.335, allocations: 5.869 MB / 0.8233 GB, free: 302.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00177/1.337, allocations: 0.9967 MB / 0.8243 GB, free: 301.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/1.337, allocations: 0 / 0.8243 GB, free: 301.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006313/1.337, allocations: 0.4954 MB / 0.8248 GB, free: 300.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/1.339, allocations: 328 kB / 0.8251 GB, free: 300.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009983/1.349, allocations: 6.632 MB / 0.8316 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/1.349, allocations: 0.8641 MB / 0.8324 GB, free: 293 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004019/1.35, allocations: 143.1 kB / 0.8325 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/1.35, allocations: 167.4 kB / 0.8327 GB, free: 292.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.984e-06/1.35, allocations: 0 / 0.8327 GB, free: 292.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/1.492, allocations: 123.1 MB / 0.9529 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/1.492, allocations: 224.5 kB / 0.9531 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.445/7.937, allocations: 7.938 kB / 0.9531 GB, free: 169.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1) Environment - environmentSimulation: