Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_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.0009375/0.0009375, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002492, allocations: 4 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 51.48 MB / 358.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2295/0.3448, allocations: 31.71 MB / 389.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03033/0.3752, allocations: 25.59 MB / 415.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008317/0.3761, allocations: 10.47 kB / 415.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.3773, allocations: 341 kB / 415.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.3784, allocations: 362 kB / 416.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01569/0.3941, allocations: 3.975 MB / 420.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001718/0.3958, allocations: 0.7563 MB / 420.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.3961, allocations: 133.8 kB / 421 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006633/0.3968, allocations: 398.8 kB / 421.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003829/0.3972, allocations: 270.9 kB / 421.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.3972, allocations: 24 kB / 421.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07699/0.4742, allocations: 69.18 MB / 490.9 MB, free: 5.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.4746, allocations: 115.6 kB / 491 MB, free: 5.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003176/0.4749, allocations: 145.5 kB / 491.2 MB, free: 5.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03497/0.5099, allocations: 13.83 MB / 0.4932 GB, free: 7.535 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.5099, allocations: 0 / 0.4932 GB, free: 7.535 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.51, allocations: 0 / 0.4932 GB, free: 7.535 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.51, allocations: 0 / 0.4932 GB, free: 7.535 MB / 414.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.007745/0.5177, allocations: 1.318 MB / 0.4944 GB, free: 6.168 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5178, allocations: 16.03 kB / 0.4945 GB, free: 6.152 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.952e-05/0.5179, allocations: 86.52 kB / 0.4945 GB, free: 6.059 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006537/0.5185, allocations: 91.39 kB / 0.4946 GB, free: 5.969 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.519, allocations: 370.1 kB / 0.495 GB, free: 5.566 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.5191, allocations: 36.95 kB / 0.495 GB, free: 5.527 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.611e-05/0.5191, allocations: 48 kB / 0.4951 GB, free: 5.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.5202, allocations: 0.6127 MB / 0.4957 GB, free: 4.824 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.5202, allocations: 3.938 kB / 0.4957 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.793e-05/0.5203, allocations: 24 kB / 0.4957 GB, free: 4.797 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.5203, allocations: 12 kB / 0.4957 GB, free: 4.785 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009112/0.5212, allocations: 0.5268 MB / 0.4962 GB, free: 4.258 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.004243/0.5255, allocations: 3.807 MB / 0.4999 GB, free: 148 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/0.5263, allocations: 411.8 kB / 0.5003 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003328/0.5296, allocations: 3.56 MB / 0.5038 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.5297, allocations: 38.94 kB / 0.5038 GB, free: 11.43 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 1.893e-06/0.5297, allocations: 0 / 0.5038 GB, free: 11.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009185/0.5389, allocations: 2.047 MB / 0.5058 GB, free: 9.297 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.539, allocations: 59.84 kB / 0.5059 GB, free: 9.227 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/0.5394, allocations: 300.5 kB / 0.5062 GB, free: 8.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.5394, allocations: 37.64 kB / 0.5062 GB, free: 8.887 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.5396, allocations: 236.6 kB / 0.5064 GB, free: 8.648 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.5397, allocations: 189.3 kB / 0.5066 GB, free: 8.461 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.5397, allocations: 8 kB / 0.5066 GB, free: 8.453 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.5399, allocations: 358.8 kB / 0.507 GB, free: 8.094 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.5402, allocations: 177.2 kB / 0.5071 GB, free: 7.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.5405, allocations: 316.1 kB / 0.5074 GB, free: 7.555 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.5409, allocations: 234 kB / 0.5077 GB, free: 7.324 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.5409, allocations: 7.953 kB / 0.5077 GB, free: 7.316 MB / 430.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001243/0.5421, allocations: 0.6656 MB / 0.5083 GB, free: 6.637 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.5422, allocations: 8.562 kB / 0.5083 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5422, allocations: 8 kB / 0.5083 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008776/0.551, allocations: 453.9 kB / 0.5088 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006396/0.5516, allocations: 143.8 kB / 0.5089 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002069/0.5537, allocations: 2.996 MB / 0.5118 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.5542, allocations: 44.28 kB / 0.5119 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.5543, allocations: 31.95 kB / 0.5119 GB, free: 2.754 MB / 430.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.0003014/0.5546, allocations: 201.3 kB / 0.5121 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/0.5547, allocations: 43.53 kB / 0.5121 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.5563, allocations: 1.052 MB / 0.5132 GB, free: 1.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.5563, allocations: 11.98 kB / 0.5132 GB, free: 1.418 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5563, allocations: 4.812 kB / 0.5132 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00112/0.5574, allocations: 1.087 MB / 0.5142 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.5595, allocations: 1.738 MB / 0.5159 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.5596, allocations: 0 / 0.5159 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.56, allocations: 99.83 kB / 0.516 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002966/0.5629, allocations: 357 kB / 0.5164 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.977e-05/0.563, allocations: 28.05 kB / 0.5164 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006257/0.5636, allocations: 1.144 MB / 0.5175 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.5636, allocations: 4.031 kB / 0.5175 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.565, allocations: 1.128 MB / 0.5186 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.5652, allocations: 144.3 kB / 0.5188 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.2e-05/0.5653, allocations: 12 kB / 0.5188 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.5656, allocations: 31.92 kB / 0.5188 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.5657, allocations: 32.52 kB / 0.5188 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.075e-05/0.5657, allocations: 23.98 kB / 0.5189 GB, free: 11.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.566, allocations: 247 kB / 0.5191 GB, free: 11.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.566, allocations: 0 / 0.5191 GB, free: 11.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00633/0.5723, allocations: 0.9644 MB / 0.52 GB, free: 10.17 MB / 446.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.04601/0.6184, allocations: 9.439 MB / 0.5293 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2398/0.8582, allocations: 0.6851 MB / 0.5299 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.8583, allocations: 1.5 kB / 0.5299 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009636/0.8593, allocations: 362.4 kB / 0.5303 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.8608, allocations: 244.9 kB / 0.5305 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.8714, allocations: 6.505 MB / 0.5369 GB, free: 94.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005557/0.872, allocations: 0.8769 MB / 0.5377 GB, free: 93.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008921/0.8729, allocations: 237.3 kB / 0.5379 GB, free: 93.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.8732, allocations: 200.6 kB / 0.5381 GB, free: 93.85 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.8732, allocations: 0.6562 kB / 0.5381 GB, free: 93.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0976/0.9708, allocations: 40.74 MB / 0.5779 GB, free: 68.54 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001251/0.971, allocations: 191.3 kB / 0.5781 GB, free: 68.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.741/4.712, allocations: 0 / 0.5781 GB, free: 68.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat