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.0007681/0.0007681, allocations: 93.75 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008322/0.0008323, allocations: 193.6 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.3 MB / 246 MB, free: 10.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002375/0.0002375, allocations: 7.984 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1077, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2314/0.3392, allocations: 34.78 MB / 393.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.3698, allocations: 28.15 MB / 421.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006972/0.3705, allocations: 11.25 kB / 421.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.3717, allocations: 314.7 kB / 421.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.3728, allocations: 497.6 kB / 422 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01501/0.3878, allocations: 3.836 MB / 425.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002111/0.3899, allocations: 1.695 MB / 427.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.3902, allocations: 126.6 kB / 427.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007759/0.391, allocations: 474.2 kB / 428.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.3915, allocations: 426.3 kB / 428.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.3916, allocations: 24 kB / 428.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07029/0.4619, allocations: 51.75 MB / 480.3 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000338/0.4623, allocations: 123.5 kB / 480.5 MB, free: 440 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003293/0.4626, allocations: 137.5 kB / 480.6 MB, free: 296 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03242/0.495, allocations: 13.88 MB / 494.5 MB, free: 2.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.4951, allocations: 4 kB / 494.5 MB, free: 2.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4951, allocations: 0 / 494.5 MB, free: 2.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.4951, allocations: 0 / 494.5 MB, free: 2.391 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.008619/0.5037, allocations: 1.318 MB / 495.8 MB, free: 1.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.5038, allocations: 8.031 kB / 495.8 MB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.5039, allocations: 86.52 kB / 495.9 MB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006433/0.5046, allocations: 95.33 kB / 496 MB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.5051, allocations: 374.1 kB / 496.4 MB, free: 436 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.5051, allocations: 40.95 kB / 496.4 MB, free: 392 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.015e-05/0.5052, allocations: 48 kB / 496.4 MB, free: 344 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.5064, allocations: 0.6088 MB / 497.1 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.5064, allocations: 7.938 kB / 497.1 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.5064, allocations: 27.98 kB / 497.1 MB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.5065, allocations: 12 kB / 497.1 MB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009624/0.5074, allocations: 0.5268 MB / 497.6 MB, free: 15.11 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.004239/0.5117, allocations: 3.803 MB / 0.4897 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009543/0.5127, allocations: 415.5 kB / 0.4901 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.513, allocations: 206.8 kB / 0.4903 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003232/0.5162, allocations: 3.541 MB / 0.4937 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/0.5163, allocations: 42.88 kB / 0.4938 GB, free: 6.094 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.996e-06/0.5163, allocations: 4 kB / 0.4938 GB, free: 6.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.008958/0.5253, allocations: 2.052 MB / 0.4958 GB, free: 3.953 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.5253, allocations: 55.84 kB / 0.4958 GB, free: 3.887 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.5257, allocations: 300.5 kB / 0.4961 GB, free: 3.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.785e-05/0.5258, allocations: 37.7 kB / 0.4962 GB, free: 3.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.5259, allocations: 224.6 kB / 0.4964 GB, free: 3.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.5261, allocations: 197.3 kB / 0.4966 GB, free: 3.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.5262, allocations: 12 kB / 0.4966 GB, free: 3.113 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5264, allocations: 346.8 kB / 0.4969 GB, free: 2.766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.5267, allocations: 181.2 kB / 0.4971 GB, free: 2.586 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/0.5271, allocations: 320.1 kB / 0.4974 GB, free: 2.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.5274, allocations: 232.7 kB / 0.4976 GB, free: 1.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5274, allocations: 7.938 kB / 0.4976 GB, free: 1.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001196/0.5286, allocations: 0.6737 MB / 0.4983 GB, free: 1.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.5287, allocations: 8 kB / 0.4983 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.5287, allocations: 4 kB / 0.4983 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007885/0.5366, allocations: 454.2 kB / 0.4987 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.5371, allocations: 139.8 kB / 0.4988 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.5391, allocations: 3.008 MB / 0.5018 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.5395, allocations: 43.86 kB / 0.5018 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.5395, allocations: 32.09 kB / 0.5019 GB, free: 13.41 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.0002558/0.5398, allocations: 189.6 kB / 0.502 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.643e-05/0.5399, allocations: 39.53 kB / 0.5021 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.5413, allocations: 1.064 MB / 0.5031 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.5414, allocations: 12 kB / 0.5031 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.5414, allocations: 0 / 0.5031 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001088/0.5425, allocations: 1.079 MB / 0.5042 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.5446, allocations: 1.734 MB / 0.5059 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5446, allocations: 0 / 0.5059 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.545, allocations: 99.83 kB / 0.506 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002665/0.5476, allocations: 365 kB / 0.5063 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.5477, allocations: 12 kB / 0.5063 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006578/0.5484, allocations: 1.148 MB / 0.5074 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5484, allocations: 4.938 kB / 0.5074 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.5497, allocations: 1.123 MB / 0.5085 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.5498, allocations: 144.3 kB / 0.5087 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.013e-05/0.5499, allocations: 12 kB / 0.5087 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.5502, allocations: 35.86 kB / 0.5087 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.985e-05/0.5502, allocations: 32.52 kB / 0.5088 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.5503, allocations: 23.98 kB / 0.5088 GB, free: 6.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.5505, allocations: 247 kB / 0.509 GB, free: 5.805 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.472e-06/0.5505, allocations: 0 / 0.509 GB, free: 5.805 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005494/0.556, allocations: 0.9604 MB / 0.51 GB, free: 4.844 MB / 430.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.04279/0.5988, allocations: 9.436 MB / 0.5192 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.6004, allocations: 0.6967 MB / 0.5199 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6004, allocations: 0 / 0.5199 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005474/0.601, allocations: 367.5 kB / 0.5202 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.6023, allocations: 260.9 kB / 0.5205 GB, free: 10.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008975/0.6113, allocations: 3.653 MB / 0.524 GB, free: 6.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.6118, allocations: 0.865 MB / 0.5249 GB, free: 5.371 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.6123, allocations: 244.6 kB / 0.5251 GB, free: 5.133 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.6126, allocations: 195.4 kB / 0.5253 GB, free: 4.941 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6126, allocations: 0 / 0.5253 GB, free: 4.941 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2672/0.8798, allocations: 40.78 MB / 0.5651 GB, free: 122.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.88, allocations: 199.2 kB / 0.5653 GB, free: 122.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.563/4.443, allocations: 0 / 0.5653 GB, free: 122.5 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