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: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2") translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009948/0.0009949, allocations: 113.7 kB / 17.07 MB, free: 5.961 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.001066/0.001067, allocations: 198.8 kB / 18 MB, free: 5.051 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.296/1.296, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009555/0.0009556, allocations: 51.91 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2287, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03442/0.2631, allocations: 37.65 MB / 438.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02924/0.2924, allocations: 30.59 MB / 469 MB, free: 4.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005302/0.293, allocations: 8 kB / 469 MB, free: 4.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.2941, allocations: 429.7 kB / 469.4 MB, free: 3.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.2955, allocations: 0.5244 MB / 469.9 MB, free: 3.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.014/0.3095, allocations: 5.238 MB / 475.2 MB, free: 14.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.3115, allocations: 1.363 MB / 476.5 MB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003686/0.3118, allocations: 170.5 kB / 476.7 MB, free: 12.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.313, allocations: 0.5371 MB / 477.2 MB, free: 12.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007171/0.3137, allocations: 434.3 kB / 477.6 MB, free: 11.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.3139, allocations: 52 kB / 477.7 MB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02232/0.3362, allocations: 12.8 MB / 490.5 MB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003129/0.3365, allocations: 151.5 kB / 490.6 MB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005912/0.3371, allocations: 318.8 kB / 491 MB, free: 14.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03404/0.3712, allocations: 14.91 MB / 0.494 GB, free: 15.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3713, allocations: 4 kB / 0.494 GB, free: 15.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3713, allocations: 4 kB / 0.494 GB, free: 15.4 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.444e-05/0.3713, allocations: 0 / 0.494 GB, free: 15.4 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.008299/0.3796, allocations: 1.423 MB / 0.4954 GB, free: 13.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3797, allocations: 15.89 kB / 0.4954 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008027/0.3805, allocations: 87.34 kB / 0.4955 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006494/0.3811, allocations: 389.9 kB / 0.4959 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.3812, allocations: 33 kB / 0.4959 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.3813, allocations: 51.91 kB / 0.496 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3825, allocations: 0.6244 MB / 0.4966 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.3825, allocations: 3.938 kB / 0.4966 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.343e-05/0.3826, allocations: 24 kB / 0.4966 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.3826, allocations: 12 kB / 0.4966 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.3836, allocations: 0.5268 MB / 0.4971 GB, free: 12.08 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.004153/0.3878, allocations: 3.795 MB / 0.5008 GB, free: 7.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000928/0.3887, allocations: 423.7 kB / 0.5012 GB, free: 7.559 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.3891, allocations: 209.5 kB / 0.5014 GB, free: 7.352 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002982/0.392, allocations: 3.455 MB / 0.5048 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.3921, allocations: 42.94 kB / 0.5048 GB, free: 3.145 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.305e-06/0.3921, allocations: 3.938 kB / 0.5048 GB, free: 3.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009453/0.4016, allocations: 2.029 MB / 0.5068 GB, free: 1.031 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.4016, allocations: 63.78 kB / 0.5069 GB, free: 0.957 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.4021, allocations: 300.5 kB / 0.5072 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.4021, allocations: 37.7 kB / 0.5072 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.4023, allocations: 228.6 kB / 0.5074 GB, free: 392 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.4024, allocations: 193.2 kB / 0.5076 GB, free: 196 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.4026, allocations: 118.3 kB / 0.5077 GB, free: 72 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4028, allocations: 346.8 kB / 0.5081 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.4031, allocations: 185.2 kB / 0.5082 GB, free: 15.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.4035, allocations: 324.1 kB / 0.5085 GB, free: 15.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007975/0.4043, allocations: 0.5484 MB / 0.5091 GB, free: 14.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.4043, allocations: 3.984 kB / 0.5091 GB, free: 14.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001331/0.4057, allocations: 0.6778 MB / 0.5097 GB, free: 13.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.4057, allocations: 15.88 kB / 0.5098 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4057, allocations: 4 kB / 0.5098 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009239/0.4149, allocations: 438 kB / 0.5102 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006211/0.4156, allocations: 147.9 kB / 0.5103 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.4177, allocations: 3.089 MB / 0.5133 GB, free: 9.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.4181, allocations: 20 kB / 0.5134 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.4181, allocations: 28 kB / 0.5134 GB, free: 9.91 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.0002701/0.4184, allocations: 193.4 kB / 0.5136 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.4186, allocations: 39.53 kB / 0.5136 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.4201, allocations: 1.055 MB / 0.5146 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.4201, allocations: 12 kB / 0.5146 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4201, allocations: 3.984 kB / 0.5147 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001147/0.4213, allocations: 1.087 MB / 0.5157 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.4235, allocations: 1.725 MB / 0.5174 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4235, allocations: 0 / 0.5174 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.4239, allocations: 103.8 kB / 0.5175 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003069/0.427, allocations: 357 kB / 0.5178 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/0.427, allocations: 15.98 kB / 0.5179 GB, free: 5.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006438/0.4277, allocations: 1.14 MB / 0.519 GB, free: 3.969 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4277, allocations: 8.25 kB / 0.519 GB, free: 3.961 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.4292, allocations: 1.128 MB / 0.5201 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.4293, allocations: 124.5 kB / 0.5202 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.4294, allocations: 16 kB / 0.5202 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.4297, allocations: 11.94 kB / 0.5202 GB, free: 2.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.4297, allocations: 36.52 kB / 0.5203 GB, free: 2.609 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.4298, allocations: 19.98 kB / 0.5203 GB, free: 2.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.43, allocations: 255 kB / 0.5205 GB, free: 2.344 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4301, allocations: 0 / 0.5205 GB, free: 2.344 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005651/0.4357, allocations: 0.9643 MB / 0.5215 GB, free: 1.379 MB / 446.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.03031/0.466, allocations: 7.867 MB / 0.5291 GB, free: 9.492 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4678, allocations: 0.7229 MB / 0.5299 GB, free: 8.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4678, allocations: 1.125 kB / 0.5299 GB, free: 8.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006705/0.4685, allocations: 367.5 kB / 0.5302 GB, free: 8.395 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.4699, allocations: 271.6 kB / 0.5305 GB, free: 8.133 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.4722, allocations: 1.315 MB / 0.5317 GB, free: 6.797 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.4726, allocations: 0.8687 MB / 0.5326 GB, free: 5.898 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005603/0.4732, allocations: 236.7 kB / 0.5328 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.4733, allocations: 55.42 kB / 0.5329 GB, free: 5.609 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4733, allocations: 4 kB / 0.5329 GB, free: 5.605 MB / 462.1 MB Notification: Performance of Templates: time 0.2234/0.6967, allocations: 36.15 MB / 0.5682 GB, free: 105.4 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.makefile (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 & ./Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins/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