Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_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.001119/0.001119, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001103/0.001103, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 55.91 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08772, allocations: 46.61 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.217/0.3047, allocations: 37.66 MB / 412.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03183/0.3366, allocations: 30.59 MB / 442.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006136/0.3372, allocations: 15.94 kB / 442.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.3384, allocations: 405.7 kB / 443.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.3395, allocations: 0.5127 MB / 443.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01411/0.3536, allocations: 5.13 MB / 449 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.3553, allocations: 1.359 MB / 450.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.3556, allocations: 174.5 kB / 450.5 MB, free: 3.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007607/0.3563, allocations: 0.5371 MB / 451 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004755/0.3568, allocations: 434.3 kB / 451.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.918e-05/0.3569, allocations: 52 kB / 451.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02329/0.3802, allocations: 12.8 MB / 464.3 MB, free: 6.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.3805, allocations: 151.5 kB / 464.5 MB, free: 5.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004915/0.381, allocations: 314.8 kB / 464.8 MB, free: 5.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03272/0.4138, allocations: 14.91 MB / 479.7 MB, free: 6.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4138, allocations: 0 / 479.7 MB, free: 6.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4138, allocations: 0 / 479.7 MB, free: 6.715 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4139, allocations: 4 kB / 479.7 MB, free: 6.711 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.007935/0.4218, allocations: 1.42 MB / 481.1 MB, free: 5.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.4219, allocations: 19.89 kB / 481.1 MB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.511e-05/0.422, allocations: 90.45 kB / 481.2 MB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007256/0.4227, allocations: 87.34 kB / 481.3 MB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.4233, allocations: 390 kB / 481.7 MB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.4234, allocations: 36.94 kB / 481.7 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-05/0.4235, allocations: 55.84 kB / 481.8 MB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.4247, allocations: 0.6166 MB / 482.4 MB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.4247, allocations: 7.984 kB / 482.4 MB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.4247, allocations: 24 kB / 482.4 MB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.4248, allocations: 15.98 kB / 482.4 MB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009632/0.4257, allocations: 0.5229 MB / 483 MB, free: 3.293 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.004317/0.4301, allocations: 3.799 MB / 486.8 MB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009236/0.431, allocations: 411.7 kB / 487.2 MB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.4313, allocations: 221.1 kB / 487.4 MB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003193/0.4345, allocations: 3.459 MB / 490.8 MB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4346, allocations: 39.81 kB / 490.9 MB, free: 10.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.364e-06/0.4346, allocations: 0 / 490.9 MB, free: 10.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.009302/0.4439, allocations: 2.022 MB / 492.9 MB, free: 8.254 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.4439, allocations: 63.72 kB / 493 MB, free: 8.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.4443, allocations: 308.5 kB / 493.3 MB, free: 7.867 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/0.4443, allocations: 37.7 kB / 493.3 MB, free: 7.824 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.4445, allocations: 228.6 kB / 493.5 MB, free: 7.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.4446, allocations: 197.2 kB / 493.7 MB, free: 7.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.4448, allocations: 114.3 kB / 493.8 MB, free: 7.281 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.445, allocations: 346.8 kB / 494.2 MB, free: 6.934 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.4453, allocations: 181.2 kB / 494.3 MB, free: 6.758 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004043/0.4457, allocations: 332 kB / 494.7 MB, free: 6.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007777/0.4465, allocations: 0.5512 MB / 495.2 MB, free: 5.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4465, allocations: 0 / 495.2 MB, free: 5.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001269/0.4477, allocations: 0.6734 MB / 495.9 MB, free: 5.074 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4478, allocations: 7.938 kB / 495.9 MB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4478, allocations: 8 kB / 495.9 MB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009146/0.4569, allocations: 450.5 kB / 496.3 MB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.4576, allocations: 147.7 kB / 496.5 MB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.4597, allocations: 3.077 MB / 499.6 MB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.46, allocations: 23.94 kB / 499.6 MB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/0.4601, allocations: 24 kB / 499.6 MB, free: 1.125 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.0002518/0.4603, allocations: 193.8 kB / 499.8 MB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4605, allocations: 47.53 kB / 499.8 MB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.462, allocations: 1.05 MB / 0.4892 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.462, allocations: 8 kB / 0.4892 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-06/0.462, allocations: 3.938 kB / 0.4892 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001176/0.4632, allocations: 1.091 MB / 0.4902 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.4654, allocations: 1.729 MB / 0.4919 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4655, allocations: 0 / 0.4919 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003927/0.4658, allocations: 109.4 kB / 0.492 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00304/0.4689, allocations: 353 kB / 0.4924 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.469, allocations: 15.98 kB / 0.4924 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007045/0.4697, allocations: 1.148 MB / 0.4935 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4697, allocations: 0 / 0.4935 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.4712, allocations: 1.117 MB / 0.4946 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.4714, allocations: 124.7 kB / 0.4947 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.552e-05/0.4714, allocations: 16 kB / 0.4947 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.4717, allocations: 15.94 kB / 0.4947 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.4718, allocations: 32.52 kB / 0.4948 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.4718, allocations: 23.98 kB / 0.4948 GB, free: 9.805 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.4721, allocations: 255 kB / 0.495 GB, free: 9.555 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4721, allocations: 0 / 0.495 GB, free: 9.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005403/0.4775, allocations: 0.9643 MB / 0.496 GB, free: 8.59 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.03202/0.5096, allocations: 9.44 MB / 0.5052 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.5113, allocations: 0.7193 MB / 0.5059 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5114, allocations: 0 / 0.5059 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006708/0.5121, allocations: 363.5 kB / 0.5062 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.5135, allocations: 277.8 kB / 0.5065 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.5244, allocations: 5.293 MB / 0.5117 GB, free: 8.246 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.525, allocations: 0.8648 MB / 0.5125 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000569/0.5255, allocations: 244.1 kB / 0.5128 GB, free: 7.113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.5258, allocations: 199.4 kB / 0.5129 GB, free: 6.918 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5258, allocations: 0 / 0.5129 GB, free: 6.918 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2473/0.7731, allocations: 42.22 MB / 0.5542 GB, free: 147.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/14.17, allocations: 3.375 kB / 0.5542 GB, free: 147.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches