Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",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.001129/0.001129, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001123/0.001123, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.365/1.365, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1981/0.1981, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 67.08 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.11, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4024/0.5124, allocations: 174.4 MB / 0.6286 GB, free: 2.164 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.006584/0.519, allocations: 5.339 MB / 0.6339 GB, free: 12.81 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000606/0.5197, allocations: 19.88 kB / 0.6339 GB, free: 12.79 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008779/0.5206, allocations: 314 kB / 0.6342 GB, free: 12.48 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003485/0.5241, allocations: 1.239 MB / 0.6354 GB, free: 11.24 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.5265, allocations: 0.9724 MB / 0.6363 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002672/0.5292, allocations: 1.846 MB / 0.6381 GB, free: 8.43 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009811/0.5302, allocations: 459.9 kB / 0.6386 GB, free: 7.977 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.5329, allocations: 1.063 MB / 0.6396 GB, free: 6.91 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001222/0.5341, allocations: 0.6501 MB / 0.6403 GB, free: 6.258 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001964/0.5343, allocations: 60 kB / 0.6403 GB, free: 6.199 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.5357, allocations: 0.5813 MB / 0.6409 GB, free: 5.617 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003276/0.5361, allocations: 263.2 kB / 0.6411 GB, free: 5.359 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005489/0.5366, allocations: 402.2 kB / 0.6415 GB, free: 4.965 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002093/0.5387, allocations: 1.293 MB / 0.6428 GB, free: 3.668 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.5388, allocations: 0 / 0.6428 GB, free: 3.668 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5388, allocations: 0 / 0.6428 GB, free: 3.668 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.452e-05/0.5388, allocations: 3.938 kB / 0.6428 GB, free: 3.664 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002494/0.5413, allocations: 1.111 MB / 0.6439 GB, free: 2.5 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.5414, allocations: 8.031 kB / 0.6439 GB, free: 2.492 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.5415, allocations: 94.52 kB / 0.644 GB, free: 2.391 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007998/0.5423, allocations: 135.1 kB / 0.6441 GB, free: 2.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008057/0.5431, allocations: 0.5079 MB / 0.6446 GB, free: 1.711 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.5433, allocations: 104.4 kB / 0.6447 GB, free: 1.594 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.957e-05/0.5434, allocations: 47.98 kB / 0.6447 GB, free: 1.547 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.5446, allocations: 0.8135 MB / 0.6455 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.5447, allocations: 7.984 kB / 0.6455 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.633e-05/0.5447, allocations: 20 kB / 0.6456 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.507e-05/0.5448, allocations: 44.92 kB / 0.6456 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009829/0.5458, allocations: 0.6204 MB / 0.6462 GB, free: 15.97 MB / 494.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.004131/0.5499, allocations: 3.97 MB / 0.6501 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.5505, allocations: 355.6 kB / 0.6504 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.5508, allocations: 170.2 kB / 0.6506 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.5509, allocations: 101.3 kB / 0.6507 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.5509, allocations: 38.84 kB / 0.6507 GB, free: 11.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=34): time 3.407e-06/0.551, allocations: 3.984 kB / 0.6507 GB, free: 11.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=39): time 0.005683/0.5566, allocations: 1.663 MB / 0.6523 GB, free: 9.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.5567, allocations: 140.5 kB / 0.6525 GB, free: 9.148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007391/0.5575, allocations: 0.6133 MB / 0.6531 GB, free: 8.527 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.525e-05/0.5576, allocations: 33.7 kB / 0.6531 GB, free: 8.488 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.5578, allocations: 370.8 kB / 0.6535 GB, free: 8.121 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.5579, allocations: 142 kB / 0.6536 GB, free: 7.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.5581, allocations: 154.5 kB / 0.6537 GB, free: 7.824 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5583, allocations: 374.8 kB / 0.6541 GB, free: 7.449 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.5586, allocations: 205.9 kB / 0.6543 GB, free: 7.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.5592, allocations: 0.5164 MB / 0.6548 GB, free: 6.586 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009126/0.5601, allocations: 0.7552 MB / 0.6555 GB, free: 5.691 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.5601, allocations: 8 kB / 0.6555 GB, free: 5.684 MB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001463/0.5616, allocations: 0.8838 MB / 0.6564 GB, free: 4.789 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.5616, allocations: 12.25 kB / 0.6564 GB, free: 4.777 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.5616, allocations: 12 kB / 0.6564 GB, free: 4.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.563, allocations: 308.5 kB / 0.6567 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.5634, allocations: 127.7 kB / 0.6568 GB, free: 4.336 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.5645, allocations: 0.9296 MB / 0.6578 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/0.5651, allocations: 28 kB / 0.6578 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.5652, allocations: 63.98 kB / 0.6578 GB, free: 3.293 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003883/0.5656, allocations: 253.5 kB / 0.6581 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.5658, allocations: 71.16 kB / 0.6582 GB, free: 2.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.5675, allocations: 0.8736 MB / 0.659 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.5676, allocations: 4 kB / 0.659 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5676, allocations: 0 / 0.659 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.5676, allocations: 0 / 0.659 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.5696, allocations: 1.461 MB / 0.6604 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.5697, allocations: 4 kB / 0.6604 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.5707, allocations: 203.8 kB / 0.6606 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.23e-05/0.5708, allocations: 29.02 kB / 0.6607 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.05e-05/0.5709, allocations: 20 kB / 0.6607 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/0.5728, allocations: 2.881 MB / 0.6635 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5728, allocations: 0 / 0.6635 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.574, allocations: 0.8247 MB / 0.6643 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.5743, allocations: 180.3 kB / 0.6645 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.5744, allocations: 12 kB / 0.6645 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004352/0.5749, allocations: 24.05 kB / 0.6645 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.575, allocations: 43.83 kB / 0.6645 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.929e-05/0.5751, allocations: 43.98 kB / 0.6646 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005044/0.5756, allocations: 443 kB / 0.665 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5756, allocations: 0 / 0.665 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008739/0.5765, allocations: 244 kB / 0.6652 GB, free: 11.21 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002068/0.5785, allocations: 1.559 MB / 0.6668 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00121/0.5798, allocations: 0.5978 MB / 0.6674 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5798, allocations: 0 / 0.6674 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009769/0.5808, allocations: 422.2 kB / 0.6678 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.5825, allocations: 374.8 kB / 0.6681 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008427/0.5909, allocations: 6.549 MB / 0.6745 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.5915, allocations: 0.9261 MB / 0.6754 GB, free: 356 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001308/0.5928, allocations: 466.4 kB / 0.6759 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005432/0.5933, allocations: 283.3 kB / 0.6761 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.5933, allocations: 0 / 0.6761 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.053/0.6463, allocations: 24.13 MB / 0.6997 GB, free: 7.789 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.57, allocations: 7.922 kB / 0.6997 GB, free: 7.781 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches