Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002327/0.002327, allocations: 205 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 51.92 kB / 377.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2481, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04038/0.2885, allocations: 34.8 MB / 465.9 MB, free: 3.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03341/0.3219, allocations: 27.17 MB / 493.1 MB, free: 8.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005794/0.3225, allocations: 15.88 kB / 493.1 MB, free: 8.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.3237, allocations: 365.9 kB / 493.4 MB, free: 8.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.3249, allocations: 0.5361 MB / 494 MB, free: 7.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01643/0.3413, allocations: 5.271 MB / 499.2 MB, free: 2.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002321/0.3436, allocations: 1.375 MB / 0.4889 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.344, allocations: 126.9 kB / 0.489 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.3452, allocations: 0.5527 MB / 0.4895 GB, free: 212 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000749/0.346, allocations: 466.2 kB / 0.49 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.068e-05/0.3461, allocations: 52 kB / 0.49 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02339/0.3694, allocations: 12.73 MB / 0.5025 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003119/0.3698, allocations: 159.4 kB / 0.5026 GB, free: 2.785 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005154/0.3703, allocations: 275 kB / 0.5029 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03564/0.4059, allocations: 14.94 MB / 0.5175 GB, free: 3.555 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4059, allocations: 4 kB / 0.5175 GB, free: 3.551 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4059, allocations: 0 / 0.5175 GB, free: 3.551 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4059, allocations: 0 / 0.5175 GB, free: 3.551 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.007724/0.4137, allocations: 1.392 MB / 0.5188 GB, free: 2.121 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.569e-05/0.4137, allocations: 12.03 kB / 0.5188 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.4138, allocations: 86.52 kB / 0.5189 GB, free: 2.016 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007888/0.4146, allocations: 99.56 kB / 0.519 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.4153, allocations: 336.2 kB / 0.5193 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.4153, allocations: 33 kB / 0.5194 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.4154, allocations: 48 kB / 0.5194 GB, free: 1.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4167, allocations: 0.8291 MB / 0.5202 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.4167, allocations: 3.953 kB / 0.5202 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.987e-05/0.4168, allocations: 16 kB / 0.5202 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.4168, allocations: 12 kB / 0.5203 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.4179, allocations: 0.5385 MB / 0.5208 GB, free: 15.99 MB / 446.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.004392/0.4223, allocations: 2.79 MB / 0.5235 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000919/0.4232, allocations: 386.6 kB / 0.5239 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/0.4235, allocations: 197.5 kB / 0.5241 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001995/0.4255, allocations: 0.6285 MB / 0.5247 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4255, allocations: 46.81 kB / 0.5247 GB, free: 11.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 1.069e-05/0.4255, allocations: 0 / 0.5247 GB, free: 11.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.01017/0.4357, allocations: 1.886 MB / 0.5266 GB, free: 9.922 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.4358, allocations: 63.78 kB / 0.5266 GB, free: 9.848 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.4361, allocations: 312.4 kB / 0.5269 GB, free: 9.531 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.4362, allocations: 33.7 kB / 0.527 GB, free: 9.492 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.4363, allocations: 241.1 kB / 0.5272 GB, free: 9.254 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.4365, allocations: 202.3 kB / 0.5274 GB, free: 9.055 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.4367, allocations: 118.3 kB / 0.5275 GB, free: 8.934 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.4368, allocations: 350.7 kB / 0.5278 GB, free: 8.582 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.4372, allocations: 181.2 kB / 0.528 GB, free: 8.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/0.4376, allocations: 332 kB / 0.5283 GB, free: 8.023 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008342/0.4384, allocations: 0.5446 MB / 0.5288 GB, free: 7.414 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.4385, allocations: 4 kB / 0.5289 GB, free: 7.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001447/0.4399, allocations: 0.6737 MB / 0.5295 GB, free: 6.719 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4399, allocations: 7.938 kB / 0.5295 GB, free: 6.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4399, allocations: 8 kB / 0.5295 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01265/0.4526, allocations: 470.6 kB / 0.53 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/0.4532, allocations: 143.7 kB / 0.5301 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.4556, allocations: 2.986 MB / 0.533 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.456, allocations: 19.94 kB / 0.533 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.456, allocations: 28 kB / 0.5331 GB, free: 2.875 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.0002806/0.4563, allocations: 185.6 kB / 0.5333 GB, free: 2.684 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.4565, allocations: 43.77 kB / 0.5333 GB, free: 2.641 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001651/0.4582, allocations: 1.071 MB / 0.5343 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.4582, allocations: 15.97 kB / 0.5344 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4582, allocations: 12.03 kB / 0.5344 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001303/0.4595, allocations: 1.114 MB / 0.5355 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1903/0.6499, allocations: 1.646 MB / 0.5371 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.6499, allocations: 4.625 kB / 0.5371 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/0.6503, allocations: 101.2 kB / 0.5372 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003239/0.6535, allocations: 348.4 kB / 0.5375 GB, free: 97.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.6536, allocations: 19.25 kB / 0.5375 GB, free: 97.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004483/0.654, allocations: 1.15 MB / 0.5386 GB, free: 96.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.654, allocations: 4.625 kB / 0.5386 GB, free: 96.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.6554, allocations: 1.146 MB / 0.5398 GB, free: 96.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.673e-05/0.6555, allocations: 47.86 kB / 0.5398 GB, free: 96.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.599e-05/0.6556, allocations: 19.81 kB / 0.5398 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.6559, allocations: 20.09 kB / 0.5398 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.6559, allocations: 37.62 kB / 0.5399 GB, free: 95.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.6559, allocations: 25.69 kB / 0.5399 GB, free: 95.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.6562, allocations: 246.2 kB / 0.5401 GB, free: 95.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6562, allocations: 0.7812 kB / 0.5401 GB, free: 95.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004962/0.6611, allocations: 0.9796 MB / 0.5411 GB, free: 95.78 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.02827/0.6894, allocations: 9.481 MB / 0.5504 GB, free: 89.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.6908, allocations: 0.6918 MB / 0.551 GB, free: 89.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.6909, allocations: 3.969 kB / 0.551 GB, free: 89.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.6914, allocations: 349.3 kB / 0.5514 GB, free: 88.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.6927, allocations: 271.3 kB / 0.5516 GB, free: 88.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008892/0.7016, allocations: 5.343 MB / 0.5568 GB, free: 83.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.7018, allocations: 267.2 kB / 0.5571 GB, free: 83.31 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004461/0.7022, allocations: 238.6 kB / 0.5573 GB, free: 83.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.7024, allocations: 202.5 kB / 0.5575 GB, free: 82.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7024, allocations: 0 / 0.5575 GB, free: 82.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06812/0.7705, allocations: 43.94 MB / 0.6004 GB, free: 39.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.63, allocations: 3.938 kB / 0.6004 GB, free: 39.88 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.123396149982]