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.001515/0.001515, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001811/0.001811, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2473, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03987/0.2873, allocations: 37.73 MB / 446.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.032/0.3193, allocations: 30.63 MB / 477.1 MB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005651/0.3199, allocations: 8 kB / 477.1 MB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.321, allocations: 413.6 kB / 477.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.3221, allocations: 0.5205 MB / 478.1 MB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01343/0.3356, allocations: 5.142 MB / 483.2 MB, free: 6.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001708/0.3373, allocations: 1.352 MB / 484.6 MB, free: 5.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.3376, allocations: 170.7 kB / 484.7 MB, free: 5.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007484/0.3383, allocations: 0.5372 MB / 485.3 MB, free: 4.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.3388, allocations: 442.2 kB / 485.7 MB, free: 4.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.971e-05/0.3389, allocations: 56 kB / 485.8 MB, free: 4.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02015/0.359, allocations: 12.81 MB / 498.6 MB, free: 7.457 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003322/0.3594, allocations: 151.6 kB / 498.7 MB, free: 7.309 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005644/0.36, allocations: 326.7 kB / 499 MB, free: 6.988 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03406/0.3941, allocations: 14.91 MB / 0.5019 GB, free: 8.059 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.3941, allocations: 4 kB / 0.5019 GB, free: 8.055 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3941, allocations: 3.938 kB / 0.5019 GB, free: 8.051 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.3941, allocations: 0 / 0.5019 GB, free: 8.051 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.007898/0.402, allocations: 1.423 MB / 0.5033 GB, free: 6.574 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.4021, allocations: 11.97 kB / 0.5033 GB, free: 6.562 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.426e-05/0.4022, allocations: 82.53 kB / 0.5034 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006903/0.4029, allocations: 99.23 kB / 0.5035 GB, free: 6.375 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005445/0.4035, allocations: 386 kB / 0.5038 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.4035, allocations: 40.94 kB / 0.5039 GB, free: 5.918 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.287e-05/0.4036, allocations: 44 kB / 0.5039 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.4046, allocations: 0.6166 MB / 0.5045 GB, free: 5.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4046, allocations: 4 kB / 0.5045 GB, free: 5.207 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.565e-05/0.4047, allocations: 20 kB / 0.5046 GB, free: 5.188 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4047, allocations: 12 kB / 0.5046 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009178/0.4056, allocations: 0.5307 MB / 0.5051 GB, free: 4.645 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.004167/0.4098, allocations: 3.811 MB / 0.5088 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008716/0.4107, allocations: 404.6 kB / 0.5092 GB, free: 128 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.411, allocations: 220.8 kB / 0.5094 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002994/0.414, allocations: 3.459 MB / 0.5128 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.4141, allocations: 38.92 kB / 0.5128 GB, free: 11.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.184e-06/0.4141, allocations: 0 / 0.5128 GB, free: 11.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.008626/0.4227, allocations: 2.025 MB / 0.5148 GB, free: 9.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.4228, allocations: 63.78 kB / 0.5149 GB, free: 9.523 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.4231, allocations: 300.5 kB / 0.5151 GB, free: 9.227 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.4232, allocations: 37.7 kB / 0.5152 GB, free: 9.184 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.4233, allocations: 240.6 kB / 0.5154 GB, free: 8.945 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.4234, allocations: 189.2 kB / 0.5156 GB, free: 8.758 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.4236, allocations: 118.2 kB / 0.5157 GB, free: 8.637 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4237, allocations: 354.8 kB / 0.516 GB, free: 8.281 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.424, allocations: 173.2 kB / 0.5162 GB, free: 8.113 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003775/0.4244, allocations: 336 kB / 0.5165 GB, free: 7.723 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007364/0.4251, allocations: 0.5407 MB / 0.5171 GB, free: 7.121 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.4251, allocations: 4 kB / 0.5171 GB, free: 7.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001138/0.4263, allocations: 0.6701 MB / 0.5177 GB, free: 6.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4263, allocations: 12 kB / 0.5177 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.4263, allocations: 11.94 kB / 0.5177 GB, free: 6.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008469/0.4348, allocations: 438 kB / 0.5182 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006439/0.4355, allocations: 143.8 kB / 0.5183 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.4375, allocations: 3.101 MB / 0.5213 GB, free: 2.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.4379, allocations: 12 kB / 0.5213 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-05/0.438, allocations: 28.25 kB / 0.5214 GB, free: 2.473 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.000298/0.4383, allocations: 201.5 kB / 0.5215 GB, free: 2.266 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.4385, allocations: 43.52 kB / 0.5216 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.44, allocations: 1.048 MB / 0.5226 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.44, allocations: 15.94 kB / 0.5226 GB, free: 1.141 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.44, allocations: 7.938 kB / 0.5226 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001099/0.4411, allocations: 1.087 MB / 0.5237 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.4434, allocations: 1.729 MB / 0.5254 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.4434, allocations: 3.938 kB / 0.5254 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.4438, allocations: 99.83 kB / 0.5255 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002897/0.4467, allocations: 357 kB / 0.5258 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/0.4468, allocations: 12 kB / 0.5258 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006825/0.4475, allocations: 1.148 MB / 0.527 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4475, allocations: 0 / 0.527 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4489, allocations: 1.125 MB / 0.5281 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.4491, allocations: 124.5 kB / 0.5282 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.263e-05/0.4492, allocations: 19.84 kB / 0.5282 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000248/0.4494, allocations: 8 kB / 0.5282 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.4495, allocations: 36.52 kB / 0.5282 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/0.4496, allocations: 23.92 kB / 0.5283 GB, free: 11.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.4498, allocations: 251 kB / 0.5285 GB, free: 10.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4498, allocations: 4 kB / 0.5285 GB, free: 10.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005166/0.455, allocations: 0.9565 MB / 0.5294 GB, free: 9.934 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.02974/0.4847, allocations: 9.438 MB / 0.5387 GB, free: 460 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1815/0.6663, allocations: 0.7146 MB / 0.5393 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6664, allocations: 0.5 kB / 0.5393 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008964/0.6673, allocations: 372.2 kB / 0.5397 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.001651/0.6689, allocations: 266.8 kB / 0.54 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.6798, allocations: 5.309 MB / 0.5451 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.6802, allocations: 0.8656 MB / 0.546 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005661/0.6808, allocations: 244.5 kB / 0.5462 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.681, allocations: 205.2 kB / 0.5464 GB, free: 118 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.681, allocations: 0 / 0.5464 GB, free: 118 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09928/0.7803, allocations: 42.49 MB / 0.5879 GB, free: 80.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.23, allocations: 4.562 kB / 0.5879 GB, free: 80.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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