Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.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.R134a1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a1",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.001565/0.001565, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001672/0.001672, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.288/1.288, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001332/0.001332, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.08621, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.2074/0.2936, allocations: 26.6 MB / 401.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.3183, allocations: 24.87 MB / 426.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.3188, allocations: 8.156 kB / 426.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008842/0.3197, allocations: 309.7 kB / 426.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007914/0.3205, allocations: 370.2 kB / 426.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01227/0.3328, allocations: 4.097 MB / 430.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.3342, allocations: 0.941 MB / 431.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.3344, allocations: 111.9 kB / 431.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005345/0.3349, allocations: 388 kB / 432.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000328/0.3353, allocations: 298.3 kB / 432.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-05/0.3353, allocations: 40.62 kB / 432.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0189/0.3542, allocations: 10.42 MB / 443.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.3545, allocations: 111.6 kB / 443.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005408/0.3551, allocations: 223.1 kB / 443.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02591/0.381, allocations: 11.49 MB / 454.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.381, allocations: 0 / 454.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3811, allocations: 0 / 454.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.3811, allocations: 0 / 454.9 MB, free: 15.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.006218/0.3873, allocations: 1.184 MB / 456.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.3874, allocations: 11.97 kB / 456.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.543e-05/0.3875, allocations: 74.53 kB / 456.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005812/0.3881, allocations: 67.73 kB / 456.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005138/0.3886, allocations: 322.4 kB / 456.5 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.3886, allocations: 28.66 kB / 456.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.3887, allocations: 35.95 kB / 456.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008932/0.3896, allocations: 463.7 kB / 457.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.3896, allocations: 3.938 kB / 457.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.3897, allocations: 20 kB / 457.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3897, allocations: 8 kB / 457.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007263/0.3904, allocations: 386.3 kB / 457.5 MB, free: 12.84 MB / 382.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.003658/0.3941, allocations: 2.946 MB / 460.4 MB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.3947, allocations: 290.8 kB / 460.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3949, allocations: 132.8 kB / 460.8 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00232/0.3973, allocations: 2.474 MB / 463.3 MB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3973, allocations: 34.56 kB / 463.3 MB, free: 6.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 3.226e-06/0.3973, allocations: 0 / 463.3 MB, free: 6.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.005057/0.4024, allocations: 1.3 MB / 464.6 MB, free: 4.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.4024, allocations: 51.41 kB / 464.7 MB, free: 4.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.4027, allocations: 262.6 kB / 464.9 MB, free: 4.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.4028, allocations: 33.7 kB / 465 MB, free: 4.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.4029, allocations: 196.4 kB / 465.2 MB, free: 4.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.403, allocations: 126.9 kB / 465.3 MB, free: 4.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.4031, allocations: 82.08 kB / 465.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4033, allocations: 334.8 kB / 465.7 MB, free: 3.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.4035, allocations: 116.8 kB / 465.8 MB, free: 3.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.4037, allocations: 234 kB / 466 MB, free: 3.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004832/0.4042, allocations: 370.4 kB / 466.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4042, allocations: 0 / 466.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008018/0.405, allocations: 462.6 kB / 466.9 MB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.4051, allocations: 8 kB / 466.9 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.4051, allocations: 6.812 kB / 466.9 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004747/0.4098, allocations: 237.9 kB / 467.1 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.4102, allocations: 87.83 kB / 467.2 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.4117, allocations: 1.947 MB / 469.1 MB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.4119, allocations: 12 kB / 469.1 MB, free: 12 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/0.412, allocations: 23.98 kB / 469.2 MB, free: 15.99 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 prepare postOptimizeDAE: time 0.0001916/0.4122, allocations: 165.8 kB / 469.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.05e-05/0.4123, allocations: 35.75 kB / 469.4 MB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000967/0.4133, allocations: 0.6869 MB / 470.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.4133, allocations: 11.94 kB / 470.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.4133, allocations: 0 / 470.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007764/0.4141, allocations: 0.8602 MB / 470.9 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.4155, allocations: 1.199 MB / 472.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.4155, allocations: 0 / 472.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.4158, allocations: 63.91 kB / 472.2 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.4173, allocations: 168.6 kB / 472.4 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.4174, allocations: 18.67 kB / 472.4 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003498/0.4177, allocations: 0.5719 MB / 472.9 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4177, allocations: 3.938 kB / 472.9 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009447/0.4187, allocations: 0.7422 MB / 473.7 MB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.767e-05/0.4188, allocations: 113 kB / 473.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.4189, allocations: 8 kB / 473.8 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.4191, allocations: 7.984 kB / 473.8 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.4191, allocations: 27.91 kB / 473.8 MB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.4191, allocations: 12 kB / 473.9 MB, free: 11.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.4194, allocations: 221.9 kB / 474.1 MB, free: 10.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4194, allocations: 4 kB / 474.1 MB, free: 10.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004232/0.4236, allocations: 0.748 MB / 474.8 MB, free: 10.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.025/0.4486, allocations: 7.578 MB / 482.4 MB, free: 2.484 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4497, allocations: 483 kB / 482.9 MB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4498, allocations: 4.125 kB / 482.9 MB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00042/0.4502, allocations: 224.9 kB / 483.1 MB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.4513, allocations: 191.9 kB / 483.3 MB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008115/0.4595, allocations: 4.045 MB / 487.3 MB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.4599, allocations: 0.8127 MB / 488.1 MB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000411/0.4604, allocations: 195.7 kB / 488.3 MB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.4606, allocations: 139.4 kB / 488.5 MB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.4606, allocations: 4 kB / 488.5 MB, free: 12.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06502/0.5256, allocations: 33.71 MB / 0.5099 GB, free: 10.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.88, allocations: 19.97 kB / 0.51 GB, free: 10.34 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1_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_R134a1.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/R134a/R134a1/R134a1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches