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.001403/0.001403, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.001649, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2333, allocations: 50.54 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.0385/0.2718, allocations: 37.75 MB / 446.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.3035, allocations: 30.63 MB / 477.1 MB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000544/0.3041, allocations: 8 kB / 477.1 MB, free: 12.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.3053, allocations: 433.6 kB / 477.6 MB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001235/0.3066, allocations: 0.5283 MB / 478.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01362/0.3202, allocations: 5.245 MB / 483.3 MB, free: 6.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.3221, allocations: 1.359 MB / 484.7 MB, free: 5.363 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.3225, allocations: 170.6 kB / 484.9 MB, free: 5.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009851/0.3235, allocations: 0.5371 MB / 485.4 MB, free: 4.652 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006487/0.3241, allocations: 438.2 kB / 485.8 MB, free: 4.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.3243, allocations: 55.98 kB / 485.9 MB, free: 4.168 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02175/0.346, allocations: 12.82 MB / 498.7 MB, free: 7.324 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.3463, allocations: 147.6 kB / 498.9 MB, free: 7.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004973/0.3468, allocations: 322.7 kB / 499.2 MB, free: 6.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03132/0.3782, allocations: 14.93 MB / 0.502 GB, free: 7.914 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.3782, allocations: 0 / 0.502 GB, free: 7.914 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3782, allocations: 3.938 kB / 0.5021 GB, free: 7.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.3783, allocations: 4 kB / 0.5021 GB, free: 7.906 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.007341/0.3856, allocations: 1.475 MB / 0.5035 GB, free: 6.371 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3857, allocations: 12.03 kB / 0.5035 GB, free: 6.359 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.57e-05/0.3858, allocations: 90.52 kB / 0.5036 GB, free: 6.262 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007026/0.3865, allocations: 95.56 kB / 0.5037 GB, free: 6.168 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/0.3871, allocations: 386.1 kB / 0.5041 GB, free: 5.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.3871, allocations: 33 kB / 0.5041 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.648e-05/0.3872, allocations: 52 kB / 0.5041 GB, free: 5.668 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.3883, allocations: 0.6166 MB / 0.5047 GB, free: 5.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.3884, allocations: 7.891 kB / 0.5047 GB, free: 4.996 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/0.3884, allocations: 27.98 kB / 0.5048 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3884, allocations: 12 kB / 0.5048 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009622/0.3894, allocations: 0.5229 MB / 0.5053 GB, free: 4.434 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.004475/0.3939, allocations: 3.804 MB / 0.509 GB, free: 332 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009125/0.3948, allocations: 408.6 kB / 0.5094 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.3951, allocations: 213.5 kB / 0.5096 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003093/0.3982, allocations: 3.459 MB / 0.513 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3983, allocations: 38.94 kB / 0.513 GB, free: 11.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.986e-06/0.3983, allocations: 4 kB / 0.513 GB, free: 11.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009506/0.4078, allocations: 2.034 MB / 0.515 GB, free: 9.383 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.4079, allocations: 67.78 kB / 0.5151 GB, free: 9.305 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.4082, allocations: 304.5 kB / 0.5154 GB, free: 9.004 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.604e-05/0.4083, allocations: 41.64 kB / 0.5154 GB, free: 8.957 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.4084, allocations: 237.1 kB / 0.5156 GB, free: 8.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.4086, allocations: 194.3 kB / 0.5158 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.4087, allocations: 118.3 kB / 0.5159 GB, free: 8.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4089, allocations: 350.8 kB / 0.5163 GB, free: 8.059 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.4092, allocations: 181.2 kB / 0.5164 GB, free: 7.883 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003925/0.4096, allocations: 328.1 kB / 0.5167 GB, free: 7.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007541/0.4103, allocations: 0.5523 MB / 0.5173 GB, free: 6.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4104, allocations: 0 / 0.5173 GB, free: 6.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001241/0.4116, allocations: 0.6776 MB / 0.5179 GB, free: 6.191 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4116, allocations: 14.12 kB / 0.518 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4117, allocations: 4 kB / 0.518 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009484/0.4211, allocations: 442.6 kB / 0.5184 GB, free: 5.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.4218, allocations: 143.8 kB / 0.5185 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.4238, allocations: 3.097 MB / 0.5215 GB, free: 2.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003319/0.4241, allocations: 15.98 kB / 0.5216 GB, free: 2.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.4242, allocations: 28 kB / 0.5216 GB, free: 2.238 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.0002697/0.4245, allocations: 197.2 kB / 0.5218 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.4246, allocations: 47.7 kB / 0.5218 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.4261, allocations: 1.052 MB / 0.5229 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.4261, allocations: 15.98 kB / 0.5229 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4261, allocations: 3.938 kB / 0.5229 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/0.4273, allocations: 1.079 MB / 0.5239 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.4294, allocations: 1.741 MB / 0.5256 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4294, allocations: 3.938 kB / 0.5256 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.4298, allocations: 95.89 kB / 0.5257 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003028/0.4329, allocations: 357.1 kB / 0.5261 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.4329, allocations: 12 kB / 0.5261 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006974/0.4336, allocations: 1.152 MB / 0.5272 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4336, allocations: 4.047 kB / 0.5272 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.4351, allocations: 1.136 MB / 0.5283 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.4353, allocations: 120.8 kB / 0.5284 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.597e-05/0.4353, allocations: 23.92 kB / 0.5284 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.4356, allocations: 8 kB / 0.5285 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.4357, allocations: 36.52 kB / 0.5285 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/0.4357, allocations: 19.98 kB / 0.5285 GB, free: 10.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.436, allocations: 251 kB / 0.5287 GB, free: 10.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.436, allocations: 0 / 0.5287 GB, free: 10.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005022/0.441, allocations: 0.9779 MB / 0.5297 GB, free: 9.668 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.03286/0.4739, allocations: 9.448 MB / 0.5389 GB, free: 176 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.193/0.667, allocations: 0.7191 MB / 0.5396 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.6671, allocations: 5.062 kB / 0.5396 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008778/0.6679, allocations: 369.1 kB / 0.54 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.6695, allocations: 266.1 kB / 0.5402 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.6802, allocations: 5.333 MB / 0.5455 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.6805, allocations: 0.8653 MB / 0.5463 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005784/0.6811, allocations: 245.2 kB / 0.5465 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.6814, allocations: 197.3 kB / 0.5467 GB, free: 117.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6814, allocations: 3.969 kB / 0.5467 GB, free: 117.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07665/0.758, allocations: 42.27 MB / 0.588 GB, free: 80.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.64, allocations: 4.625 kB / 0.588 GB, free: 80.73 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.0.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