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.001678/0.001679, allocations: 101.5 kB / 17.58 MB, free: 5.418 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.002068/0.002068, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.616/2.616, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002505/0.002505, allocations: 55.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1682, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.07923/0.2475, allocations: 37.65 MB / 365 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.4622/0.7097, allocations: 30.6 MB / 395.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.7111, allocations: 6.812 kB / 395.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.7132, allocations: 405.1 kB / 396 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002161/0.7154, allocations: 0.5181 MB / 396.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02945/0.7449, allocations: 5.132 MB / 401.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003244/0.7481, allocations: 1.361 MB / 403 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004967/0.7487, allocations: 167.4 kB / 403.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.7504, allocations: 0.5255 MB / 403.7 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.7514, allocations: 445.9 kB / 404.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.7516, allocations: 53.47 kB / 404.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07446/0.826, allocations: 12.78 MB / 417 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006049/0.8267, allocations: 142.1 kB / 417.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.8278, allocations: 324.4 kB / 417.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07908/0.9069, allocations: 14.9 MB / 432.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.907, allocations: 4.75 kB / 432.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.907, allocations: 0 / 432.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.123e-05/0.907, allocations: 8.75 kB / 432.4 MB, free: 6.285 MB / 334.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.01511/0.9222, allocations: 1.416 MB / 433.8 MB, free: 4.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.904e-05/0.9223, allocations: 15.89 kB / 433.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.9224, allocations: 91.3 kB / 433.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.9239, allocations: 95.86 kB / 434 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000888/0.9248, allocations: 383 kB / 434.4 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.868e-05/0.9248, allocations: 33.53 kB / 434.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.925, allocations: 48.81 kB / 434.4 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002075/0.9271, allocations: 0.6166 MB / 435.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.593e-05/0.9271, allocations: 4 kB / 435.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.504e-05/0.9272, allocations: 20.78 kB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/0.9273, allocations: 12 kB / 435.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.9291, allocations: 0.5276 MB / 435.6 MB, free: 2.918 MB / 334.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.007497/0.9366, allocations: 3.822 MB / 439.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.9384, allocations: 413.7 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005222/0.9389, allocations: 210.1 kB / 440.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006638/0.9456, allocations: 3.461 MB / 443.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.9458, allocations: 35.75 kB / 443.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.21e-05/0.9459, allocations: 0 / 443.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.01753/0.9634, allocations: 2.023 MB / 445.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.9636, allocations: 65.03 kB / 445.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.9642, allocations: 308.5 kB / 445.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.485e-05/0.9643, allocations: 33.69 kB / 446 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/0.9646, allocations: 240.6 kB / 446.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.9649, allocations: 184.7 kB / 446.4 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/0.9653, allocations: 118.2 kB / 446.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.9655, allocations: 352.1 kB / 446.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.966, allocations: 185.2 kB / 447 MB, free: 6.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007499/0.9668, allocations: 331 kB / 447.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.9681, allocations: 0.5468 MB / 447.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.9682, allocations: 5.062 kB / 447.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002137/0.9703, allocations: 0.6702 MB / 448.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.9704, allocations: 12.47 kB / 448.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.9704, allocations: 4 kB / 448.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01575/0.9862, allocations: 446.6 kB / 449 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.9873, allocations: 139.8 kB / 449.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.991, allocations: 3.091 MB / 452.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006358/0.9917, allocations: 16.19 kB / 452.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.58e-05/0.9918, allocations: 39.98 kB / 452.3 MB, free: 0.8359 MB / 350.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.0004526/0.9923, allocations: 189.6 kB / 452.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.9925, allocations: 39.53 kB / 452.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.995, allocations: 1.052 MB / 453.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.995, allocations: 15.98 kB / 453.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.9951, allocations: 0 / 453.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001919/0.997, allocations: 1.095 MB / 454.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003814/1.001, allocations: 1.725 MB / 456.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/1.001, allocations: 0 / 456.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006238/1.001, allocations: 111.7 kB / 456.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00427/1.006, allocations: 349.9 kB / 456.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-05/1.006, allocations: 15.98 kB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/1.007, allocations: 1.144 MB / 458 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/1.007, allocations: 0 / 458 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/1.01, allocations: 1.132 MB / 459.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/1.01, allocations: 116.5 kB / 459.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/1.01, allocations: 24.28 kB / 459.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003865/1.01, allocations: 15.94 kB / 459.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/1.01, allocations: 36.55 kB / 459.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-05/1.011, allocations: 19.98 kB / 459.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004676/1.011, allocations: 255 kB / 459.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.011, allocations: 0 / 459.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.01164/1.023, allocations: 0.9527 MB / 460.6 MB, free: 8.328 MB / 366.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.08692/1.11, allocations: 9.43 MB / 470 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003536/1.113, allocations: 0.7351 MB / 470.7 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.113, allocations: 5.062 kB / 470.7 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/1.114, allocations: 367.5 kB / 471.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/1.117, allocations: 281.5 kB / 471.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/1.137, allocations: 5.395 MB / 476.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007263/1.137, allocations: 0.8647 MB / 477.6 MB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001099/1.139, allocations: 232.2 kB / 477.9 MB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/1.139, allocations: 199.4 kB / 478.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/1.139, allocations: 0 / 478.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1477/1.287, allocations: 42 MB / 0.5079 GB, free: 12.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.18/22.46, allocations: 4.562 kB / 0.5079 GB, free: 12.6 MB / 430.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