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.001447/0.001447, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 63.88 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2365, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03837/0.2749, allocations: 37.74 MB / 446.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03325/0.3082, allocations: 30.63 MB / 477.2 MB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005855/0.3089, allocations: 7.938 kB / 477.2 MB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.3101, allocations: 417.7 kB / 477.6 MB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.3112, allocations: 0.5127 MB / 478.1 MB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01432/0.3255, allocations: 5.139 MB / 483.3 MB, free: 6.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.3274, allocations: 1.355 MB / 484.6 MB, free: 5.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003065/0.3278, allocations: 170.6 kB / 484.8 MB, free: 5.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008344/0.3286, allocations: 0.5372 MB / 485.3 MB, free: 4.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005432/0.3291, allocations: 438.2 kB / 485.8 MB, free: 4.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.765e-05/0.3292, allocations: 56 kB / 485.8 MB, free: 4.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02481/0.3541, allocations: 12.81 MB / 498.6 MB, free: 7.418 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002882/0.3544, allocations: 155.6 kB / 498.8 MB, free: 7.266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005079/0.3549, allocations: 322.7 kB / 499.1 MB, free: 6.949 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04001/0.3949, allocations: 14.93 MB / 0.502 GB, free: 8.004 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.395, allocations: 7.938 kB / 0.502 GB, free: 7.996 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.395, allocations: 0 / 0.502 GB, free: 7.996 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.395, allocations: 0 / 0.502 GB, free: 7.996 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.007324/0.4023, allocations: 1.483 MB / 0.5034 GB, free: 6.453 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4024, allocations: 8.031 kB / 0.5034 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.955e-05/0.4025, allocations: 90.52 kB / 0.5035 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007766/0.4033, allocations: 103.6 kB / 0.5036 GB, free: 6.246 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.4039, allocations: 382.1 kB / 0.504 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.4039, allocations: 37 kB / 0.504 GB, free: 5.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.404, allocations: 48 kB / 0.5041 GB, free: 5.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.4052, allocations: 0.6127 MB / 0.5047 GB, free: 5.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.4052, allocations: 11.95 kB / 0.5047 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.4053, allocations: 20 kB / 0.5047 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.4053, allocations: 12 kB / 0.5047 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.4063, allocations: 0.5307 MB / 0.5052 GB, free: 4.516 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.004136/0.4105, allocations: 3.8 MB / 0.5089 GB, free: 420 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009404/0.4114, allocations: 416.7 kB / 0.5093 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.4117, allocations: 205.5 kB / 0.5095 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003494/0.4152, allocations: 3.463 MB / 0.5129 GB, free: 11.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.4153, allocations: 38.94 kB / 0.513 GB, free: 11.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.4153, allocations: 0 / 0.513 GB, free: 11.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009835/0.4251, allocations: 2.036 MB / 0.5149 GB, free: 9.465 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.4252, allocations: 63.78 kB / 0.515 GB, free: 9.391 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.4256, allocations: 308.5 kB / 0.5153 GB, free: 9.086 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.4256, allocations: 37.7 kB / 0.5153 GB, free: 9.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.4258, allocations: 241.1 kB / 0.5156 GB, free: 8.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.4259, allocations: 194.3 kB / 0.5157 GB, free: 8.613 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.4261, allocations: 118.3 kB / 0.5159 GB, free: 8.492 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4263, allocations: 350.8 kB / 0.5162 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.4266, allocations: 181.2 kB / 0.5164 GB, free: 7.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.427, allocations: 336 kB / 0.5167 GB, free: 7.574 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008201/0.4279, allocations: 0.5446 MB / 0.5172 GB, free: 6.969 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4279, allocations: 4 kB / 0.5172 GB, free: 6.965 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001372/0.4292, allocations: 0.6697 MB / 0.5179 GB, free: 6.277 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.4293, allocations: 14.75 kB / 0.5179 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4293, allocations: 4 kB / 0.5179 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01122/0.4405, allocations: 478.5 kB / 0.5184 GB, free: 5.785 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005897/0.4411, allocations: 139.8 kB / 0.5185 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.4435, allocations: 3.093 MB / 0.5215 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003146/0.4438, allocations: 23.94 kB / 0.5215 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.4439, allocations: 27.98 kB / 0.5216 GB, free: 2.289 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.0002636/0.4441, allocations: 185.8 kB / 0.5217 GB, free: 2.098 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.4444, allocations: 51.72 kB / 0.5218 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.446, allocations: 1.059 MB / 0.5228 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.446, allocations: 11.98 kB / 0.5228 GB, free: 0.957 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.446, allocations: 7.938 kB / 0.5228 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001241/0.4472, allocations: 1.079 MB / 0.5239 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.4495, allocations: 1.733 MB / 0.5256 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.4495, allocations: 11.92 kB / 0.5256 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.4499, allocations: 99.83 kB / 0.5257 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002838/0.4528, allocations: 345.1 kB / 0.526 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.4528, allocations: 19.98 kB / 0.526 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007729/0.4536, allocations: 1.144 MB / 0.5272 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4536, allocations: 4.031 kB / 0.5272 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.4552, allocations: 1.132 MB / 0.5283 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.4553, allocations: 120.7 kB / 0.5284 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.4554, allocations: 20.12 kB / 0.5284 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.4556, allocations: 12 kB / 0.5284 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.4557, allocations: 40.48 kB / 0.5284 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.4557, allocations: 20 kB / 0.5285 GB, free: 10.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.456, allocations: 247 kB / 0.5287 GB, free: 10.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.456, allocations: 4 kB / 0.5287 GB, free: 10.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004936/0.461, allocations: 0.9779 MB / 0.5297 GB, free: 9.723 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.03113/0.4921, allocations: 9.456 MB / 0.5389 GB, free: 224 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1817/0.6739, allocations: 0.7168 MB / 0.5396 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.6739, allocations: 0.5938 kB / 0.5396 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.6746, allocations: 368 kB / 0.5399 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.6761, allocations: 253.6 kB / 0.5402 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00893/0.685, allocations: 5.348 MB / 0.5454 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.6853, allocations: 0.8668 MB / 0.5463 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004823/0.6858, allocations: 240.7 kB / 0.5465 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.686, allocations: 201.1 kB / 0.5467 GB, free: 117.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.72e-07/0.686, allocations: 0 / 0.5467 GB, free: 117.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06244/0.7484, allocations: 42.27 MB / 0.588 GB, free: 80.67 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.76, allocations: 0.5625 kB / 0.588 GB, free: 80.67 MB / 462.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/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) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches