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.0008787/0.0008787, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009316/0.0009317, allocations: 172.7 kB / 15.95 MB, free: 208 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.218/1.218, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04213/0.04213, allocations: 9.075 MB / 279.5 MB, free: 12.12 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.0004512/0.0004513, allocations: 12 kB / 339.2 MB, free: 25.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06865/0.06911, allocations: 49.18 MB / 388.4 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2609/0.3301, allocations: 132.5 MB / 0.5087 GB, free: 3.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.288/0.6182, allocations: 91.39 MB / 0.5979 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005136/0.6187, allocations: 8.75 kB / 0.5979 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00259/0.6213, allocations: 1.071 MB / 0.599 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.6241, allocations: 1.32 MB / 0.6002 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05186/0.676, allocations: 22.64 MB / 0.6223 GB, free: 9.949 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.6777, allocations: 1.58 MB / 0.6239 GB, free: 9.949 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.6779, allocations: 100.5 kB / 0.624 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01346/0.6914, allocations: 9.779 MB / 0.6335 GB, free: 8.707 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003924/0.6918, allocations: 362.6 kB / 0.6339 GB, free: 8.582 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.6918, allocations: 25.66 kB / 0.6339 GB, free: 8.578 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04/0.7318, allocations: 23.75 MB / 0.6571 GB, free: 14.18 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.7321, allocations: 100.7 kB / 0.6572 GB, free: 14.11 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.7324, allocations: 144 kB / 0.6573 GB, free: 14 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.7461, allocations: 6.933 MB / 0.6641 GB, free: 8.445 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.7461, allocations: 0 / 0.6641 GB, free: 8.445 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.7462, allocations: 0 / 0.6641 GB, free: 8.445 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.7462, allocations: 0 / 0.6641 GB, free: 8.445 MB / 462.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.004694/0.7509, allocations: 2.065 MB / 0.6661 GB, free: 6.418 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.7509, allocations: 8.031 kB / 0.6661 GB, free: 6.41 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.172e-05/0.751, allocations: 85.02 kB / 0.6662 GB, free: 6.344 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004432/0.7515, allocations: 86.55 kB / 0.6663 GB, free: 6.262 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.7518, allocations: 323.2 kB / 0.6666 GB, free: 5.953 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.7519, allocations: 30.16 kB / 0.6666 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.7519, allocations: 30.23 kB / 0.6667 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.753, allocations: 0.5979 MB / 0.6672 GB, free: 5.488 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.753, allocations: 0 / 0.6672 GB, free: 5.488 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.7531, allocations: 15.73 kB / 0.6673 GB, free: 5.484 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.7531, allocations: 13.81 kB / 0.6673 GB, free: 5.477 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.7542, allocations: 0.5371 MB / 0.6678 GB, free: 5.102 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.7564, allocations: 2.5 MB / 0.6702 GB, free: 2.793 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009147/0.7573, allocations: 0.5041 MB / 0.6707 GB, free: 2.469 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.7578, allocations: 346.5 kB / 0.6711 GB, free: 2.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1381/0.896, allocations: 111 MB / 0.7795 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/0.896, allocations: 38.28 kB / 0.7795 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.735e-06/0.8961, allocations: 0 / 0.7795 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005959/0.902, allocations: 2.694 MB / 0.7821 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.9021, allocations: 60.61 kB / 0.7822 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.9023, allocations: 254.6 kB / 0.7824 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.9023, allocations: 32.58 kB / 0.7825 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.9024, allocations: 188.4 kB / 0.7827 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.9026, allocations: 272.1 kB / 0.7829 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.9026, allocations: 6.5 kB / 0.7829 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.9028, allocations: 353.1 kB / 0.7833 GB, free: 388 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.9032, allocations: 298 kB / 0.7835 GB, free: 200 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1556/1.059, allocations: 410.1 kB / 0.7839 GB, free: 304.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000709/1.06, allocations: 339.1 kB / 0.7843 GB, free: 304.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/1.06, allocations: 1.656 kB / 0.7843 GB, free: 304.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001447/1.061, allocations: 0.8433 MB / 0.7851 GB, free: 304.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/1.061, allocations: 6.188 kB / 0.7851 GB, free: 304.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.061, allocations: 3 kB / 0.7851 GB, free: 304.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000823/1.062, allocations: 148.2 kB / 0.7852 GB, free: 304.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/1.063, allocations: 126.9 kB / 0.7854 GB, free: 304.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/1.064, allocations: 3.642 MB / 0.7889 GB, free: 300.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/1.064, allocations: 57.08 kB / 0.789 GB, free: 300.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/1.064, allocations: 17.92 kB / 0.789 GB, free: 300.7 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 (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002284/1.065, allocations: 186.6 kB / 0.7892 GB, free: 300.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/1.065, allocations: 42.06 kB / 0.7892 GB, free: 300.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/1.067, allocations: 1.71 MB / 0.7909 GB, free: 300.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/1.067, allocations: 15.2 kB / 0.7909 GB, free: 300.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/1.067, allocations: 3.312 kB / 0.7909 GB, free: 300.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001313/1.068, allocations: 1.268 MB / 0.7921 GB, free: 299.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/1.07, allocations: 1.75 MB / 0.7938 GB, free: 298.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/1.07, allocations: 4.5 kB / 0.7938 GB, free: 298.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003251/1.07, allocations: 79.64 kB / 0.7939 GB, free: 298.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006312/1.071, allocations: 266.9 kB / 0.7942 GB, free: 298.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/1.071, allocations: 12.94 kB / 0.7942 GB, free: 298.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007154/1.072, allocations: 1.774 MB / 0.7959 GB, free: 297.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.072, allocations: 1.031 kB / 0.7959 GB, free: 297.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/1.074, allocations: 1.491 MB / 0.7974 GB, free: 296.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.491e-05/1.074, allocations: 137.7 kB / 0.7975 GB, free: 296.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/1.074, allocations: 7.594 kB / 0.7975 GB, free: 296.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/1.074, allocations: 49.97 kB / 0.7976 GB, free: 296.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.698e-05/1.074, allocations: 41.28 kB / 0.7976 GB, free: 296.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/1.074, allocations: 22.53 kB / 0.7976 GB, free: 296.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001631/1.075, allocations: 216.4 kB / 0.7978 GB, free: 296.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.075, allocations: 0 / 0.7978 GB, free: 296.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0049/1.079, allocations: 1.978 MB / 0.7998 GB, free: 296 MB / 0.5762 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 2,1 1,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009496/1.089, allocations: 4.531 MB / 0.8042 GB, free: 294.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001595/1.091, allocations: 0.8919 MB / 0.8051 GB, free: 294.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.091, allocations: 2.188 kB / 0.8051 GB, free: 294.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006327/1.091, allocations: 436.7 kB / 0.8055 GB, free: 294 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/1.093, allocations: 330.3 kB / 0.8058 GB, free: 294 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/1.098, allocations: 3.985 MB / 0.8097 GB, free: 291.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/1.098, allocations: 0.8496 MB / 0.8105 GB, free: 291.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003253/1.098, allocations: 84.88 kB / 0.8106 GB, free: 291.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/1.099, allocations: 168 kB / 0.8107 GB, free: 291.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/1.099, allocations: 0 / 0.8107 GB, free: 291.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0915/1.19, allocations: 75.36 MB / 0.8843 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00014/1.19, allocations: 222.1 kB / 0.8846 GB, free: 219.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.1/5.29, allocations: 0 / 0.8846 GB, free: 219.1 MB / 0.5762 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/linux/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) Environment - environmentSimulation: