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.0008087/0.0008088, allocations: 88.7 kB / 16.65 MB, free: 6.535 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.0008827/0.0008827, allocations: 173 kB / 17.56 MB, free: 6.184 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.18/1.18, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002041, allocations: 11.98 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07483/0.07505, allocations: 50.4 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1683/0.2434, allocations: 36.5 MB / 388.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02891/0.2723, allocations: 31.07 MB / 419.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004909/0.2728, allocations: 10.19 kB / 419.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009007/0.2737, allocations: 352.6 kB / 419.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.2748, allocations: 0.4945 MB / 420.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.2854, allocations: 4.164 MB / 424.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.2872, allocations: 2.038 MB / 426.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.2875, allocations: 122.7 kB / 426.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000767/0.2882, allocations: 458.2 kB / 427.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005494/0.2888, allocations: 454.1 kB / 427.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.2889, allocations: 24 kB / 427.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04233/0.3312, allocations: 35.3 MB / 462.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.3315, allocations: 119.5 kB / 463 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005293/0.332, allocations: 312.5 kB / 463.3 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05051/0.3826, allocations: 26.12 MB / 489.4 MB, free: 10.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3826, allocations: 0 / 489.4 MB, free: 10.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3826, allocations: 0 / 489.4 MB, free: 10.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.3826, allocations: 0 / 489.4 MB, free: 10.11 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.006727/0.3894, allocations: 1.314 MB / 490.7 MB, free: 8.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3894, allocations: 12.03 kB / 490.8 MB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3895, allocations: 86.52 kB / 490.8 MB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000606/0.3901, allocations: 95.33 kB / 490.9 MB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.3906, allocations: 381.9 kB / 491.3 MB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.3906, allocations: 33 kB / 491.3 MB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.3907, allocations: 48 kB / 491.4 MB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.3918, allocations: 0.6205 MB / 492 MB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3918, allocations: 7.922 kB / 492 MB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.3919, allocations: 24 kB / 492 MB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3919, allocations: 16 kB / 492 MB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009274/0.3928, allocations: 0.5229 MB / 492.6 MB, free: 6.812 MB / 398.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.003583/0.3964, allocations: 3.811 MB / 496.4 MB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008171/0.3972, allocations: 410.9 kB / 496.8 MB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/0.3975, allocations: 213.2 kB / 497 MB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002982/0.4005, allocations: 3.541 MB / 0.4888 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.4006, allocations: 42.88 kB / 0.4888 GB, free: 13.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 1.663e-06/0.4006, allocations: 4 kB / 0.4888 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.008372/0.409, allocations: 2.058 MB / 0.4909 GB, free: 11.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.409, allocations: 55.84 kB / 0.4909 GB, free: 11.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.4093, allocations: 308.5 kB / 0.4912 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.4093, allocations: 37.7 kB / 0.4912 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.4095, allocations: 228.6 kB / 0.4915 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.4096, allocations: 189.3 kB / 0.4916 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.116e-05/0.4097, allocations: 65.56 kB / 0.4917 GB, free: 10.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4098, allocations: 350.8 kB / 0.492 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.4101, allocations: 181.2 kB / 0.4922 GB, free: 10.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.4105, allocations: 324.1 kB / 0.4925 GB, free: 9.836 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006951/0.4112, allocations: 0.5523 MB / 0.4931 GB, free: 9.223 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4112, allocations: 4 kB / 0.4931 GB, free: 9.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00113/0.4123, allocations: 0.6817 MB / 0.4937 GB, free: 8.523 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.4123, allocations: 8 kB / 0.4937 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.4123, allocations: 4 kB / 0.4937 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008564/0.4209, allocations: 454.2 kB / 0.4942 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/0.4214, allocations: 139.8 kB / 0.4943 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.4232, allocations: 2.994 MB / 0.4972 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.4235, allocations: 47.83 kB / 0.4973 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.4236, allocations: 32.08 kB / 0.4973 GB, free: 4.641 MB / 414.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.0002025/0.4238, allocations: 181.7 kB / 0.4975 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.4238, allocations: 43.53 kB / 0.4975 GB, free: 4.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.4252, allocations: 1.055 MB / 0.4986 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.4252, allocations: 11.92 kB / 0.4986 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4252, allocations: 7.938 kB / 0.4986 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001057/0.4263, allocations: 1.091 MB / 0.4996 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.4282, allocations: 1.734 MB / 0.5013 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.4282, allocations: 0 / 0.5013 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.4286, allocations: 95.89 kB / 0.5014 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002929/0.4315, allocations: 361 kB / 0.5018 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.391e-05/0.4316, allocations: 15.98 kB / 0.5018 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006127/0.4322, allocations: 1.148 MB / 0.5029 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4322, allocations: 4.047 kB / 0.5029 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.4335, allocations: 1.123 MB / 0.504 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.4336, allocations: 144.3 kB / 0.5041 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.4337, allocations: 15.94 kB / 0.5042 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.434, allocations: 35.92 kB / 0.5042 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.4341, allocations: 36.52 kB / 0.5042 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/0.4341, allocations: 19.98 kB / 0.5042 GB, free: 13.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.4343, allocations: 251 kB / 0.5045 GB, free: 13.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4343, allocations: 0 / 0.5045 GB, free: 13.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004287/0.4386, allocations: 0.9565 MB / 0.5054 GB, free: 12.07 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 (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.038/0.4766, allocations: 9.427 MB / 0.5146 GB, free: 2.594 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.4778, allocations: 0.7042 MB / 0.5153 GB, free: 1.879 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4779, allocations: 0 / 0.5153 GB, free: 1.879 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.4784, allocations: 367.4 kB / 0.5157 GB, free: 1.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.4797, allocations: 256.9 kB / 0.5159 GB, free: 1.273 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.4881, allocations: 5.696 MB / 0.5215 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.4885, allocations: 0.8648 MB / 0.5223 GB, free: 10.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000469/0.489, allocations: 249.5 kB / 0.5226 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.4892, allocations: 203.4 kB / 0.5227 GB, free: 10.02 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4892, allocations: 0 / 0.5227 GB, free: 10.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.536/3.025, allocations: 41.17 MB / 0.5629 GB, free: 131 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/3.026, allocations: 215.2 kB / 0.5632 GB, free: 130.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.602/6.628, allocations: 0 / 0.5632 GB, free: 130.8 MB / 446.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