Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.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.R134a2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001375/0.001375, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 202 kB / 18.73 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.418/1.418, allocations: 227.7 MB / 247.2 MB, free: 10.16 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: 63.89 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2518, allocations: 50.56 MB / 409.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04079/0.2926, allocations: 37.73 MB / 446.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03501/0.3277, allocations: 30.62 MB / 477.4 MB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004944/0.3282, allocations: 11.94 kB / 477.5 MB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.3293, allocations: 397.7 kB / 477.8 MB, free: 12.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.3304, allocations: 0.5282 MB / 478.4 MB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01384/0.3443, allocations: 5.134 MB / 483.5 MB, free: 6.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.3465, allocations: 1.355 MB / 484.9 MB, free: 5.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.3469, allocations: 174.6 kB / 485 MB, free: 5.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.3479, allocations: 0.5333 MB / 485.6 MB, free: 4.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.3485, allocations: 442.2 kB / 486 MB, free: 4.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.558e-05/0.3486, allocations: 52 kB / 486 MB, free: 4.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02639/0.375, allocations: 12.81 MB / 498.9 MB, free: 7.238 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003109/0.3754, allocations: 147.6 kB / 499 MB, free: 7.094 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005619/0.376, allocations: 330.7 kB / 499.3 MB, free: 6.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04336/0.4193, allocations: 14.93 MB / 0.5022 GB, free: 7.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.4194, allocations: 0 / 0.5022 GB, free: 7.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.4194, allocations: 0 / 0.5022 GB, free: 7.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.4194, allocations: 7.938 kB / 0.5022 GB, free: 7.812 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.009672/0.4291, allocations: 1.475 MB / 0.5036 GB, free: 6.277 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.4292, allocations: 16.03 kB / 0.5037 GB, free: 6.262 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.4293, allocations: 86.52 kB / 0.5037 GB, free: 6.168 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007057/0.43, allocations: 95.56 kB / 0.5038 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006775/0.4307, allocations: 386.1 kB / 0.5042 GB, free: 5.656 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.4307, allocations: 36.98 kB / 0.5042 GB, free: 5.621 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.4308, allocations: 44 kB / 0.5043 GB, free: 5.578 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.4321, allocations: 0.6205 MB / 0.5049 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.4322, allocations: 11.89 kB / 0.5049 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.4322, allocations: 24 kB / 0.5049 GB, free: 4.875 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.4323, allocations: 15.94 kB / 0.5049 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.4333, allocations: 0.5268 MB / 0.5055 GB, free: 4.332 MB / 430.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.004246/0.4376, allocations: 3.804 MB / 0.5092 GB, free: 228 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009749/0.4385, allocations: 404.6 kB / 0.5096 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.4389, allocations: 205.5 kB / 0.5098 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003494/0.4424, allocations: 3.459 MB / 0.5131 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.4424, allocations: 38.94 kB / 0.5132 GB, free: 11.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 1.994e-06/0.4424, allocations: 0 / 0.5132 GB, free: 11.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009233/0.4517, allocations: 2.034 MB / 0.5152 GB, free: 9.297 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.4518, allocations: 67.72 kB / 0.5152 GB, free: 9.219 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/0.4521, allocations: 304.5 kB / 0.5155 GB, free: 8.918 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.4522, allocations: 37.7 kB / 0.5155 GB, free: 8.875 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.4524, allocations: 241.1 kB / 0.5158 GB, free: 8.637 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.4525, allocations: 198.3 kB / 0.516 GB, free: 8.441 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.4527, allocations: 118.3 kB / 0.5161 GB, free: 8.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4529, allocations: 346.8 kB / 0.5164 GB, free: 7.973 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.4532, allocations: 185.2 kB / 0.5166 GB, free: 7.793 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.4537, allocations: 324.1 kB / 0.5169 GB, free: 7.414 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/0.4546, allocations: 0.5562 MB / 0.5174 GB, free: 6.797 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4546, allocations: 0 / 0.5174 GB, free: 6.797 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001297/0.4559, allocations: 0.6736 MB / 0.5181 GB, free: 6.105 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4559, allocations: 11.94 kB / 0.5181 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4559, allocations: 4 kB / 0.5181 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008758/0.4647, allocations: 450.6 kB / 0.5185 GB, free: 5.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006049/0.4653, allocations: 139.8 kB / 0.5187 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.4678, allocations: 3.101 MB / 0.5217 GB, free: 2.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/0.4681, allocations: 12 kB / 0.5217 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.4682, allocations: 32 kB / 0.5217 GB, free: 2.145 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,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 (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 1 system {1} * 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): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002804/0.4685, allocations: 189.8 kB / 0.5219 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.4686, allocations: 47.72 kB / 0.522 GB, free: 1.902 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.4704, allocations: 1.056 MB / 0.523 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.4704, allocations: 11.98 kB / 0.523 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.4704, allocations: 3.938 kB / 0.523 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001288/0.4717, allocations: 1.083 MB / 0.5241 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.474, allocations: 1.741 MB / 0.5258 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.474, allocations: 7.938 kB / 0.5258 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.4745, allocations: 99.88 kB / 0.5259 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002918/0.4774, allocations: 345.1 kB / 0.5262 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.606e-05/0.4775, allocations: 23.92 kB / 0.5262 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008462/0.4783, allocations: 1.144 MB / 0.5273 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4783, allocations: 0 / 0.5273 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.48, allocations: 1.129 MB / 0.5284 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.4802, allocations: 124.9 kB / 0.5286 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.4803, allocations: 27.94 kB / 0.5286 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.4805, allocations: 4 kB / 0.5286 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.4806, allocations: 40.52 kB / 0.5286 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.4806, allocations: 19.98 kB / 0.5287 GB, free: 10.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003358/0.481, allocations: 247 kB / 0.5289 GB, free: 10.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.481, allocations: 0 / 0.5289 GB, free: 10.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005808/0.4868, allocations: 0.9818 MB / 0.5298 GB, free: 9.574 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.03232/0.5191, allocations: 9.448 MB / 0.5391 GB, free: 80 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1919/0.711, allocations: 0.7267 MB / 0.5398 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.7111, allocations: 0.5312 kB / 0.5398 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006791/0.7118, allocations: 368 kB / 0.5401 GB, free: 121.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.7132, allocations: 256.6 kB / 0.5404 GB, free: 121.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.7243, allocations: 5.339 MB / 0.5456 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.7246, allocations: 0.8694 MB / 0.5464 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005162/0.7252, allocations: 244.2 kB / 0.5467 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.7254, allocations: 201.4 kB / 0.5469 GB, free: 117.6 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.7254, allocations: 0 / 0.5469 GB, free: 117.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06319/0.7886, allocations: 42.3 MB / 0.5882 GB, free: 80.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.67, allocations: 12.64 kB / 0.5882 GB, free: 80.45 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2_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_R134a2.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1)