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.0009684/0.0009685, allocations: 110.5 kB / 16.51 MB, free: 6.707 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.0009717/0.0009716, allocations: 190.5 kB / 17.43 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.251/1.251, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 50.39 kB / 300.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.0889, allocations: 49.44 MB / 349.5 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1922/0.2811, allocations: 37.24 MB / 386.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02883/0.31, allocations: 31.58 MB / 418.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005917/0.3106, allocations: 5.156 kB / 418.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.3118, allocations: 347.3 kB / 418.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.3131, allocations: 0.502 MB / 419.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01547/0.3286, allocations: 4.159 MB / 423.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002122/0.3307, allocations: 2.034 MB / 425.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.331, allocations: 122.7 kB / 425.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.332, allocations: 482.1 kB / 425.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.3328, allocations: 442.3 kB / 426.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.3329, allocations: 32 kB / 426.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05056/0.3835, allocations: 35.31 MB / 461.7 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000435/0.384, allocations: 131.5 kB / 461.8 MB, free: 3.344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006154/0.3846, allocations: 298.7 kB / 462.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06817/0.4528, allocations: 26.16 MB / 488.3 MB, free: 8.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4528, allocations: 0 / 488.3 MB, free: 8.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4529, allocations: 0 / 488.3 MB, free: 8.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.4529, allocations: 0 / 488.3 MB, free: 8.805 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.007293/0.4602, allocations: 1.419 MB / 489.7 MB, free: 7.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.4602, allocations: 8.031 kB / 489.7 MB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.4603, allocations: 86.52 kB / 489.8 MB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006856/0.461, allocations: 107.3 kB / 489.9 MB, free: 7.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.4615, allocations: 377.9 kB / 490.3 MB, free: 6.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.4615, allocations: 37 kB / 490.3 MB, free: 6.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.4616, allocations: 44 kB / 490.4 MB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.4627, allocations: 0.6243 MB / 491 MB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.4628, allocations: 4 kB / 491 MB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.4628, allocations: 24 kB / 491 MB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.4629, allocations: 12 kB / 491 MB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009549/0.4638, allocations: 0.5268 MB / 491.6 MB, free: 5.402 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.003748/0.4676, allocations: 3.803 MB / 495.4 MB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008349/0.4684, allocations: 407.7 kB / 495.8 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.4687, allocations: 217.1 kB / 496 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002845/0.4716, allocations: 3.455 MB / 499.4 MB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.4716, allocations: 42.92 kB / 499.5 MB, free: 12.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 1.713e-06/0.4716, allocations: 3.938 kB / 499.5 MB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.008721/0.4804, allocations: 2.02 MB / 0.4897 GB, free: 10.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.4804, allocations: 59.83 kB / 0.4898 GB, free: 10.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.4807, allocations: 308.4 kB / 0.4901 GB, free: 9.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.4807, allocations: 33.7 kB / 0.4901 GB, free: 9.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.4809, allocations: 232.6 kB / 0.4903 GB, free: 9.715 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.481, allocations: 197.2 kB / 0.4905 GB, free: 9.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.4812, allocations: 118.2 kB / 0.4906 GB, free: 9.398 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4813, allocations: 350.8 kB / 0.491 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.4816, allocations: 177.2 kB / 0.4911 GB, free: 8.871 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.482, allocations: 332 kB / 0.4915 GB, free: 8.488 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007111/0.4827, allocations: 0.5407 MB / 0.492 GB, free: 7.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4827, allocations: 4 kB / 0.492 GB, free: 7.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001171/0.4839, allocations: 0.6701 MB / 0.4926 GB, free: 7.199 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.4839, allocations: 11.94 kB / 0.4927 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4839, allocations: 8 kB / 0.4927 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009358/0.4933, allocations: 446 kB / 0.4931 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005131/0.4938, allocations: 147.8 kB / 0.4932 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.4956, allocations: 2.994 MB / 0.4962 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.4959, allocations: 48 kB / 0.4962 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.496, allocations: 31.94 kB / 0.4962 GB, free: 3.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.0002072/0.4962, allocations: 185.7 kB / 0.4964 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.4963, allocations: 43.53 kB / 0.4964 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.4977, allocations: 1.054 MB / 0.4975 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.4977, allocations: 15.94 kB / 0.4975 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.4977, allocations: 0 / 0.4975 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001068/0.4988, allocations: 1.091 MB / 0.4986 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.5008, allocations: 1.734 MB / 0.5003 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.5008, allocations: 0 / 0.5003 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/0.5012, allocations: 99.88 kB / 0.5003 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003053/0.5043, allocations: 349.1 kB / 0.5007 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.5043, allocations: 12 kB / 0.5007 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005769/0.5049, allocations: 1.148 MB / 0.5018 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5049, allocations: 0 / 0.5018 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.5063, allocations: 1.127 MB / 0.5029 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.5064, allocations: 128.5 kB / 0.503 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.745e-05/0.5065, allocations: 12.16 kB / 0.503 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.5068, allocations: 35.83 kB / 0.5031 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.54e-05/0.5068, allocations: 36.55 kB / 0.5031 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.232e-05/0.5069, allocations: 23.98 kB / 0.5031 GB, free: 11.97 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.5071, allocations: 247 kB / 0.5034 GB, free: 11.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5071, allocations: 4 kB / 0.5034 GB, free: 11.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005356/0.5125, allocations: 0.9604 MB / 0.5043 GB, free: 10.76 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.04017/0.5527, allocations: 9.446 MB / 0.5135 GB, free: 1.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.5542, allocations: 0.7151 MB / 0.5142 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5542, allocations: 1.125 kB / 0.5142 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.5548, allocations: 359.6 kB / 0.5146 GB, free: 204 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.5561, allocations: 264.7 kB / 0.5148 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009137/0.5653, allocations: 5.607 MB / 0.5203 GB, free: 10.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.5657, allocations: 0.8648 MB / 0.5212 GB, free: 9.223 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004926/0.5662, allocations: 237.2 kB / 0.5214 GB, free: 8.992 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.5664, allocations: 199.4 kB / 0.5216 GB, free: 8.797 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5664, allocations: 0 / 0.5216 GB, free: 8.797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.756/2.323, allocations: 41.34 MB / 0.5619 GB, free: 132.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/2.323, allocations: 218.2 kB / 0.5622 GB, free: 132.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.569/6.892, allocations: 0 / 0.5622 GB, free: 132.3 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