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.001975/0.001975, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.002141/0.002141, allocations: 191.3 kB / 17.85 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.188/2.188, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 51.03 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1438, allocations: 49.44 MB / 350.1 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.3258/0.4696, allocations: 37.64 MB / 387.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.05534/0.525, allocations: 30.6 MB / 418.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008501/0.5259, allocations: 6.469 kB / 418.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.5278, allocations: 415.1 kB / 418.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.53, allocations: 0.5109 MB / 419.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.027/0.5571, allocations: 5.133 MB / 424.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.5601, allocations: 1.355 MB / 425.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004784/0.5606, allocations: 171.2 kB / 426 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.562, allocations: 0.5371 MB / 426.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.563, allocations: 438.3 kB / 426.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.5632, allocations: 52 kB / 427 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04135/0.6045, allocations: 12.78 MB / 439.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000494/0.6051, allocations: 151.5 kB / 439.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009449/0.6061, allocations: 322.8 kB / 440.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06958/0.6756, allocations: 14.91 MB / 455.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.6757, allocations: 0 / 455.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6757, allocations: 0 / 455.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.6758, allocations: 0 / 455.1 MB, free: 11.08 MB / 366.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.01141/0.6872, allocations: 1.419 MB / 456.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.6873, allocations: 11.89 kB / 456.6 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001544/0.6874, allocations: 86.52 kB / 456.6 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.6888, allocations: 107.2 kB / 456.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009136/0.6897, allocations: 374 kB / 457.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/0.6898, allocations: 40.94 kB / 457.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.6899, allocations: 48 kB / 457.2 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.692, allocations: 0.6166 MB / 457.8 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.692, allocations: 3.938 kB / 457.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.148e-05/0.6921, allocations: 20 kB / 457.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/0.6922, allocations: 12 kB / 457.9 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001845/0.694, allocations: 0.5307 MB / 458.4 MB, free: 7.68 MB / 366.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.006516/0.7006, allocations: 3.819 MB / 462.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.7022, allocations: 404.2 kB / 462.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005142/0.7027, allocations: 217.5 kB / 462.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005079/0.7078, allocations: 3.451 MB / 466.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/0.7079, allocations: 39.62 kB / 466.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 4.148e-06/0.7079, allocations: 7.875 kB / 466.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.01628/0.7242, allocations: 2.019 MB / 468.3 MB, free: 12.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.7243, allocations: 63.78 kB / 468.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005268/0.7248, allocations: 308.5 kB / 468.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.7249, allocations: 37.7 kB / 468.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.7251, allocations: 240.5 kB / 469 MB, free: 11.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.7254, allocations: 181.3 kB / 469.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.7256, allocations: 118.2 kB / 469.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.7259, allocations: 350.8 kB / 469.6 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.7264, allocations: 177.2 kB / 469.8 MB, free: 11.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006761/0.727, allocations: 332.1 kB / 470.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.7283, allocations: 0.5538 MB / 470.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.7283, allocations: 0 / 470.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002038/0.7304, allocations: 0.6735 MB / 471.3 MB, free: 9.453 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.7304, allocations: 11.94 kB / 471.3 MB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.7305, allocations: 4 kB / 471.3 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01563/0.7461, allocations: 446.5 kB / 471.8 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009797/0.7471, allocations: 143.8 kB / 471.9 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.7502, allocations: 3.091 MB / 475 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.7507, allocations: 19.92 kB / 475 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.781e-05/0.7508, allocations: 31.94 kB / 475.1 MB, free: 5.496 MB / 382.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.0003696/0.7512, allocations: 192.9 kB / 475.2 MB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.7514, allocations: 43.52 kB / 475.3 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.7538, allocations: 1.048 MB / 476.3 MB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/0.7538, allocations: 15.98 kB / 476.3 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.7538, allocations: 0 / 476.3 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001805/0.7557, allocations: 1.087 MB / 477.4 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.7589, allocations: 1.735 MB / 479.2 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.759, allocations: 0 / 479.2 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006171/0.7596, allocations: 99.83 kB / 479.3 MB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004587/0.7642, allocations: 353.7 kB / 479.6 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/0.7643, allocations: 12 kB / 479.6 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009811/0.7652, allocations: 1.151 MB / 480.8 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7653, allocations: 0 / 480.8 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.7675, allocations: 1.128 MB / 481.9 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.7677, allocations: 121.4 kB / 482 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.7678, allocations: 23.88 kB / 482 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/0.7682, allocations: 11.94 kB / 482.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.7683, allocations: 40.45 kB / 482.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.876e-05/0.7684, allocations: 19.98 kB / 482.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003912/0.7688, allocations: 251 kB / 482.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7688, allocations: 0 / 482.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007007/0.7758, allocations: 0.9566 MB / 483.3 MB, free: 12.97 MB / 398.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.05211/0.828, allocations: 9.44 MB / 492.8 MB, free: 3.484 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.83, allocations: 0.7428 MB / 493.5 MB, free: 2.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.83, allocations: 4 kB / 493.5 MB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006296/0.8306, allocations: 375.4 kB / 493.9 MB, free: 2.363 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.8321, allocations: 274.7 kB / 494.1 MB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.8424, allocations: 5.383 MB / 499.5 MB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.8428, allocations: 0.8687 MB / 0.4887 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005637/0.8434, allocations: 241.3 kB / 0.4889 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.8437, allocations: 195.4 kB / 0.4891 GB, free: 11.17 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.8437, allocations: 0 / 0.4891 GB, free: 11.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09407/0.9378, allocations: 42 MB / 0.5301 GB, free: 1.273 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.59, allocations: 4 kB / 0.5301 GB, free: 1.27 MB / 446.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