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.001344/0.001344, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001669/0.001669, allocations: 194.4 kB / 16.25 MB, free: 6.621 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.228/1.228, allocations: 205.1 MB / 222.1 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04129/0.04129, allocations: 9.091 MB / 278.5 MB, free: 12.36 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.001472/0.001472, allocations: 67.89 kB / 337.6 MB, free: 25.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06358/0.06506, allocations: 48.16 MB / 385.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2402/0.3053, allocations: 141.6 MB / 0.515 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2942/0.5995, allocations: 97.47 MB / 0.6102 GB, free: 280 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.6, allocations: 9.688 kB / 0.6102 GB, free: 280 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002541/0.6026, allocations: 1.276 MB / 0.6114 GB, free: 272 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002716/0.6053, allocations: 1.557 MB / 0.613 GB, free: 252 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06923/0.6746, allocations: 26.68 MB / 0.639 GB, free: 15.47 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.6761, allocations: 1.402 MB / 0.6404 GB, free: 15.35 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.6763, allocations: 125.5 kB / 0.6405 GB, free: 15.31 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01319/0.6895, allocations: 10.03 MB / 0.6503 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004357/0.69, allocations: 391.7 kB / 0.6507 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.6901, allocations: 40 kB / 0.6507 GB, free: 11.39 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05533/0.7454, allocations: 34.65 MB / 0.6845 GB, free: 2.906 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.7457, allocations: 115.5 kB / 0.6847 GB, free: 2.797 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005315/0.7462, allocations: 310.7 kB / 0.685 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04182/0.788, allocations: 14.19 MB / 0.6988 GB, free: 5.391 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.7881, allocations: 4 kB / 0.6988 GB, free: 5.387 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7881, allocations: 0 / 0.6988 GB, free: 5.387 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.7881, allocations: 0 / 0.6988 GB, free: 5.387 MB / 494.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.005618/0.7937, allocations: 2.567 MB / 0.7013 GB, free: 2.773 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.7938, allocations: 16.03 kB / 0.7013 GB, free: 2.758 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.75e-05/0.7939, allocations: 82.52 kB / 0.7014 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005777/0.7945, allocations: 83.41 kB / 0.7015 GB, free: 2.586 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.7948, allocations: 338.3 kB / 0.7018 GB, free: 2.223 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.7949, allocations: 32.66 kB / 0.7019 GB, free: 2.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.7949, allocations: 28 kB / 0.7019 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.7962, allocations: 0.6 MB / 0.7025 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.7962, allocations: 3.906 kB / 0.7025 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.7962, allocations: 19.98 kB / 0.7025 GB, free: 1.527 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.7963, allocations: 18.66 kB / 0.7025 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.7975, allocations: 0.5486 MB / 0.703 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.7999, allocations: 2.496 MB / 0.7055 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.8009, allocations: 0.5044 MB / 0.706 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005014/0.8014, allocations: 342.3 kB / 0.7063 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3637/1.165, allocations: 139 MB / 0.842 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/1.165, allocations: 38.83 kB / 0.8421 GB, free: 278.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.294e-06/1.165, allocations: 0 / 0.8421 GB, free: 278.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.004714/1.17, allocations: 2.34 MB / 0.8443 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/1.17, allocations: 59.06 kB / 0.8444 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/1.17, allocations: 255.4 kB / 0.8446 GB, free: 277 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/1.17, allocations: 30.39 kB / 0.8447 GB, free: 277 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.738e-05/1.17, allocations: 194.3 kB / 0.8449 GB, free: 276.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.329e-05/1.17, allocations: 265.3 kB / 0.8451 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.796e-05/1.17, allocations: 101.5 kB / 0.8452 GB, free: 276.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.909e-05/1.171, allocations: 350.7 kB / 0.8455 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/1.171, allocations: 272.6 kB / 0.8458 GB, free: 276 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/1.171, allocations: 406.9 kB / 0.8462 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007966/1.172, allocations: 0.7026 MB / 0.8469 GB, free: 275.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.172, allocations: 3.906 kB / 0.8469 GB, free: 275.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001096/1.173, allocations: 0.7963 MB / 0.8477 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/1.173, allocations: 7.938 kB / 0.8477 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.173, allocations: 3.969 kB / 0.8477 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/1.174, allocations: 65.08 kB / 0.8477 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/1.174, allocations: 130.1 kB / 0.8479 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09168/1.266, allocations: 24.84 MB / 0.8721 GB, free: 252.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/1.266, allocations: 51.95 kB / 0.8722 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/1.266, allocations: 20 kB / 0.8722 GB, free: 252.1 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.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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002143/1.266, allocations: 191 kB / 0.8724 GB, free: 251.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.74e-05/1.267, allocations: 43.44 kB / 0.8724 GB, free: 251.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/1.268, allocations: 1.586 MB / 0.874 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/1.268, allocations: 8 kB / 0.874 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/1.268, allocations: 0.8125 kB / 0.874 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001086/1.269, allocations: 1.176 MB / 0.8751 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/1.271, allocations: 1.642 MB / 0.8767 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/1.271, allocations: 0 / 0.8767 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/1.271, allocations: 83.91 kB / 0.8768 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002447/1.272, allocations: 105.6 kB / 0.8769 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/1.272, allocations: 15.38 kB / 0.8769 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008117/1.272, allocations: 1.995 MB / 0.8789 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.272, allocations: 0 / 0.8789 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/1.274, allocations: 1.256 MB / 0.8801 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/1.274, allocations: 116.6 kB / 0.8802 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.493e-05/1.274, allocations: 11.94 kB / 0.8802 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/1.274, allocations: 39.88 kB / 0.8802 GB, free: 243.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/1.274, allocations: 43.94 kB / 0.8803 GB, free: 243.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/1.274, allocations: 15.98 kB / 0.8803 GB, free: 243.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001785/1.275, allocations: 243 kB / 0.8805 GB, free: 243.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.275, allocations: 0 / 0.8805 GB, free: 243.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006315/1.281, allocations: 3.186 MB / 0.8836 GB, free: 240.4 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 (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01475/1.296, allocations: 5.764 MB / 0.8893 GB, free: 235 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001935/1.298, allocations: 1.003 MB / 0.8903 GB, free: 234 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.298, allocations: 0 / 0.8903 GB, free: 234 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007239/1.298, allocations: 0.4956 MB / 0.8907 GB, free: 233.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/1.3, allocations: 400.7 kB / 0.8911 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/1.311, allocations: 6.392 MB / 0.8974 GB, free: 226.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/1.311, allocations: 0.8447 MB / 0.8982 GB, free: 225.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005345/1.312, allocations: 147.2 kB / 0.8983 GB, free: 225.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/1.312, allocations: 171.4 kB / 0.8985 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of SimCode: time 9.51e-07/1.312, allocations: 0 / 0.8985 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.333/2.645, allocations: 124.6 MB / 1.02 GB, free: 100.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/2.646, allocations: 255.3 kB / 1.02 GB, free: 100.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/10.67, allocations: 0 / 1.02 GB, free: 100.3 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/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)