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.00111/0.00111, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001174/0.001175, allocations: 200 kB / 18.01 MB, free: 5.047 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.268/1.268, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2624, allocations: 49.42 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03775/0.3002, allocations: 37.64 MB / 437.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02946/0.3297, allocations: 30.59 MB / 468.5 MB, free: 4.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000504/0.3302, allocations: 8 kB / 468.5 MB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.3313, allocations: 429.7 kB / 468.9 MB, free: 3.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009728/0.3323, allocations: 0.5322 MB / 469.4 MB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01438/0.3467, allocations: 5.241 MB / 474.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.3484, allocations: 1.352 MB / 476 MB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.3487, allocations: 182.4 kB / 476.2 MB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008149/0.3495, allocations: 0.5371 MB / 476.7 MB, free: 12.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.35, allocations: 430.3 kB / 477.2 MB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-05/0.3501, allocations: 56 kB / 477.2 MB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02157/0.3717, allocations: 12.81 MB / 490 MB, free: 14.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.372, allocations: 155.5 kB / 490.2 MB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004634/0.3725, allocations: 318.8 kB / 490.5 MB, free: 14.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0334/0.4059, allocations: 14.92 MB / 0.4936 GB, free: 15.33 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4059, allocations: 0 / 0.4936 GB, free: 15.33 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4059, allocations: 0 / 0.4936 GB, free: 15.33 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.406, allocations: 0 / 0.4936 GB, free: 15.33 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.007601/0.4136, allocations: 1.475 MB / 0.495 GB, free: 13.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4136, allocations: 11.89 kB / 0.495 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.4137, allocations: 90.52 kB / 0.4951 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007299/0.4145, allocations: 95.61 kB / 0.4952 GB, free: 13.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006513/0.4151, allocations: 390.1 kB / 0.4956 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.4152, allocations: 33 kB / 0.4956 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.4153, allocations: 52 kB / 0.4956 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.4164, allocations: 0.6244 MB / 0.4962 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.4165, allocations: 0 / 0.4962 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.134e-05/0.4165, allocations: 16 kB / 0.4963 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4166, allocations: 12 kB / 0.4963 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009525/0.4175, allocations: 0.5346 MB / 0.4968 GB, free: 11.85 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.004191/0.4217, allocations: 3.811 MB / 0.5005 GB, free: 7.734 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008791/0.4226, allocations: 411.5 kB / 0.5009 GB, free: 7.328 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.4229, allocations: 205.5 kB / 0.5011 GB, free: 7.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003416/0.4263, allocations: 3.463 MB / 0.5045 GB, free: 2.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.4264, allocations: 46.88 kB / 0.5045 GB, free: 2.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.996e-06/0.4264, allocations: 4 kB / 0.5045 GB, free: 2.902 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009363/0.4358, allocations: 2.03 MB / 0.5065 GB, free: 0.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.4359, allocations: 63.78 kB / 0.5066 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.4362, allocations: 312.5 kB / 0.5069 GB, free: 412 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.4362, allocations: 33.7 kB / 0.5069 GB, free: 372 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.4364, allocations: 233.2 kB / 0.5071 GB, free: 136 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.4366, allocations: 202.2 kB / 0.5073 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.4367, allocations: 118.3 kB / 0.5074 GB, free: 15.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4369, allocations: 350.8 kB / 0.5078 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.4372, allocations: 181.2 kB / 0.5079 GB, free: 15.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.4376, allocations: 331.1 kB / 0.5083 GB, free: 14.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007337/0.4383, allocations: 0.5485 MB / 0.5088 GB, free: 14.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4383, allocations: 3.938 kB / 0.5088 GB, free: 14.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001182/0.4395, allocations: 0.6738 MB / 0.5095 GB, free: 13.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.4395, allocations: 11.94 kB / 0.5095 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4396, allocations: 4 kB / 0.5095 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009571/0.4491, allocations: 454.6 kB / 0.5099 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005592/0.4497, allocations: 139.8 kB / 0.51 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002096/0.4518, allocations: 3.093 MB / 0.5131 GB, free: 9.691 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.4522, allocations: 16 kB / 0.5131 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.4522, allocations: 31.98 kB / 0.5131 GB, free: 9.645 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.0002546/0.4525, allocations: 185.9 kB / 0.5133 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.4526, allocations: 43.77 kB / 0.5133 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.4541, allocations: 1.056 MB / 0.5144 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4541, allocations: 7.984 kB / 0.5144 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.4541, allocations: 7.938 kB / 0.5144 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001237/0.4554, allocations: 1.091 MB / 0.5154 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.4576, allocations: 1.722 MB / 0.5171 GB, free: 5.367 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.4577, allocations: 11.92 kB / 0.5171 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/0.458, allocations: 99.89 kB / 0.5172 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003068/0.4611, allocations: 341.1 kB / 0.5176 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.4612, allocations: 19.98 kB / 0.5176 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007824/0.462, allocations: 1.144 MB / 0.5187 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.462, allocations: 4.031 kB / 0.5187 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.4636, allocations: 1.133 MB / 0.5198 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.4637, allocations: 120.8 kB / 0.5199 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.168e-05/0.4638, allocations: 19.89 kB / 0.5199 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.4641, allocations: 12 kB / 0.5199 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.4642, allocations: 36.55 kB / 0.52 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-05/0.4642, allocations: 24 kB / 0.52 GB, free: 2.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.4645, allocations: 247 kB / 0.5202 GB, free: 2.082 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.4645, allocations: 0 / 0.5202 GB, free: 2.082 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005723/0.4703, allocations: 0.9817 MB / 0.5212 GB, free: 1.098 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.03292/0.5032, allocations: 9.452 MB / 0.5304 GB, free: 7.598 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.5049, allocations: 0.7268 MB / 0.5311 GB, free: 6.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.505, allocations: 0 / 0.5311 GB, free: 6.848 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006295/0.5056, allocations: 364.7 kB / 0.5315 GB, free: 6.496 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.5071, allocations: 264.9 kB / 0.5317 GB, free: 6.238 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009962/0.517, allocations: 5.344 MB / 0.537 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1696/0.6867, allocations: 0.8617 MB / 0.5378 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007286/0.6875, allocations: 238.6 kB / 0.538 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.6878, allocations: 202 kB / 0.5382 GB, free: 126.8 MB / 462.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6878, allocations: 2 kB / 0.5382 GB, free: 126.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05911/0.7469, allocations: 42.23 MB / 0.5795 GB, free: 93.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.88, allocations: 3.938 kB / 0.5795 GB, free: 93.04 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