Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001926/0.001926, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.419/1.419, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 59.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2412, allocations: 50.54 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.03047/0.2717, allocations: 26.69 MB / 435.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02855/0.3003, allocations: 24.87 MB / 460.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004165/0.3007, allocations: 11.88 kB / 460.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008594/0.3017, allocations: 294.3 kB / 460.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007891/0.3025, allocations: 369.9 kB / 461.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01122/0.3137, allocations: 4.014 MB / 465.3 MB, free: 8.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.3151, allocations: 0.9425 MB / 466.3 MB, free: 8.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.3153, allocations: 105 kB / 466.4 MB, free: 7.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006303/0.3159, allocations: 402.6 kB / 466.7 MB, free: 7.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003906/0.3163, allocations: 294.8 kB / 467 MB, free: 7.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.895e-05/0.3164, allocations: 40 kB / 467.1 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01994/0.3364, allocations: 10.43 MB / 477.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.3366, allocations: 103.7 kB / 477.6 MB, free: 12.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003753/0.337, allocations: 223.2 kB / 477.8 MB, free: 12.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03205/0.3691, allocations: 11.51 MB / 489.3 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3691, allocations: 0 / 489.3 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3691, allocations: 0 / 489.3 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3691, allocations: 8 kB / 489.3 MB, free: 0.8906 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.006171/0.3753, allocations: 1.173 MB / 490.5 MB, free: 15.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3754, allocations: 11.97 kB / 490.5 MB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.775e-05/0.3755, allocations: 70.53 kB / 490.6 MB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005427/0.376, allocations: 71.73 kB / 490.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005105/0.3765, allocations: 326.4 kB / 491 MB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.3766, allocations: 32.58 kB / 491 MB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.3767, allocations: 35.94 kB / 491 MB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008814/0.3775, allocations: 459.8 kB / 491.5 MB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.3776, allocations: 11.94 kB / 491.5 MB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.3776, allocations: 12 kB / 491.5 MB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.3776, allocations: 8 kB / 491.5 MB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007433/0.3784, allocations: 386.3 kB / 491.9 MB, free: 14.18 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.382, allocations: 2.945 MB / 494.8 MB, free: 11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000683/0.3827, allocations: 286.8 kB / 495.1 MB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.3829, allocations: 136.8 kB / 495.3 MB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002689/0.3856, allocations: 2.466 MB / 497.7 MB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.3856, allocations: 38.56 kB / 497.8 MB, free: 7.562 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.275e-06/0.3857, allocations: 0 / 497.8 MB, free: 7.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.005168/0.3908, allocations: 1.309 MB / 499.1 MB, free: 6.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.3909, allocations: 59.34 kB / 499.1 MB, free: 6.105 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3912, allocations: 262.6 kB / 499.4 MB, free: 5.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.3912, allocations: 29.7 kB / 499.4 MB, free: 5.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.3914, allocations: 192.4 kB / 499.6 MB, free: 5.613 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3915, allocations: 126.9 kB / 499.7 MB, free: 5.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.3916, allocations: 86.06 kB / 499.8 MB, free: 5.398 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3918, allocations: 338.8 kB / 0.4884 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.392, allocations: 116.8 kB / 0.4885 GB, free: 4.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.3923, allocations: 226.1 kB / 0.4887 GB, free: 4.676 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005335/0.3929, allocations: 369.5 kB / 0.4891 GB, free: 4.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3929, allocations: 4 kB / 0.4891 GB, free: 4.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008314/0.3937, allocations: 462.7 kB / 0.4895 GB, free: 3.797 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.3937, allocations: 7.984 kB / 0.4896 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3937, allocations: 4.438 kB / 0.4896 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004334/0.3981, allocations: 241.4 kB / 0.4898 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003622/0.3985, allocations: 87.89 kB / 0.4899 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.4002, allocations: 1.94 MB / 0.4918 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.4004, allocations: 8 kB / 0.4918 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.4005, allocations: 24.19 kB / 0.4918 GB, free: 1.32 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.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): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002312/0.4007, allocations: 165.7 kB / 0.492 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.7e-05/0.4008, allocations: 35.75 kB / 0.492 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.4019, allocations: 0.6854 MB / 0.4927 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.4019, allocations: 8 kB / 0.4927 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.402, allocations: 0 / 0.4927 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009253/0.4029, allocations: 0.8671 MB / 0.4935 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.4045, allocations: 1.191 MB / 0.4947 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4045, allocations: 7.938 kB / 0.4947 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.4048, allocations: 63.97 kB / 0.4947 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001485/0.4063, allocations: 180.6 kB / 0.4949 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.4063, allocations: 4 kB / 0.4949 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004168/0.4067, allocations: 0.5796 MB / 0.4955 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4067, allocations: 3.938 kB / 0.4955 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.4077, allocations: 0.7345 MB / 0.4962 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.985e-05/0.4078, allocations: 112.8 kB / 0.4963 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.655e-05/0.4079, allocations: 8 kB / 0.4963 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.4081, allocations: 4 kB / 0.4963 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.341e-05/0.4082, allocations: 27.91 kB / 0.4964 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.4082, allocations: 19.98 kB / 0.4964 GB, free: 12.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.4084, allocations: 217.9 kB / 0.4966 GB, free: 12.19 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4084, allocations: 0 / 0.4966 GB, free: 12.19 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003899/0.4123, allocations: 0.7559 MB / 0.4973 GB, free: 11.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02541/0.4378, allocations: 7.592 MB / 0.5047 GB, free: 3.797 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4389, allocations: 473.8 kB / 0.5052 GB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4389, allocations: 0 / 0.5052 GB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004136/0.4393, allocations: 224.2 kB / 0.5054 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.4405, allocations: 195.9 kB / 0.5056 GB, free: 2.914 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0085/0.449, allocations: 4.047 MB / 0.5095 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.4495, allocations: 0.8129 MB / 0.5103 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004538/0.45, allocations: 191.6 kB / 0.5105 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.4502, allocations: 135.4 kB / 0.5106 GB, free: 13.52 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4502, allocations: 0 / 0.5106 GB, free: 13.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2676/0.7178, allocations: 33.8 MB / 0.5437 GB, free: 122.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/13.95, allocations: 6.906 kB / 0.5437 GB, free: 122.8 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_4_1_0-beta_om_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1)