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.001223/0.001223, allocations: 110.9 kB / 16.62 MB, free: 6.961 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.001189/0.001189, allocations: 190 kB / 17.54 MB, free: 6.066 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.216/1.216, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 53.09 kB / 300.2 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.09745, allocations: 49.44 MB / 349.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1903/0.2878, allocations: 37.31 MB / 387 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02941/0.3172, allocations: 30.48 MB / 417.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005658/0.3178, allocations: 4.906 kB / 417.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.319, allocations: 367.9 kB / 417.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.3203, allocations: 492 kB / 418.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01445/0.3347, allocations: 4.533 MB / 422.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.3365, allocations: 1.359 MB / 424.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.3368, allocations: 179.9 kB / 424.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.3378, allocations: 0.5411 MB / 424.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006656/0.3385, allocations: 454.3 kB / 425.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.3386, allocations: 52 kB / 425.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04863/0.3873, allocations: 38.71 MB / 464.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.3876, allocations: 163.5 kB / 464.3 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005403/0.3881, allocations: 318.8 kB / 464.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05997/0.4481, allocations: 26.18 MB / 490.8 MB, free: 6.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4482, allocations: 4 kB / 490.8 MB, free: 6.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4482, allocations: 0 / 490.8 MB, free: 6.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.4482, allocations: 0 / 490.8 MB, free: 6.914 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.008626/0.4568, allocations: 1.419 MB / 492.2 MB, free: 5.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.4569, allocations: 11.89 kB / 492.2 MB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.457, allocations: 90.47 kB / 492.3 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007321/0.4578, allocations: 99.3 kB / 492.4 MB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.4583, allocations: 378 kB / 492.8 MB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.4583, allocations: 36.94 kB / 492.8 MB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.808e-05/0.4584, allocations: 48 kB / 492.8 MB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.4596, allocations: 0.6244 MB / 493.5 MB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.4597, allocations: 7.922 kB / 493.5 MB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.548e-05/0.4597, allocations: 24 kB / 493.5 MB, free: 4.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.4598, allocations: 12 kB / 493.5 MB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.4608, allocations: 0.5152 MB / 494 MB, free: 3.516 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.004255/0.465, allocations: 3.811 MB / 497.8 MB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009747/0.466, allocations: 415.8 kB / 498.2 MB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.4663, allocations: 207.2 kB / 498.5 MB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003167/0.4695, allocations: 3.455 MB / 0.4901 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.4696, allocations: 38.94 kB / 0.4902 GB, free: 10.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.154e-06/0.4696, allocations: 0 / 0.4902 GB, free: 10.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.009764/0.4794, allocations: 2.029 MB / 0.4922 GB, free: 8.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.4794, allocations: 59.84 kB / 0.4922 GB, free: 8.398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.4797, allocations: 304.4 kB / 0.4925 GB, free: 8.098 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.4798, allocations: 37.7 kB / 0.4925 GB, free: 8.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.48, allocations: 240.5 kB / 0.4928 GB, free: 7.812 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.4801, allocations: 189.3 kB / 0.493 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.4803, allocations: 114.2 kB / 0.4931 GB, free: 7.508 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4804, allocations: 354.8 kB / 0.4934 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.4807, allocations: 181.2 kB / 0.4936 GB, free: 6.973 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.4811, allocations: 324.1 kB / 0.4939 GB, free: 6.598 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007624/0.4819, allocations: 0.5484 MB / 0.4944 GB, free: 5.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4819, allocations: 0 / 0.4944 GB, free: 5.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001265/0.4832, allocations: 0.6735 MB / 0.4951 GB, free: 5.301 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.4832, allocations: 8.562 kB / 0.4951 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.4832, allocations: 8 kB / 0.4951 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009826/0.493, allocations: 451.4 kB / 0.4955 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.4936, allocations: 135.8 kB / 0.4957 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.4955, allocations: 3.097 MB / 0.4987 GB, free: 1.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.4959, allocations: 43.83 kB / 0.4987 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-05/0.496, allocations: 40.94 kB / 0.4988 GB, free: 1.309 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.0002387/0.4962, allocations: 184.7 kB / 0.4989 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.4964, allocations: 51.45 kB / 0.499 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.4979, allocations: 1.055 MB / 0.5 GB, free: 0 / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/0.4979, allocations: 11.98 kB / 0.5 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.4979, allocations: 0 / 0.5 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001141/0.4991, allocations: 1.091 MB / 0.5011 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.5012, allocations: 1.738 MB / 0.5028 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.5012, allocations: 4.062 kB / 0.5028 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.5016, allocations: 95.89 kB / 0.5029 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003247/0.5048, allocations: 353 kB / 0.5032 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.5049, allocations: 16 kB / 0.5032 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006173/0.5055, allocations: 1.144 MB / 0.5044 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.5055, allocations: 0 / 0.5044 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.5069, allocations: 1.131 MB / 0.5055 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.5071, allocations: 116.5 kB / 0.5056 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.244e-05/0.5072, allocations: 19.94 kB / 0.5056 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000316/0.5075, allocations: 31.94 kB / 0.5056 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-05/0.5075, allocations: 36.5 kB / 0.5057 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.5076, allocations: 23.98 kB / 0.5057 GB, free: 9.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.5078, allocations: 247 kB / 0.5059 GB, free: 9.723 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5078, allocations: 0 / 0.5059 GB, free: 9.723 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004921/0.5128, allocations: 0.9644 MB / 0.5069 GB, free: 8.758 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.04281/0.5556, allocations: 9.454 MB / 0.5161 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.5575, allocations: 0.7396 MB / 0.5168 GB, free: 14.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5575, allocations: 0 / 0.5168 GB, free: 14.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006397/0.5582, allocations: 367.6 kB / 0.5172 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.5596, allocations: 260.3 kB / 0.5174 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00993/0.5695, allocations: 5.595 MB / 0.5229 GB, free: 8.078 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.5699, allocations: 0.8648 MB / 0.5237 GB, free: 7.184 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006665/0.5706, allocations: 225.2 kB / 0.5239 GB, free: 6.965 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.5709, allocations: 203.4 kB / 0.5241 GB, free: 6.766 MB / 446.1 MB Notification: Performance of SimCode: time 6.12e-07/0.5709, allocations: 4 kB / 0.5241 GB, free: 6.762 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2227/0.7936, allocations: 41.88 MB / 0.565 GB, free: 129.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/0.7937, allocations: 218.9 kB / 0.5652 GB, free: 128.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.497/4.29, allocations: 0 / 0.5652 GB, free: 128.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