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.0009646/0.0009647, allocations: 99.86 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.001013/0.001013, 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.535/1.535, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04349/0.04349, allocations: 9.058 MB / 279.4 MB, free: 12.27 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.0005265/0.0005265, allocations: 19.98 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09385, allocations: 49.18 MB / 388.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2996/0.3935, allocations: 117.8 MB / 0.4943 GB, free: 1.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.07028/0.4639, allocations: 77.43 MB / 0.5699 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006153/0.4645, allocations: 4 kB / 0.5699 GB, free: 3.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.4674, allocations: 1.129 MB / 0.571 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003011/0.4704, allocations: 1.289 MB / 0.5722 GB, free: 1.344 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2745/0.745, allocations: 22.63 MB / 0.5944 GB, free: 16.72 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001417/0.7464, allocations: 0.7941 MB / 0.5951 GB, free: 16.72 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.7466, allocations: 93.44 kB / 0.5952 GB, free: 16.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01792/0.7646, allocations: 9.81 MB / 0.6048 GB, free: 16.54 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.765, allocations: 268.1 kB / 0.6051 GB, free: 16.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.765, allocations: 19.03 kB / 0.6051 GB, free: 16.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03734/0.8024, allocations: 22.49 MB / 0.627 GB, free: 16.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002393/0.8027, allocations: 90.23 kB / 0.6271 GB, free: 16.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.803, allocations: 142.9 kB / 0.6273 GB, free: 16.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.8147, allocations: 5.489 MB / 0.6326 GB, free: 15.24 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.8147, allocations: 0 / 0.6326 GB, free: 15.24 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.8147, allocations: 0 / 0.6326 GB, free: 15.24 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.8147, allocations: 4 kB / 0.6326 GB, free: 15.23 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.004378/0.8191, allocations: 1.715 MB / 0.6343 GB, free: 14.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.8192, allocations: 11.3 kB / 0.6343 GB, free: 14.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.213e-05/0.8193, allocations: 85.14 kB / 0.6344 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005074/0.8198, allocations: 83.08 kB / 0.6345 GB, free: 14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.8201, allocations: 325.8 kB / 0.6348 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.8202, allocations: 30.44 kB / 0.6348 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.8202, allocations: 36.69 kB / 0.6348 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009977/0.8212, allocations: 0.5936 MB / 0.6354 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.8213, allocations: 3.188 kB / 0.6354 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.8213, allocations: 13.59 kB / 0.6354 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.8213, allocations: 15.19 kB / 0.6355 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.8224, allocations: 0.5345 MB / 0.636 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.8242, allocations: 2.498 MB / 0.6384 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008814/0.8251, allocations: 0.5061 MB / 0.6389 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1502/0.9753, allocations: 111.4 MB / 0.7477 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.9754, allocations: 33.94 kB / 0.7477 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 2.565e-06/0.9754, allocations: 4 kB / 0.7477 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83): time 0.00597/0.9814, allocations: 3.002 MB / 0.7506 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.9815, allocations: 55.41 kB / 0.7507 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.9817, allocations: 258.8 kB / 0.7509 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.9817, allocations: 35.52 kB / 0.751 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.458e-05/0.9818, allocations: 186 kB / 0.7511 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.982, allocations: 269.5 kB / 0.7514 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.982, allocations: 7.562 kB / 0.7514 GB, free: 9.863 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.9821, allocations: 355.8 kB / 0.7517 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/0.9826, allocations: 286.4 kB / 0.752 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.9831, allocations: 411.2 kB / 0.7524 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.9837, allocations: 340.4 kB / 0.7527 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.9837, allocations: 10.44 kB / 0.7527 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001336/0.985, allocations: 0.8269 MB / 0.7535 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.985, allocations: 4 kB / 0.7536 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.9851, allocations: 4.875 kB / 0.7536 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007606/0.9858, allocations: 152.5 kB / 0.7537 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005747/0.9864, allocations: 128.9 kB / 0.7538 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.9883, allocations: 3.655 MB / 0.7574 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.9887, allocations: 50.5 kB / 0.7574 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.9888, allocations: 25.61 kB / 0.7575 GB, free: 4.188 MB / 0.5606 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.0002296/0.989, allocations: 185.4 kB / 0.7576 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.9891, allocations: 47.48 kB / 0.7577 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.991, allocations: 1.703 MB / 0.7594 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/0.991, allocations: 17.66 kB / 0.7594 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.9911, allocations: 0 / 0.7594 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001357/0.9924, allocations: 1.27 MB / 0.7606 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.9946, allocations: 1.752 MB / 0.7623 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.9946, allocations: 4 kB / 0.7623 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.9949, allocations: 75.45 kB / 0.7624 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006707/0.9956, allocations: 266.4 kB / 0.7627 GB, free: 232 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.9956, allocations: 13.17 kB / 0.7627 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000964/0.9966, allocations: 1.774 MB / 0.7644 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.9966, allocations: 0 / 0.7644 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.9986, allocations: 1.506 MB / 0.7659 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.9987, allocations: 136.7 kB / 0.766 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.9988, allocations: 12.64 kB / 0.766 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.9992, allocations: 49.25 kB / 0.7661 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/0.9993, allocations: 46.09 kB / 0.7661 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.9993, allocations: 22.48 kB / 0.7661 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000207/0.9995, allocations: 215.8 kB / 0.7663 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9995, allocations: 0 / 0.7663 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005319/1.005, allocations: 1.966 MB / 0.7682 GB, free: 11.14 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.01272/1.018, allocations: 4.614 MB / 0.7728 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001886/1.02, allocations: 0.9016 MB / 0.7736 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/1.02, allocations: 0 / 0.7736 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007002/1.02, allocations: 439.5 kB / 0.7741 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/1.022, allocations: 319.2 kB / 0.7744 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009396/1.031, allocations: 5.941 MB / 0.7802 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1509/1.182, allocations: 0.8533 MB / 0.781 GB, free: 301.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005039/1.183, allocations: 86.23 kB / 0.7811 GB, free: 301.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/1.183, allocations: 166.5 kB / 0.7812 GB, free: 301.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.263e-06/1.183, allocations: 0 / 0.7812 GB, free: 301.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/1.288, allocations: 75.33 MB / 0.8548 GB, free: 244.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.288, allocations: 220.7 kB / 0.855 GB, free: 244.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.34/5.628, allocations: 4 kB / 0.855 GB, free: 244.2 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: