Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_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.001149/0.001149, allocations: 103.6 kB / 16.4 MB, free: 6.508 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.001231/0.001231, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2057/0.2057, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 71.91 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1156, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.5085/0.6242, allocations: 179.7 MB / 0.6629 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0116/0.6358, allocations: 8.181 MB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006605/0.6365, allocations: 19.88 kB / 0.6709 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.6376, allocations: 314 kB / 0.6712 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003935/0.6415, allocations: 1.477 MB / 0.6727 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002873/0.6444, allocations: 1.157 MB / 0.6738 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002123/0.6466, allocations: 1.853 MB / 0.6756 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006169/0.6472, allocations: 456 kB / 0.676 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/0.6497, allocations: 1.242 MB / 0.6772 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008615/0.6505, allocations: 0.654 MB / 0.6779 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.799e-05/0.6506, allocations: 60 kB / 0.6779 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.6522, allocations: 0.8309 MB / 0.6787 GB, free: 6.816 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.6525, allocations: 263.2 kB / 0.679 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.6528, allocations: 394.2 kB / 0.6794 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.6544, allocations: 1.426 MB / 0.6808 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.6544, allocations: 0 / 0.6808 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.804e-06/0.6544, allocations: 0 / 0.6808 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.6545, allocations: 0 / 0.6808 GB, free: 4.742 MB / 0.5137 GB 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.002053/0.6565, allocations: 1.126 MB / 0.6819 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.6566, allocations: 11.89 kB / 0.6819 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.6567, allocations: 102.5 kB / 0.682 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007926/0.6575, allocations: 136 kB / 0.6821 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009148/0.6584, allocations: 0.539 MB / 0.6826 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.81e-05/0.6585, allocations: 108.4 kB / 0.6827 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.659e-05/0.6586, allocations: 44 kB / 0.6828 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.6598, allocations: 0.8136 MB / 0.6836 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.6598, allocations: 0 / 0.6836 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-05/0.6599, allocations: 27.98 kB / 0.6836 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.991e-05/0.66, allocations: 40.92 kB / 0.6836 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009944/0.661, allocations: 0.6205 MB / 0.6842 GB, free: 0.9961 MB / 0.5137 GB 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.004713/0.6657, allocations: 3.978 MB / 0.6881 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005893/0.6663, allocations: 363.6 kB / 0.6885 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.6665, allocations: 169.3 kB / 0.6886 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004546/0.667, allocations: 361.4 kB / 0.689 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.6671, allocations: 38.84 kB / 0.689 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 1.804e-06/0.6671, allocations: 0 / 0.689 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39): time 0.005378/0.6724, allocations: 1.675 MB / 0.6907 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.6725, allocations: 136.5 kB / 0.6908 GB, free: 9.867 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000678/0.6732, allocations: 0.6133 MB / 0.6914 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.6733, allocations: 33.7 kB / 0.6914 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.6735, allocations: 363 kB / 0.6918 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.6737, allocations: 149.9 kB / 0.6919 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.6739, allocations: 154.5 kB / 0.692 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.674, allocations: 374.8 kB / 0.6924 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.6744, allocations: 205.8 kB / 0.6926 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.675, allocations: 0.5125 MB / 0.6931 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009378/0.6759, allocations: 0.7523 MB / 0.6938 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6759, allocations: 4 kB / 0.6938 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001397/0.6773, allocations: 0.8759 MB / 0.6947 GB, free: 5.523 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.6774, allocations: 8 kB / 0.6947 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.6774, allocations: 12 kB / 0.6947 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.6788, allocations: 309.4 kB / 0.695 GB, free: 5.199 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.6792, allocations: 123.8 kB / 0.6951 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.6804, allocations: 0.9308 MB / 0.696 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005075/0.6809, allocations: 35.98 kB / 0.6961 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.681, allocations: 60 kB / 0.6961 GB, free: 4.027 MB / 0.5294 GB 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.0004089/0.6814, allocations: 257.5 kB / 0.6964 GB, free: 3.766 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.6815, allocations: 63.25 kB / 0.6964 GB, free: 3.703 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.6829, allocations: 0.6783 MB / 0.6971 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.6829, allocations: 4 kB / 0.6971 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6829, allocations: 11.94 kB / 0.6971 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.6829, allocations: 7.984 kB / 0.6971 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.6851, allocations: 1.603 MB / 0.6987 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.6851, allocations: 0 / 0.6987 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.6862, allocations: 203.9 kB / 0.6989 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.384e-05/0.6863, allocations: 28.78 kB / 0.6989 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.6863, allocations: 19.98 kB / 0.6989 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.6887, allocations: 2.877 MB / 0.7017 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6887, allocations: 0 / 0.7017 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.69, allocations: 0.8087 MB / 0.7025 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.6903, allocations: 196.2 kB / 0.7027 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.078e-05/0.6904, allocations: 8 kB / 0.7027 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.6908, allocations: 20.05 kB / 0.7027 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.6909, allocations: 43.89 kB / 0.7028 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/0.6909, allocations: 47.92 kB / 0.7028 GB, free: 12.65 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005116/0.6915, allocations: 435 kB / 0.7032 GB, free: 12.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6915, allocations: 0 / 0.7032 GB, free: 12.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009781/0.6925, allocations: 292 kB / 0.7035 GB, free: 11.95 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.002255/0.6947, allocations: 1.626 MB / 0.7051 GB, free: 10.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001208/0.6959, allocations: 0.5546 MB / 0.7057 GB, free: 9.734 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.696, allocations: 3.938 kB / 0.7057 GB, free: 9.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.697, allocations: 415 kB / 0.7061 GB, free: 9.312 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.6986, allocations: 370.4 kB / 0.7064 GB, free: 8.957 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008165/0.7068, allocations: 6.292 MB / 0.7125 GB, free: 2.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.7074, allocations: 0.93 MB / 0.7135 GB, free: 1.312 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007988/0.7082, allocations: 258 kB / 0.7137 GB, free: 1.059 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004345/0.7086, allocations: 275.3 kB / 0.714 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/0.7086, allocations: 0 / 0.714 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05654/0.7652, allocations: 25.71 MB / 0.7391 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.76, allocations: 8.062 kB / 0.7391 GB, free: 7.043 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches