Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.0009373/0.0009373, allocations: 95.62 kB / 15.05 MB, free: 1.109 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.001016/0.001016, allocations: 181.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.333/1.333, allocations: 205.4 MB / 222.1 MB, free: 5.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04208/0.04208, allocations: 9.048 MB / 279.4 MB, free: 12.14 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.0004608/0.0004609, allocations: 19.92 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07573/0.07621, allocations: 49.17 MB / 388.4 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.2739/0.3501, allocations: 117.8 MB / 0.4943 GB, free: 1.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.06976/0.4199, allocations: 77.41 MB / 0.5699 GB, free: 3.723 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00049/0.4204, allocations: 4 kB / 0.5699 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002551/0.423, allocations: 1.129 MB / 0.571 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.4258, allocations: 1.297 MB / 0.5723 GB, free: 1.285 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2727/0.6985, allocations: 22.63 MB / 0.5944 GB, free: 16.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.7001, allocations: 0.7842 MB / 0.5951 GB, free: 16.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.7003, allocations: 98.38 kB / 0.5952 GB, free: 16.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01784/0.7182, allocations: 9.81 MB / 0.6048 GB, free: 16.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000431/0.7187, allocations: 259.3 kB / 0.605 GB, free: 16.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.7187, allocations: 19.44 kB / 0.6051 GB, free: 16.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04031/0.759, allocations: 23.3 MB / 0.6278 GB, free: 16.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002558/0.7593, allocations: 92.02 kB / 0.6279 GB, free: 16.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000405/0.7598, allocations: 142.4 kB / 0.628 GB, free: 16.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.7728, allocations: 5.933 MB / 0.6338 GB, free: 14.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7728, allocations: 0 / 0.6338 GB, free: 14.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7728, allocations: 0 / 0.6338 GB, free: 14.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.7729, allocations: 0 / 0.6338 GB, free: 14.87 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.004923/0.7778, allocations: 1.85 MB / 0.6356 GB, free: 13.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.7778, allocations: 11.78 kB / 0.6356 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.997e-05/0.7779, allocations: 83.92 kB / 0.6357 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004765/0.7784, allocations: 87.7 kB / 0.6358 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.7788, allocations: 323.7 kB / 0.6361 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.7788, allocations: 25.72 kB / 0.6361 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.7789, allocations: 39.38 kB / 0.6362 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.7799, allocations: 0.5881 MB / 0.6368 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.7799, allocations: 2.625 kB / 0.6368 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.78, allocations: 16 kB / 0.6368 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.78, allocations: 20.39 kB / 0.6368 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.7811, allocations: 0.5466 MB / 0.6373 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.7836, allocations: 2.483 MB / 0.6398 GB, free: 27.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00093/0.7846, allocations: 0.5044 MB / 0.6402 GB, free: 26.87 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1468/0.9314, allocations: 111.7 MB / 0.7494 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.9315, allocations: 38.03 kB / 0.7494 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 2.745e-06/0.9315, allocations: 0 / 0.7494 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83): time 0.006547/0.9381, allocations: 2.801 MB / 0.7521 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.9381, allocations: 59.03 kB / 0.7522 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.9385, allocations: 253.3 kB / 0.7524 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.9385, allocations: 33.08 kB / 0.7525 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.9386, allocations: 187.8 kB / 0.7526 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.9389, allocations: 269.4 kB / 0.7529 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.9389, allocations: 11 kB / 0.7529 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.939, allocations: 358 kB / 0.7533 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.9395, allocations: 279.3 kB / 0.7535 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.9401, allocations: 420.6 kB / 0.7539 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000539/0.9406, allocations: 342.8 kB / 0.7542 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.9406, allocations: 0 / 0.7542 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001466/0.9421, allocations: 0.8368 MB / 0.7551 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.9421, allocations: 4 kB / 0.7551 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.9422, allocations: 7.984 kB / 0.7551 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002875/0.9425, allocations: 79.03 kB / 0.7552 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005132/0.943, allocations: 121.7 kB / 0.7553 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04438/0.9874, allocations: 13.24 MB / 0.7682 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.9879, allocations: 57.05 kB / 0.7682 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.988, allocations: 19.94 kB / 0.7683 GB, free: 8.051 MB / 0.5762 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.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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002767/0.9883, allocations: 193.8 kB / 0.7685 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.9883, allocations: 47.44 kB / 0.7685 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.9905, allocations: 1.747 MB / 0.7702 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/0.9905, allocations: 18.31 kB / 0.7702 GB, free: 6.602 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.9905, allocations: 0 / 0.7702 GB, free: 6.602 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001513/0.992, allocations: 1.288 MB / 0.7715 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.9944, allocations: 1.776 MB / 0.7732 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.9944, allocations: 0 / 0.7732 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/0.9947, allocations: 91.31 kB / 0.7733 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003547/0.9951, allocations: 128 kB / 0.7734 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.9951, allocations: 14.97 kB / 0.7734 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.9966, allocations: 1.983 MB / 0.7754 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9966, allocations: 1.969 kB / 0.7754 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.9986, allocations: 1.471 MB / 0.7768 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.9988, allocations: 142.8 kB / 0.7769 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.9989, allocations: 11.8 kB / 0.777 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.9992, allocations: 51.36 kB / 0.777 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.622e-05/0.9993, allocations: 51.55 kB / 0.7771 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.9994, allocations: 15.98 kB / 0.7771 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000211/0.9996, allocations: 217.3 kB / 0.7773 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/0.9996, allocations: 0 / 0.7773 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007701/1.007, allocations: 2.979 MB / 0.7802 GB, free: 13.75 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01687/1.024, allocations: 5.757 MB / 0.7858 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002097/1.026, allocations: 1.072 MB / 0.7869 GB, free: 8.113 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.026, allocations: 0 / 0.7869 GB, free: 8.113 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000835/1.027, allocations: 0.5592 MB / 0.7874 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/1.029, allocations: 316.9 kB / 0.7877 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/1.04, allocations: 6.4 MB / 0.794 GB, free: 1.684 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/1.041, allocations: 0.8683 MB / 0.7948 GB, free: 0.7891 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004278/1.041, allocations: 130.8 kB / 0.7949 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/1.042, allocations: 173 kB / 0.7951 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of SimCode: time 8.91e-07/1.042, allocations: 0 / 0.7951 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2897/1.331, allocations: 116.9 MB / 0.9092 GB, free: 216.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/1.332, allocations: 216.4 kB / 0.9094 GB, free: 216.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.451/7.782, allocations: 4 kB / 0.9094 GB, free: 216.7 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1) Environment - environmentSimulation: