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.001496/0.001496, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001697/0.001697, allocations: 187 kB / 18.67 MB, free: 4.395 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.258/1.258, 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.001194/0.001194, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07854/0.07975, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1928/0.2725, allocations: 37.66 MB / 412.3 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0307/0.3033, allocations: 30.59 MB / 442.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006224/0.3039, allocations: 8 kB / 442.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.3053, allocations: 437.7 kB / 443.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.3066, allocations: 0.5283 MB / 443.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01412/0.3208, allocations: 5.234 MB / 449.1 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001998/0.3228, allocations: 1.348 MB / 450.5 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.3231, allocations: 182.4 kB / 450.6 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008066/0.3239, allocations: 0.541 MB / 451.2 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004859/0.3244, allocations: 434.3 kB / 451.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.752e-05/0.3245, allocations: 52 kB / 451.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02513/0.3497, allocations: 12.8 MB / 464.5 MB, free: 5.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.35, allocations: 155.5 kB / 464.6 MB, free: 5.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005637/0.3505, allocations: 322.8 kB / 464.9 MB, free: 5.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03395/0.3845, allocations: 14.92 MB / 479.8 MB, free: 6.555 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.3846, allocations: 0 / 479.8 MB, free: 6.555 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3846, allocations: 4 kB / 479.8 MB, free: 6.551 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.603e-05/0.3846, allocations: 0 / 479.8 MB, free: 6.551 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.008002/0.3926, allocations: 1.472 MB / 481.3 MB, free: 5.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3927, allocations: 11.89 kB / 481.3 MB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.3928, allocations: 90.52 kB / 481.4 MB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007131/0.3935, allocations: 95.56 kB / 481.5 MB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.3941, allocations: 398.1 kB / 481.9 MB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.3942, allocations: 37 kB / 481.9 MB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.257e-05/0.3943, allocations: 47.94 kB / 482 MB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.3954, allocations: 0.6224 MB / 482.6 MB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.3955, allocations: 11.95 kB / 482.6 MB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.3955, allocations: 16 kB / 482.6 MB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.3955, allocations: 12 kB / 482.6 MB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009874/0.3965, allocations: 0.5346 MB / 483.2 MB, free: 3.066 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.004236/0.4008, allocations: 3.805 MB / 487 MB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000946/0.4017, allocations: 415.7 kB / 487.4 MB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.4021, allocations: 213.2 kB / 487.6 MB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003015/0.4051, allocations: 3.455 MB / 491.1 MB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.4051, allocations: 38.88 kB / 491.1 MB, free: 10.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.124e-06/0.4052, allocations: 0 / 491.1 MB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.008671/0.4138, allocations: 2.037 MB / 493.1 MB, free: 8.016 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.47e-05/0.4139, allocations: 63.72 kB / 493.2 MB, free: 7.941 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.4142, allocations: 308.5 kB / 493.5 MB, free: 7.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.4143, allocations: 33.7 kB / 493.5 MB, free: 7.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.4144, allocations: 237.2 kB / 493.8 MB, free: 7.355 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.4145, allocations: 198.3 kB / 493.9 MB, free: 7.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.4147, allocations: 118.3 kB / 494.1 MB, free: 7.035 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4148, allocations: 350.8 kB / 494.4 MB, free: 6.684 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.4151, allocations: 181.2 kB / 494.6 MB, free: 6.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003878/0.4155, allocations: 332 kB / 494.9 MB, free: 6.125 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000745/0.4163, allocations: 0.5432 MB / 495.5 MB, free: 5.523 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4163, allocations: 8 kB / 495.5 MB, free: 5.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001186/0.4175, allocations: 0.6741 MB / 496.1 MB, free: 4.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.4175, allocations: 11.94 kB / 496.1 MB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4175, allocations: 4 kB / 496.1 MB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008261/0.4258, allocations: 442 kB / 496.6 MB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005105/0.4263, allocations: 151.8 kB / 496.7 MB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.4282, allocations: 3.081 MB / 499.8 MB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.4285, allocations: 20.88 kB / 499.8 MB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.4286, allocations: 28 kB / 499.9 MB, free: 0.875 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.0002378/0.4288, allocations: 193.6 kB / 0.4883 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.4289, allocations: 43.72 kB / 0.4884 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.4304, allocations: 1.056 MB / 0.4894 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.4304, allocations: 15.98 kB / 0.4894 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.4304, allocations: 0 / 0.4894 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001103/0.4315, allocations: 1.091 MB / 0.4905 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.4336, allocations: 1.727 MB / 0.4922 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4336, allocations: 0 / 0.4922 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.434, allocations: 107.8 kB / 0.4923 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002862/0.4369, allocations: 353 kB / 0.4926 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.326e-05/0.4369, allocations: 15.98 kB / 0.4926 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000786/0.4377, allocations: 1.144 MB / 0.4937 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4377, allocations: 4.062 kB / 0.4937 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.4392, allocations: 1.129 MB / 0.4948 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.4393, allocations: 124.7 kB / 0.495 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.763e-05/0.4394, allocations: 12 kB / 0.495 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.4397, allocations: 15.94 kB / 0.495 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.506e-05/0.4397, allocations: 32.52 kB / 0.495 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.4398, allocations: 23.98 kB / 0.495 GB, free: 9.543 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.44, allocations: 251 kB / 0.4953 GB, free: 9.297 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.44, allocations: 0 / 0.4953 GB, free: 9.297 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004995/0.445, allocations: 0.9779 MB / 0.4962 GB, free: 8.316 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.03196/0.477, allocations: 9.462 MB / 0.5055 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.479, allocations: 0.7124 MB / 0.5062 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.479, allocations: 3.938 kB / 0.5062 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006875/0.4797, allocations: 363.5 kB / 0.5065 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.4812, allocations: 272.8 kB / 0.5068 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.4915, allocations: 5.333 MB / 0.512 GB, free: 7.914 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.492, allocations: 0.8686 MB / 0.5128 GB, free: 7.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000523/0.4925, allocations: 228.2 kB / 0.5131 GB, free: 6.793 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.4928, allocations: 203.4 kB / 0.5133 GB, free: 6.594 MB / 446.1 MB Notification: Performance of SimCode: time 1.113e-06/0.4928, allocations: 4 kB / 0.5133 GB, free: 6.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2364/0.7292, allocations: 42.21 MB / 0.5545 GB, free: 147.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.71, allocations: 6.625 kB / 0.5545 GB, free: 147.5 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