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.001822/0.001822, allocations: 112.1 kB / 17.07 MB, free: 5.992 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.002094/0.002093, allocations: 197.3 kB / 18 MB, free: 5.074 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.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2417, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04472/0.2864, allocations: 37.63 MB / 437.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03727/0.3237, allocations: 30.61 MB / 468.5 MB, free: 4.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005099/0.3243, allocations: 4 kB / 468.5 MB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.3255, allocations: 409.7 kB / 468.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001279/0.3268, allocations: 0.5166 MB / 469.4 MB, free: 3.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01413/0.341, allocations: 5.136 MB / 474.5 MB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.3429, allocations: 1.344 MB / 475.9 MB, free: 12.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003601/0.3433, allocations: 182.4 kB / 476.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.3444, allocations: 0.5371 MB / 476.6 MB, free: 12.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007327/0.3451, allocations: 438.3 kB / 477 MB, free: 11.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.3453, allocations: 56 kB / 477.1 MB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02699/0.3723, allocations: 12.8 MB / 489.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003252/0.3726, allocations: 155.5 kB / 490 MB, free: 14.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006711/0.3733, allocations: 318.8 kB / 490.3 MB, free: 14.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04395/0.4173, allocations: 14.92 MB / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4173, allocations: 0 / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4174, allocations: 0 / 0.4934 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.542e-05/0.4174, allocations: 0 / 0.4934 GB, free: 15.48 MB / 430.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.008276/0.4257, allocations: 1.479 MB / 0.4949 GB, free: 13.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4257, allocations: 11.89 kB / 0.4949 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.4259, allocations: 86.52 kB / 0.495 GB, free: 13.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007366/0.4266, allocations: 95.61 kB / 0.4951 GB, free: 13.74 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.4273, allocations: 390.1 kB / 0.4954 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.4273, allocations: 41 kB / 0.4955 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-05/0.4274, allocations: 44 kB / 0.4955 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.4288, allocations: 0.6283 MB / 0.4961 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.4288, allocations: 0 / 0.4961 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.4288, allocations: 20 kB / 0.4961 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.4289, allocations: 12 kB / 0.4961 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.43, allocations: 0.5307 MB / 0.4967 GB, free: 12 MB / 430.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.004699/0.4347, allocations: 3.812 MB / 0.5004 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.4358, allocations: 411.5 kB / 0.5008 GB, free: 7.477 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.4361, allocations: 209.5 kB / 0.501 GB, free: 7.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003749/0.4399, allocations: 3.463 MB / 0.5044 GB, free: 3.105 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/0.4399, allocations: 50.88 kB / 0.5044 GB, free: 3.047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.325e-06/0.44, allocations: 0 / 0.5044 GB, free: 3.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009851/0.4498, allocations: 2.026 MB / 0.5064 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.4499, allocations: 63.78 kB / 0.5064 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.4503, allocations: 308.5 kB / 0.5067 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.453e-05/0.4504, allocations: 37.7 kB / 0.5068 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.4506, allocations: 229.2 kB / 0.507 GB, free: 292 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.4507, allocations: 206.2 kB / 0.5072 GB, free: 84 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.451, allocations: 114.4 kB / 0.5073 GB, free: 15.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.4512, allocations: 350.8 kB / 0.5076 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.4515, allocations: 185.2 kB / 0.5078 GB, free: 15.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.452, allocations: 336 kB / 0.5081 GB, free: 15.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008797/0.4529, allocations: 0.5446 MB / 0.5087 GB, free: 14.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.4529, allocations: 4 kB / 0.5087 GB, free: 14.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001403/0.4543, allocations: 0.6659 MB / 0.5093 GB, free: 13.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.4544, allocations: 11.94 kB / 0.5093 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4544, allocations: 4 kB / 0.5093 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009271/0.4637, allocations: 458.5 kB / 0.5098 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.4643, allocations: 139.8 kB / 0.5099 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002593/0.4669, allocations: 3.089 MB / 0.5129 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.4673, allocations: 19.94 kB / 0.5129 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.076e-05/0.4674, allocations: 31.98 kB / 0.513 GB, free: 9.793 MB / 446.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.0003009/0.4677, allocations: 189.9 kB / 0.5132 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.4678, allocations: 43.77 kB / 0.5132 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.4696, allocations: 1.052 MB / 0.5142 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.4696, allocations: 7.984 kB / 0.5142 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4696, allocations: 7.938 kB / 0.5142 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001412/0.4711, allocations: 1.095 MB / 0.5153 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.4737, allocations: 1.722 MB / 0.517 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.4738, allocations: 3.938 kB / 0.517 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.4742, allocations: 99.88 kB / 0.5171 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/0.4773, allocations: 345 kB / 0.5174 GB, free: 5.066 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.634e-05/0.4774, allocations: 23.98 kB / 0.5174 GB, free: 5.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009095/0.4783, allocations: 1.136 MB / 0.5185 GB, free: 3.855 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4783, allocations: 4.031 kB / 0.5186 GB, free: 3.852 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.4801, allocations: 1.136 MB / 0.5197 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.4803, allocations: 116.8 kB / 0.5198 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.701e-05/0.4804, allocations: 27.89 kB / 0.5198 GB, free: 2.535 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.4807, allocations: 11.94 kB / 0.5198 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.4808, allocations: 40.5 kB / 0.5199 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.4808, allocations: 23.94 kB / 0.5199 GB, free: 2.461 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003102/0.4811, allocations: 243 kB / 0.5201 GB, free: 2.227 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4811, allocations: 0 / 0.5201 GB, free: 2.227 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005206/0.4864, allocations: 0.9818 MB / 0.5211 GB, free: 1.242 MB / 446.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.03341/0.5198, allocations: 9.452 MB / 0.5303 GB, free: 7.742 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.5217, allocations: 0.7189 MB / 0.531 GB, free: 7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5217, allocations: 1.125 kB / 0.531 GB, free: 7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/0.5224, allocations: 363.5 kB / 0.5313 GB, free: 6.648 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.524, allocations: 272.2 kB / 0.5316 GB, free: 6.387 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.5353, allocations: 5.349 MB / 0.5368 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1817/0.717, allocations: 0.8609 MB / 0.5377 GB, free: 126.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007676/0.7178, allocations: 235.1 kB / 0.5379 GB, free: 126.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.7182, allocations: 203.4 kB / 0.5381 GB, free: 126.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.52e-07/0.7182, allocations: 0.5938 kB / 0.5381 GB, free: 126.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06723/0.7854, allocations: 42.23 MB / 0.5793 GB, free: 93.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/14.73, allocations: 3.938 kB / 0.5793 GB, free: 93.02 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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