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.001007/0.001007, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001075/0.001075, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.24/1.24, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001, allocations: 42.31 kB / 300.7 MB, free: 5.703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07874/0.07976, allocations: 49.46 MB / 350.2 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1673/0.2471, allocations: 37.61 MB / 387.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02859/0.2757, allocations: 30.6 MB / 418.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005263/0.2763, allocations: 5.125 kB / 418.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.2775, allocations: 420.1 kB / 418.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009555/0.2785, allocations: 0.5112 MB / 419.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01395/0.2924, allocations: 5.133 MB / 424.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001425/0.2939, allocations: 1.355 MB / 425.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.2941, allocations: 171.2 kB / 426 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006137/0.2947, allocations: 0.5411 MB / 426.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004402/0.2952, allocations: 446.2 kB / 426.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.067e-05/0.2953, allocations: 56 kB / 427 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02284/0.3181, allocations: 12.77 MB / 439.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002423/0.3184, allocations: 151.5 kB / 439.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004734/0.3189, allocations: 314.8 kB / 440.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03865/0.3575, allocations: 14.91 MB / 455.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3576, allocations: 8 kB / 455.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3576, allocations: 0 / 455.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.3576, allocations: 0 / 455.1 MB, free: 11.01 MB / 366.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.007258/0.3649, allocations: 1.419 MB / 456.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3649, allocations: 15.89 kB / 456.6 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.558e-05/0.365, allocations: 87.2 kB / 456.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007157/0.3658, allocations: 95.23 kB / 456.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.3663, allocations: 389.9 kB / 457.1 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.563e-05/0.3663, allocations: 33 kB / 457.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.616e-05/0.3664, allocations: 44 kB / 457.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.3675, allocations: 0.6205 MB / 457.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.3675, allocations: 4.812 kB / 457.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.3676, allocations: 24 kB / 457.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.3676, allocations: 12 kB / 457.9 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009604/0.3686, allocations: 0.5268 MB / 458.4 MB, free: 7.609 MB / 366.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.0038/0.3724, allocations: 3.814 MB / 462.2 MB, free: 3.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/0.3732, allocations: 412.2 kB / 462.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.3735, allocations: 205.2 kB / 462.8 MB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003015/0.3766, allocations: 3.463 MB / 466.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3766, allocations: 42.94 kB / 466.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.3766, allocations: 0 / 466.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.009007/0.3856, allocations: 2.031 MB / 468.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.3857, allocations: 63.72 kB / 468.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.386, allocations: 308.5 kB / 468.7 MB, free: 12.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.3861, allocations: 37.7 kB / 468.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.3862, allocations: 232.5 kB / 469 MB, free: 11.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.3864, allocations: 189.3 kB / 469.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.3865, allocations: 118.2 kB / 469.3 MB, free: 11.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3867, allocations: 350.8 kB / 469.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.387, allocations: 177.2 kB / 469.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.3874, allocations: 332.1 kB / 470.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008181/0.3882, allocations: 0.5523 MB / 470.7 MB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3882, allocations: 4 kB / 470.7 MB, free: 10.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001223/0.3895, allocations: 0.6619 MB / 471.3 MB, free: 9.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3895, allocations: 15.92 kB / 471.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3895, allocations: 4 kB / 471.4 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009207/0.3987, allocations: 446.5 kB / 471.8 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005216/0.3993, allocations: 139.8 kB / 471.9 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.4012, allocations: 3.089 MB / 475 MB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.4015, allocations: 23.81 kB / 475 MB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.356e-05/0.4015, allocations: 31.98 kB / 475.1 MB, free: 5.43 MB / 382.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.0002163/0.4018, allocations: 189.8 kB / 475.3 MB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.4019, allocations: 39.53 kB / 475.3 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.4033, allocations: 1.053 MB / 476.3 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.4034, allocations: 11.98 kB / 476.4 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.4034, allocations: 0 / 476.4 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001116/0.4045, allocations: 1.091 MB / 477.4 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.4064, allocations: 1.738 MB / 479.2 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4064, allocations: 4 kB / 479.2 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.4068, allocations: 99.83 kB / 479.3 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002903/0.4097, allocations: 345 kB / 479.6 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.4098, allocations: 20 kB / 479.6 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006136/0.4104, allocations: 1.144 MB / 480.8 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4104, allocations: 32 / 480.8 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.4117, allocations: 1.131 MB / 481.9 MB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.07e-05/0.4118, allocations: 116.5 kB / 482 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.495e-05/0.4119, allocations: 23.94 kB / 482.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.4121, allocations: 19.97 kB / 482.1 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.4122, allocations: 40.44 kB / 482.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.4123, allocations: 23.98 kB / 482.1 MB, free: 14.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.4125, allocations: 243 kB / 482.4 MB, free: 13.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4125, allocations: 0 / 482.4 MB, free: 13.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004616/0.4171, allocations: 0.9605 MB / 483.3 MB, free: 12.9 MB / 398.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.04216/0.4593, allocations: 9.44 MB / 492.8 MB, free: 3.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002055/0.4614, allocations: 0.7432 MB / 493.5 MB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4614, allocations: 0 / 493.5 MB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006528/0.4621, allocations: 367.5 kB / 493.9 MB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.4635, allocations: 264.7 kB / 494.1 MB, free: 2.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00966/0.4731, allocations: 5.385 MB / 499.5 MB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.4735, allocations: 0.8648 MB / 0.4887 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004913/0.474, allocations: 241.3 kB / 0.4889 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.4743, allocations: 199.3 kB / 0.4891 GB, free: 11.11 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4743, allocations: 0 / 0.4891 GB, free: 11.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1563/0.6306, allocations: 42 MB / 0.5301 GB, free: 1.207 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.67/17.3, allocations: 19.72 kB / 0.5301 GB, free: 1.195 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