Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_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.001306/0.001306, allocations: 113.8 kB / 17.06 MB, free: 5.965 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.001294/0.001294, allocations: 197.3 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 39.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2312, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03948/0.2707, allocations: 37.64 MB / 437.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03387/0.3046, allocations: 30.59 MB / 468.5 MB, free: 4.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004685/0.3051, allocations: 11.94 kB / 468.5 MB, free: 4.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.3061, allocations: 405.7 kB / 468.9 MB, free: 3.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.3072, allocations: 0.5166 MB / 469.4 MB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01326/0.3205, allocations: 5.137 MB / 474.5 MB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001844/0.3224, allocations: 1.352 MB / 475.9 MB, free: 12.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.3227, allocations: 182.5 kB / 476.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008578/0.3236, allocations: 0.5371 MB / 476.6 MB, free: 12.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005603/0.3241, allocations: 438.3 kB / 477 MB, free: 11.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.291e-05/0.3242, allocations: 52 kB / 477.1 MB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02427/0.3485, allocations: 12.8 MB / 489.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.3488, allocations: 151.5 kB / 490 MB, free: 14.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004829/0.3493, allocations: 322.8 kB / 490.3 MB, free: 14.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03996/0.3893, allocations: 14.92 MB / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3893, allocations: 0 / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.768e-06/0.3893, allocations: 0 / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3894, allocations: 3.938 kB / 0.4934 GB, free: 15.47 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.007538/0.3969, allocations: 1.472 MB / 0.4949 GB, free: 13.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.397, allocations: 19.89 kB / 0.4949 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.885e-05/0.3971, allocations: 82.52 kB / 0.495 GB, free: 13.83 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006537/0.3977, allocations: 99.61 kB / 0.4951 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.3983, allocations: 386.1 kB / 0.4954 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.3984, allocations: 33 kB / 0.4955 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.3985, allocations: 51.98 kB / 0.4955 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.3997, allocations: 0.6205 MB / 0.4961 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3997, allocations: 4 kB / 0.4961 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.3998, allocations: 24 kB / 0.4961 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3998, allocations: 12 kB / 0.4962 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.4008, allocations: 0.5268 MB / 0.4967 GB, free: 12 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.004268/0.4051, allocations: 3.812 MB / 0.5004 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009219/0.406, allocations: 415.5 kB / 0.5008 GB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/0.4064, allocations: 213.5 kB / 0.501 GB, free: 7.262 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003575/0.4099, allocations: 3.451 MB / 0.5044 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.41, allocations: 46.88 kB / 0.5044 GB, free: 3.055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 1.903e-06/0.41, allocations: 0 / 0.5044 GB, free: 3.055 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009071/0.4191, allocations: 2.033 MB / 0.5064 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.4191, allocations: 63.77 kB / 0.5065 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.4195, allocations: 312.5 kB / 0.5067 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.4195, allocations: 37.7 kB / 0.5068 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.4197, allocations: 237.1 kB / 0.507 GB, free: 280 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.4199, allocations: 202.2 kB / 0.5072 GB, free: 76 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.4201, allocations: 118.3 kB / 0.5073 GB, free: 15.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4203, allocations: 350.8 kB / 0.5077 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.4206, allocations: 177.2 kB / 0.5078 GB, free: 15.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.4211, allocations: 339.1 kB / 0.5081 GB, free: 15.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008269/0.4219, allocations: 0.5446 MB / 0.5087 GB, free: 14.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4219, allocations: 0 / 0.5087 GB, free: 14.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001284/0.4232, allocations: 0.6737 MB / 0.5093 GB, free: 13.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4232, allocations: 7.938 kB / 0.5093 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.4232, allocations: 8 kB / 0.5093 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008697/0.4319, allocations: 446.6 kB / 0.5098 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005597/0.4325, allocations: 147.8 kB / 0.5099 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002362/0.4349, allocations: 3.085 MB / 0.5129 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.4352, allocations: 23.98 kB / 0.513 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.814e-05/0.4352, allocations: 24 kB / 0.513 GB, free: 9.797 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.0002583/0.4355, allocations: 181.9 kB / 0.5131 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4356, allocations: 51.75 kB / 0.5132 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.4373, allocations: 1.052 MB / 0.5142 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.4373, allocations: 15.98 kB / 0.5142 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4373, allocations: 3.938 kB / 0.5142 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001308/0.4386, allocations: 1.087 MB / 0.5153 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.4409, allocations: 1.729 MB / 0.517 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4409, allocations: 7.875 kB / 0.517 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.4413, allocations: 95.89 kB / 0.5171 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002923/0.4442, allocations: 357.1 kB / 0.5174 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.4443, allocations: 12 kB / 0.5174 GB, free: 5.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007821/0.4451, allocations: 1.152 MB / 0.5186 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4451, allocations: 0 / 0.5186 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.4466, allocations: 1.128 MB / 0.5197 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.4468, allocations: 121 kB / 0.5198 GB, free: 2.555 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.865e-05/0.4468, allocations: 23.89 kB / 0.5198 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.4471, allocations: 12 kB / 0.5198 GB, free: 2.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.596e-05/0.4471, allocations: 32.52 kB / 0.5199 GB, free: 2.488 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.4472, allocations: 23.98 kB / 0.5199 GB, free: 2.465 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002724/0.4475, allocations: 251 kB / 0.5201 GB, free: 2.223 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4475, allocations: 0 / 0.5201 GB, free: 2.223 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004804/0.4523, allocations: 0.974 MB / 0.5211 GB, free: 1.246 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 (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.03083/0.4831, allocations: 9.45 MB / 0.5303 GB, free: 7.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.4848, allocations: 0.7191 MB / 0.531 GB, free: 7.008 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4849, allocations: 3.938 kB / 0.531 GB, free: 7.004 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.4855, allocations: 368.5 kB / 0.5314 GB, free: 6.648 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.4869, allocations: 268.9 kB / 0.5316 GB, free: 6.387 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.4971, allocations: 5.338 MB / 0.5368 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1625/0.6596, allocations: 0.864 MB / 0.5377 GB, free: 126.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006896/0.6604, allocations: 243.7 kB / 0.5379 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.6607, allocations: 199.5 kB / 0.5381 GB, free: 126.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6607, allocations: 0 / 0.5381 GB, free: 126.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06605/0.7268, allocations: 42.23 MB / 0.5793 GB, free: 93.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.2, allocations: 4 kB / 0.5793 GB, free: 93.31 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches