Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001935/0.001935, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2358, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04352/0.2793, allocations: 37.74 MB / 446.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03631/0.3157, allocations: 30.63 MB / 477.1 MB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005707/0.3163, allocations: 8 kB / 477.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.3175, allocations: 413.6 kB / 477.6 MB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.3187, allocations: 0.5127 MB / 478.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01402/0.3328, allocations: 5.158 MB / 483.2 MB, free: 6.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001971/0.3348, allocations: 1.348 MB / 484.6 MB, free: 5.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003107/0.3351, allocations: 166.6 kB / 484.7 MB, free: 5.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009183/0.336, allocations: 0.5333 MB / 485.3 MB, free: 4.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.3366, allocations: 442.2 kB / 485.7 MB, free: 4.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.617e-05/0.3367, allocations: 56 kB / 485.8 MB, free: 4.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02303/0.3598, allocations: 12.81 MB / 498.6 MB, free: 7.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.3601, allocations: 147.6 kB / 498.7 MB, free: 7.285 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005046/0.3606, allocations: 322.7 kB / 499 MB, free: 6.969 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03578/0.3964, allocations: 14.94 MB / 0.5019 GB, free: 8.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3965, allocations: 0 / 0.5019 GB, free: 8.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.3965, allocations: 7.922 kB / 0.5019 GB, free: 8.008 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.267e-05/0.3965, allocations: 0 / 0.5019 GB, free: 8.008 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.008001/0.4045, allocations: 1.479 MB / 0.5034 GB, free: 6.469 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.4046, allocations: 8.031 kB / 0.5034 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.4047, allocations: 94.45 kB / 0.5035 GB, free: 6.359 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.4055, allocations: 95.58 kB / 0.5036 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/0.4062, allocations: 382.1 kB / 0.5039 GB, free: 5.852 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.4062, allocations: 37 kB / 0.504 GB, free: 5.816 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.412e-05/0.4063, allocations: 52 kB / 0.504 GB, free: 5.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.4077, allocations: 0.6127 MB / 0.5046 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.4077, allocations: 19.88 kB / 0.5046 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.4078, allocations: 16 kB / 0.5046 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.4078, allocations: 15.98 kB / 0.5047 GB, free: 5.055 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.4089, allocations: 0.5268 MB / 0.5052 GB, free: 4.527 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.004698/0.4136, allocations: 3.796 MB / 0.5089 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.4146, allocations: 412.6 kB / 0.5093 GB, free: 16 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003495/0.415, allocations: 209.6 kB / 0.5095 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003625/0.4186, allocations: 3.462 MB / 0.5129 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.4187, allocations: 34.94 kB / 0.5129 GB, free: 11.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.224e-06/0.4187, allocations: 4 kB / 0.5129 GB, free: 11.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009618/0.4283, allocations: 2.038 MB / 0.5149 GB, free: 9.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.4284, allocations: 67.72 kB / 0.5149 GB, free: 9.402 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.4288, allocations: 304.5 kB / 0.5152 GB, free: 9.102 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.4288, allocations: 33.7 kB / 0.5153 GB, free: 9.062 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.429, allocations: 249 kB / 0.5155 GB, free: 8.816 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.4292, allocations: 198.3 kB / 0.5157 GB, free: 8.621 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.4294, allocations: 118.3 kB / 0.5158 GB, free: 8.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4296, allocations: 346.8 kB / 0.5161 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.4299, allocations: 181.2 kB / 0.5163 GB, free: 7.977 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004612/0.4304, allocations: 324.1 kB / 0.5166 GB, free: 7.598 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008541/0.4313, allocations: 0.5523 MB / 0.5172 GB, free: 6.984 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.4313, allocations: 4 kB / 0.5172 GB, free: 6.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001345/0.4326, allocations: 0.6737 MB / 0.5178 GB, free: 6.289 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4327, allocations: 11.94 kB / 0.5178 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.4327, allocations: 4 kB / 0.5178 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009659/0.4424, allocations: 442.6 kB / 0.5183 GB, free: 5.832 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.443, allocations: 143.8 kB / 0.5184 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/0.4455, allocations: 3.101 MB / 0.5214 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.4459, allocations: 16 kB / 0.5214 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.446, allocations: 24 kB / 0.5215 GB, free: 2.336 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.0003203/0.4463, allocations: 197.2 kB / 0.5216 GB, free: 2.137 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.4465, allocations: 43.72 kB / 0.5217 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.4482, allocations: 1.056 MB / 0.5227 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.4482, allocations: 12 kB / 0.5227 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4482, allocations: 3.938 kB / 0.5227 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001337/0.4496, allocations: 1.087 MB / 0.5238 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.4521, allocations: 1.733 MB / 0.5255 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.4521, allocations: 3.938 kB / 0.5255 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004024/0.4525, allocations: 103.9 kB / 0.5256 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00327/0.4558, allocations: 345.1 kB / 0.5259 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.341e-05/0.4559, allocations: 20.05 kB / 0.5259 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008465/0.4567, allocations: 1.152 MB / 0.5271 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4568, allocations: 0 / 0.5271 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.4584, allocations: 1.129 MB / 0.5282 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.4586, allocations: 132.8 kB / 0.5283 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.364e-05/0.4587, allocations: 15.94 kB / 0.5283 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.459, allocations: 12 kB / 0.5283 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.984e-05/0.4591, allocations: 32.52 kB / 0.5284 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.4591, allocations: 19.98 kB / 0.5284 GB, free: 11 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000296/0.4594, allocations: 251 kB / 0.5286 GB, free: 10.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4594, allocations: 0 / 0.5286 GB, free: 10.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005387/0.4648, allocations: 0.9857 MB / 0.5296 GB, free: 9.766 MB / 462.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.03388/0.4987, allocations: 9.444 MB / 0.5388 GB, free: 280 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1879/0.6866, allocations: 0.7187 MB / 0.5395 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6867, allocations: 0.5 kB / 0.5395 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/0.6876, allocations: 370 kB / 0.5399 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.689, allocations: 266.2 kB / 0.5401 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.6994, allocations: 5.33 MB / 0.5453 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.6997, allocations: 0.8683 MB / 0.5462 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.7002, allocations: 239.8 kB / 0.5464 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.7004, allocations: 205.5 kB / 0.5466 GB, free: 117.7 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7004, allocations: 0 / 0.5466 GB, free: 117.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0686/0.769, allocations: 42.26 MB / 0.5879 GB, free: 80.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.65, allocations: 4.625 kB / 0.5879 GB, free: 80.64 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches