Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_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.001293/0.001293, allocations: 106.6 kB / 17.06 MB, free: 5.82 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.001388/0.001388, allocations: 195.9 kB / 18 MB, free: 4.965 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2475, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.03045/0.278, allocations: 26.59 MB / 426.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02961/0.3077, allocations: 24.86 MB / 451.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003606/0.3081, allocations: 7.938 kB / 451.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000825/0.3089, allocations: 294.3 kB / 452 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008024/0.3097, allocations: 357.9 kB / 452.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.3206, allocations: 4.023 MB / 456.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.322, allocations: 0.9386 MB / 457.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.3222, allocations: 109 kB / 457.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006438/0.3229, allocations: 394.7 kB / 457.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.3233, allocations: 294.8 kB / 458.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-05/0.3233, allocations: 40 kB / 458.1 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02027/0.3436, allocations: 10.42 MB / 468.5 MB, free: 4.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.3439, allocations: 107.7 kB / 468.6 MB, free: 4.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003666/0.3443, allocations: 223.1 kB / 468.9 MB, free: 3.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03322/0.3775, allocations: 11.5 MB / 480.4 MB, free: 8.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.3775, allocations: 7.984 kB / 480.4 MB, free: 8.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3775, allocations: 0 / 480.4 MB, free: 8.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.3776, allocations: 0 / 480.4 MB, free: 8.469 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.006419/0.384, allocations: 1.177 MB / 481.5 MB, free: 7.234 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3841, allocations: 8.031 kB / 481.5 MB, free: 7.227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.882e-05/0.3842, allocations: 70.53 kB / 481.6 MB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005387/0.3847, allocations: 71.73 kB / 481.7 MB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005296/0.3852, allocations: 335 kB / 482 MB, free: 6.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.3853, allocations: 20.66 kB / 482 MB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.064e-05/0.3853, allocations: 35.94 kB / 482.1 MB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009125/0.3863, allocations: 463.8 kB / 482.5 MB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.3863, allocations: 7.938 kB / 482.5 MB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.3863, allocations: 15.94 kB / 482.5 MB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3864, allocations: 8 kB / 482.6 MB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007783/0.3871, allocations: 386.3 kB / 482.9 MB, free: 5.758 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.003629/0.3908, allocations: 2.949 MB / 485.9 MB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007289/0.3915, allocations: 302.8 kB / 486.2 MB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.3918, allocations: 128.8 kB / 486.3 MB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002809/0.3946, allocations: 2.47 MB / 488.8 MB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.3946, allocations: 34.56 kB / 488.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 4.308e-06/0.3947, allocations: 4 kB / 488.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.005423/0.4001, allocations: 1.306 MB / 490.1 MB, free: 13.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.4002, allocations: 55.41 kB / 490.2 MB, free: 13.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.4005, allocations: 258.6 kB / 490.4 MB, free: 13.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.4005, allocations: 29.7 kB / 490.4 MB, free: 13.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.4007, allocations: 196.4 kB / 490.6 MB, free: 13.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.4008, allocations: 126.9 kB / 490.8 MB, free: 13.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.4009, allocations: 78.12 kB / 490.8 MB, free: 12.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4011, allocations: 342.8 kB / 491.2 MB, free: 12.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.4013, allocations: 112.8 kB / 491.3 MB, free: 12.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.4016, allocations: 233.9 kB / 491.5 MB, free: 12.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005676/0.4022, allocations: 369.5 kB / 491.9 MB, free: 11.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.4022, allocations: 4 kB / 491.9 MB, free: 11.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008981/0.4031, allocations: 467 kB / 492.3 MB, free: 11.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4032, allocations: 10.72 kB / 492.3 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4032, allocations: 4 kB / 492.3 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004418/0.4076, allocations: 241.4 kB / 492.6 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.408, allocations: 91.83 kB / 492.7 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.4097, allocations: 1.939 MB / 494.6 MB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.4099, allocations: 8 kB / 494.6 MB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.4099, allocations: 23.98 kB / 494.6 MB, free: 8.879 MB / 414.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.0002155/0.4102, allocations: 161.7 kB / 494.8 MB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.708e-05/0.4102, allocations: 35.81 kB / 494.8 MB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.4114, allocations: 0.6853 MB / 495.5 MB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4114, allocations: 12.06 kB / 495.5 MB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.4114, allocations: 0 / 495.5 MB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009667/0.4124, allocations: 0.864 MB / 496.4 MB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.414, allocations: 1.198 MB / 497.6 MB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.414, allocations: 0 / 497.6 MB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.4143, allocations: 59.91 kB / 497.7 MB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.4158, allocations: 184.5 kB / 497.8 MB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.4159, allocations: 11.98 kB / 497.8 MB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004165/0.4163, allocations: 0.5641 MB / 498.4 MB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4163, allocations: 4.031 kB / 498.4 MB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.4173, allocations: 0.7391 MB / 499.2 MB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.772e-05/0.4174, allocations: 101 kB / 499.3 MB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.642e-05/0.4175, allocations: 19.88 kB / 499.3 MB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.4177, allocations: 8 kB / 499.3 MB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.4177, allocations: 23.91 kB / 499.3 MB, free: 3.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.4178, allocations: 16 kB / 499.3 MB, free: 3.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002534/0.418, allocations: 226 kB / 499.5 MB, free: 3.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.418, allocations: 0 / 499.5 MB, free: 3.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003845/0.4219, allocations: 0.7442 MB / 0.4886 GB, free: 3 MB / 414.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.02552/0.4474, allocations: 7.588 MB / 0.496 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.4485, allocations: 494.7 kB / 0.4964 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.4485, allocations: 0 / 0.4964 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.4489, allocations: 220.2 kB / 0.4967 GB, free: 10.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.4501, allocations: 193.4 kB / 0.4968 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00811/0.4582, allocations: 4.043 MB / 0.5008 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.4587, allocations: 0.809 MB / 0.5016 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004589/0.4592, allocations: 199.4 kB / 0.5018 GB, free: 5.219 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.4594, allocations: 139.4 kB / 0.5019 GB, free: 5.082 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4594, allocations: 0 / 0.5019 GB, free: 5.082 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07309/0.5325, allocations: 33.7 MB / 0.5348 GB, free: 3.484 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.74, allocations: 3.75 kB / 0.5348 GB, free: 3.48 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a1/R134a1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches