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.0006381/0.0006381, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004394/0.004394, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.219/1.219, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04386/0.04386, allocations: 9.067 MB / 279.8 MB, free: 12.15 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.0004631/0.0004631, allocations: 19.98 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07007/0.07054, allocations: 49.18 MB / 389 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2638/0.3343, allocations: 142.3 MB / 0.5188 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2738/0.6082, allocations: 98.11 MB / 0.6147 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004723/0.6087, allocations: 5.875 kB / 0.6147 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.6112, allocations: 1.168 MB / 0.6158 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002791/0.614, allocations: 1.466 MB / 0.6172 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05674/0.6708, allocations: 25.16 MB / 0.6418 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.6725, allocations: 1.832 MB / 0.6436 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.6727, allocations: 95.52 kB / 0.6437 GB, free: 156 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01314/0.6858, allocations: 9.407 MB / 0.6529 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.6863, allocations: 377.8 kB / 0.6532 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.6863, allocations: 21.97 kB / 0.6533 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04037/0.7267, allocations: 26.56 MB / 0.6792 GB, free: 14.02 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.727, allocations: 96.31 kB / 0.6793 GB, free: 13.97 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005154/0.7275, allocations: 309.4 kB / 0.6796 GB, free: 13.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02722/0.7547, allocations: 11.47 MB / 0.6908 GB, free: 4.961 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.7548, allocations: 0 / 0.6908 GB, free: 4.961 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.7548, allocations: 0 / 0.6908 GB, free: 4.961 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.7548, allocations: 0 / 0.6908 GB, free: 4.961 MB / 478.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.004566/0.7593, allocations: 2.059 MB / 0.6928 GB, free: 2.941 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.7594, allocations: 12.03 kB / 0.6928 GB, free: 2.93 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.08e-05/0.7595, allocations: 89.77 kB / 0.6929 GB, free: 2.859 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004816/0.76, allocations: 83.3 kB / 0.693 GB, free: 2.777 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.7603, allocations: 324.9 kB / 0.6933 GB, free: 2.469 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.7604, allocations: 35.5 kB / 0.6933 GB, free: 2.453 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.7605, allocations: 32.19 kB / 0.6933 GB, free: 2.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.7616, allocations: 0.5933 MB / 0.6939 GB, free: 2.004 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.7616, allocations: 3.938 kB / 0.6939 GB, free: 2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.7616, allocations: 15.31 kB / 0.6939 GB, free: 1.996 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.7617, allocations: 26.22 kB / 0.694 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.7628, allocations: 0.5341 MB / 0.6945 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.765, allocations: 2.499 MB / 0.6969 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009774/0.766, allocations: 0.5108 MB / 0.6974 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/0.7666, allocations: 342.2 kB / 0.6977 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2954/1.062, allocations: 111 MB / 0.8061 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/1.062, allocations: 37.72 kB / 0.8062 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.337e-06/1.062, allocations: 3.969 kB / 0.8062 GB, free: 289.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005981/1.068, allocations: 2.71 MB / 0.8088 GB, free: 289.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/1.068, allocations: 55.88 kB / 0.8089 GB, free: 289.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/1.068, allocations: 267.6 kB / 0.8091 GB, free: 289 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/1.068, allocations: 35.61 kB / 0.8092 GB, free: 289 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/1.068, allocations: 181.4 kB / 0.8093 GB, free: 288.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/1.069, allocations: 271.8 kB / 0.8096 GB, free: 288.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.56e-05/1.069, allocations: 62.88 kB / 0.8097 GB, free: 288.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.256e-05/1.069, allocations: 349.6 kB / 0.81 GB, free: 288.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/1.069, allocations: 295.4 kB / 0.8103 GB, free: 288.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004956/1.07, allocations: 420.8 kB / 0.8107 GB, free: 288 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/1.071, allocations: 0.7252 MB / 0.8114 GB, free: 287.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.071, allocations: 3.922 kB / 0.8114 GB, free: 287.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001353/1.072, allocations: 0.8451 MB / 0.8122 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/1.072, allocations: 9.719 kB / 0.8122 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/1.072, allocations: 3.062 kB / 0.8122 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007356/1.073, allocations: 162.8 kB / 0.8124 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005573/1.074, allocations: 124.6 kB / 0.8125 GB, free: 287.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/1.075, allocations: 3.642 MB / 0.8161 GB, free: 283.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/1.075, allocations: 50.2 kB / 0.8161 GB, free: 283.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/1.075, allocations: 18.72 kB / 0.8161 GB, free: 283.5 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.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 (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000175/1.075, allocations: 193.1 kB / 0.8163 GB, free: 283.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.817e-05/1.076, allocations: 44.34 kB / 0.8164 GB, free: 283.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/1.077, allocations: 1.704 MB / 0.818 GB, free: 282.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/1.077, allocations: 8.719 kB / 0.818 GB, free: 282.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/1.077, allocations: 1.875 kB / 0.818 GB, free: 282.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001286/1.079, allocations: 1.277 MB / 0.8193 GB, free: 281.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/1.081, allocations: 1.755 MB / 0.821 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/1.081, allocations: 1.375 kB / 0.821 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/1.081, allocations: 80.98 kB / 0.8211 GB, free: 280.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006149/1.082, allocations: 265.3 kB / 0.8213 GB, free: 280.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/1.082, allocations: 15.05 kB / 0.8213 GB, free: 280.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006426/1.082, allocations: 1.78 MB / 0.8231 GB, free: 278.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.082, allocations: 0 / 0.8231 GB, free: 278.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/1.084, allocations: 1.496 MB / 0.8245 GB, free: 278.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.855e-05/1.084, allocations: 140 kB / 0.8247 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.95e-05/1.084, allocations: 8 kB / 0.8247 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/1.085, allocations: 50.56 kB / 0.8247 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/1.085, allocations: 34.73 kB / 0.8248 GB, free: 278 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/1.085, allocations: 21.94 kB / 0.8248 GB, free: 278 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001553/1.085, allocations: 220.1 kB / 0.825 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/1.085, allocations: 0 / 0.825 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003874/1.089, allocations: 1.972 MB / 0.8269 GB, free: 277.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007803/1.097, allocations: 4.538 MB / 0.8313 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001508/1.098, allocations: 0.8968 MB / 0.8322 GB, free: 275.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/1.098, allocations: 0 / 0.8322 GB, free: 275.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006401/1.099, allocations: 441.6 kB / 0.8326 GB, free: 275.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/1.101, allocations: 380.3 kB / 0.833 GB, free: 275.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006883/1.108, allocations: 6.033 MB / 0.8389 GB, free: 269.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/1.108, allocations: 0.8422 MB / 0.8397 GB, free: 269 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003295/1.108, allocations: 91.64 kB / 0.8398 GB, free: 269 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/1.108, allocations: 167.4 kB / 0.84 GB, free: 268.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/1.108, allocations: 0 / 0.84 GB, free: 268.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08727/1.196, allocations: 76.92 MB / 0.9151 GB, free: 192 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001241/1.196, allocations: 250.9 kB / 0.9153 GB, free: 191.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.284/5.479, allocations: 0 / 0.9153 GB, free: 191.7 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/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)