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.001127/0.001127, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001239/0.001239, allocations: 191 kB / 18 MB, free: 5.098 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.91 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2422, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.02844/0.2707, allocations: 26.59 MB / 426.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02778/0.2985, allocations: 24.85 MB / 451.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005022/0.299, allocations: 4 kB / 451.7 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.3001, allocations: 314.3 kB / 452 MB, free: 4.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.3012, allocations: 377.8 kB / 452.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01169/0.3129, allocations: 4.09 MB / 456.5 MB, free: 416 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.3142, allocations: 0.9425 MB / 457.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.3145, allocations: 113 kB / 457.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007739/0.3153, allocations: 394.6 kB / 457.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004581/0.3158, allocations: 298.8 kB / 458.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.13e-05/0.3158, allocations: 36 kB / 458.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01725/0.3331, allocations: 10.42 MB / 468.6 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.3334, allocations: 111.6 kB / 468.7 MB, free: 4.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000391/0.3338, allocations: 223.2 kB / 469 MB, free: 3.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02552/0.3593, allocations: 11.49 MB / 480.4 MB, free: 8.363 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.3594, allocations: 8 kB / 480.5 MB, free: 8.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3594, allocations: 0 / 480.5 MB, free: 8.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.3594, allocations: 0 / 480.5 MB, free: 8.355 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.006509/0.3659, allocations: 1.184 MB / 481.6 MB, free: 7.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.366, allocations: 11.89 kB / 481.7 MB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.276e-05/0.3661, allocations: 70.53 kB / 481.7 MB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005816/0.3667, allocations: 67.73 kB / 481.8 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.3673, allocations: 319 kB / 482.1 MB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.3673, allocations: 36.59 kB / 482.1 MB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.616e-05/0.3674, allocations: 31.94 kB / 482.2 MB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008977/0.3683, allocations: 463.8 kB / 482.6 MB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3683, allocations: 4 kB / 482.6 MB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.3684, allocations: 19.94 kB / 482.6 MB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3684, allocations: 8 kB / 482.7 MB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007396/0.3691, allocations: 382.3 kB / 483 MB, free: 5.645 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.003703/0.3728, allocations: 2.957 MB / 486 MB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.3735, allocations: 290.8 kB / 486.3 MB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3737, allocations: 132.8 kB / 486.4 MB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002246/0.376, allocations: 2.474 MB / 488.9 MB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.376, allocations: 38.56 kB / 488.9 MB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 3.747e-06/0.3761, allocations: 0 / 488.9 MB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.005402/0.3815, allocations: 1.29 MB / 490.2 MB, free: 13.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.3815, allocations: 67.28 kB / 490.3 MB, free: 13.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.3818, allocations: 258.6 kB / 490.5 MB, free: 13.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.3819, allocations: 33.7 kB / 490.5 MB, free: 13.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.382, allocations: 192.4 kB / 490.7 MB, free: 13.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.3821, allocations: 126.9 kB / 490.9 MB, free: 12.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.3822, allocations: 78.12 kB / 490.9 MB, free: 12.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.3823, allocations: 342.8 kB / 491.3 MB, free: 12.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.3825, allocations: 116.8 kB / 491.4 MB, free: 12.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.3828, allocations: 226 kB / 491.6 MB, free: 12.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.3833, allocations: 373.5 kB / 492 MB, free: 11.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3833, allocations: 4 kB / 492 MB, free: 11.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008323/0.3842, allocations: 470.6 kB / 492.4 MB, free: 11.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3842, allocations: 6.344 kB / 492.4 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3842, allocations: 4 kB / 492.4 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004884/0.3891, allocations: 241.8 kB / 492.7 MB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.3895, allocations: 83.91 kB / 492.8 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.391, allocations: 1.943 MB / 494.7 MB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.3912, allocations: 12 kB / 494.7 MB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3913, allocations: 20.19 kB / 494.7 MB, free: 8.77 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.0002383/0.3915, allocations: 163.3 kB / 494.9 MB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.3917, allocations: 43.73 kB / 494.9 MB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.3927, allocations: 0.6852 MB / 495.6 MB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3927, allocations: 7.984 kB / 495.6 MB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.3928, allocations: 0 / 495.6 MB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008404/0.3936, allocations: 0.8602 MB / 496.5 MB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.3951, allocations: 1.195 MB / 497.7 MB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.3951, allocations: 4 kB / 497.7 MB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.3954, allocations: 67.89 kB / 497.8 MB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001595/0.397, allocations: 180.5 kB / 497.9 MB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.397, allocations: 7.938 kB / 497.9 MB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003641/0.3974, allocations: 0.5719 MB / 498.5 MB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.3974, allocations: 7.922 kB / 498.5 MB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009564/0.3984, allocations: 0.7315 MB / 499.3 MB, free: 4.039 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.3985, allocations: 104.9 kB / 499.4 MB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.3986, allocations: 15.89 kB / 499.4 MB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.3988, allocations: 12.06 kB / 499.4 MB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.944e-05/0.3988, allocations: 23.91 kB / 499.4 MB, free: 3.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.3989, allocations: 19.98 kB / 499.4 MB, free: 3.848 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.3991, allocations: 221.9 kB / 499.6 MB, free: 3.629 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.452e-06/0.3991, allocations: 0 / 499.6 MB, free: 3.629 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004118/0.4032, allocations: 0.7441 MB / 0.4887 GB, free: 2.883 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.02591/0.4291, allocations: 7.588 MB / 0.4961 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.4302, allocations: 487.4 kB / 0.4965 GB, free: 10.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4302, allocations: 0 / 0.4965 GB, free: 10.76 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.4307, allocations: 220.2 kB / 0.4967 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.4318, allocations: 192.6 kB / 0.4969 GB, free: 10.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/0.44, allocations: 4.056 MB / 0.5009 GB, free: 6.121 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.4404, allocations: 0.809 MB / 0.5017 GB, free: 5.289 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004588/0.4409, allocations: 191.6 kB / 0.5019 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.4411, allocations: 139.4 kB / 0.502 GB, free: 4.969 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4411, allocations: 0 / 0.502 GB, free: 4.969 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06227/0.5034, allocations: 33.72 MB / 0.5349 GB, free: 3.359 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.18, allocations: 3.75 kB / 0.5349 GB, free: 3.355 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