Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.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) 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(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2",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.001307/0.001307, allocations: 95.52 kB / 16.94 MB, free: 6.441 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.001713/0.001713, allocations: 189.2 kB / 17.83 MB, free: 6.008 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.563/1.563, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.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.0005381/0.0005385, allocations: 19.44 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03916/0.1581, allocations: 31.69 MB / 360.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2565/0.4146, allocations: 25.57 MB / 385.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006777/0.4154, allocations: 8.094 kB / 385.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.4167, allocations: 342 kB / 386 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.4179, allocations: 360.9 kB / 386.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01533/0.4332, allocations: 3.97 MB / 390.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.435, allocations: 0.7621 MB / 391.1 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003224/0.4354, allocations: 117.5 kB / 391.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000787/0.4362, allocations: 393.6 kB / 391.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.4365, allocations: 284.6 kB / 391.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.929e-05/0.4366, allocations: 24.62 kB / 391.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08412/0.5207, allocations: 69.17 MB / 461.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004062/0.5212, allocations: 116.5 kB / 461.2 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004853/0.5217, allocations: 140.7 kB / 461.3 MB, free: 4.125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0405/0.5622, allocations: 13.83 MB / 475.1 MB, free: 6.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.5623, allocations: 0 / 475.1 MB, free: 6.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.551e-06/0.5623, allocations: 4 kB / 475.1 MB, free: 6.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.5623, allocations: 0 / 475.1 MB, free: 6.898 MB / 382.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.009203/0.5715, allocations: 1.311 MB / 476.5 MB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.5716, allocations: 12.03 kB / 476.5 MB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.5717, allocations: 89.52 kB / 476.6 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007226/0.5724, allocations: 92.5 kB / 476.6 MB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005658/0.573, allocations: 384.3 kB / 477 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.5731, allocations: 33.06 kB / 477.1 MB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.5731, allocations: 48.44 kB / 477.1 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.5743, allocations: 0.6136 MB / 477.7 MB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.5743, allocations: 0 / 477.7 MB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.5744, allocations: 23.38 kB / 477.7 MB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.5744, allocations: 12 kB / 477.8 MB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009598/0.5753, allocations: 0.5267 MB / 478.3 MB, free: 4.215 MB / 382.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.004363/0.5797, allocations: 3.816 MB / 482.1 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.5805, allocations: 413.2 kB / 482.5 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003372/0.5839, allocations: 3.555 MB / 486.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.584, allocations: 37.69 kB / 486.1 MB, free: 12.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=46): time 2.284e-06/0.584, allocations: 4 kB / 486.1 MB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.008896/0.5929, allocations: 2.039 MB / 488.1 MB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.593, allocations: 60.77 kB / 488.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/0.5933, allocations: 307.1 kB / 488.5 MB, free: 10.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.5933, allocations: 32.95 kB / 488.5 MB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.5935, allocations: 239 kB / 488.8 MB, free: 9.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.5936, allocations: 189.5 kB / 488.9 MB, free: 9.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.461e-05/0.5937, allocations: 10.75 kB / 489 MB, free: 9.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5938, allocations: 351.9 kB / 489.3 MB, free: 9.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.5941, allocations: 181.1 kB / 489.5 MB, free: 9.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.5945, allocations: 328.9 kB / 489.8 MB, free: 9.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.5949, allocations: 230.5 kB / 490 MB, free: 8.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5949, allocations: 4 kB / 490 MB, free: 8.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001144/0.5961, allocations: 0.6666 MB / 490.7 MB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.5961, allocations: 8 kB / 490.7 MB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.5961, allocations: 7.5 kB / 490.7 MB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008659/0.6048, allocations: 454.9 kB / 491.2 MB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.6054, allocations: 138.8 kB / 491.3 MB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.6074, allocations: 3.001 MB / 494.3 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.6079, allocations: 49.2 kB / 494.3 MB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.608, allocations: 29.23 kB / 494.4 MB, free: 4.812 MB / 398.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002802/0.6082, allocations: 188.5 kB / 494.5 MB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.6083, allocations: 43.53 kB / 494.6 MB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.6098, allocations: 1.06 MB / 495.7 MB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.6098, allocations: 12 kB / 495.7 MB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.6099, allocations: 0 / 495.7 MB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001119/0.611, allocations: 1.098 MB / 496.8 MB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.6132, allocations: 1.727 MB / 498.5 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6132, allocations: 0 / 498.5 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003715/0.6136, allocations: 108.2 kB / 498.6 MB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002916/0.6165, allocations: 356.2 kB / 498.9 MB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.6166, allocations: 18.83 kB / 499 MB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006543/0.6172, allocations: 1.141 MB / 0.4884 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6172, allocations: 0 / 0.4884 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.6186, allocations: 1.136 MB / 0.4895 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.6188, allocations: 134.8 kB / 0.4896 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/0.6189, allocations: 20.5 kB / 0.4896 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.6192, allocations: 30.33 kB / 0.4897 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.07e-05/0.6193, allocations: 31.77 kB / 0.4897 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.6193, allocations: 26.8 kB / 0.4897 GB, free: 15.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002985/0.6196, allocations: 248.2 kB / 0.49 GB, free: 15.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6196, allocations: 0 / 0.49 GB, free: 15.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007165/0.6268, allocations: 0.9585 MB / 0.4909 GB, free: 14.21 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04899/0.6758, allocations: 9.419 MB / 0.5001 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.6776, allocations: 0.6963 MB / 0.5008 GB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6776, allocations: 1.125 kB / 0.5008 GB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.6783, allocations: 364.7 kB / 0.5011 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.6798, allocations: 261.6 kB / 0.5014 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/0.6914, allocations: 6.504 MB / 0.5077 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.6919, allocations: 0.8725 MB / 0.5086 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000633/0.6926, allocations: 243 kB / 0.5088 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.6928, allocations: 200.9 kB / 0.509 GB, free: 13.19 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6929, allocations: 3.938 kB / 0.509 GB, free: 13.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2439/0.9367, allocations: 40.64 MB / 0.5487 GB, free: 160.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.937, allocations: 200.7 kB / 0.5489 GB, free: 160.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.549/4.486, allocations: 5.125 kB / 0.5489 GB, free: 160.6 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat