Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",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.001337/0.001337, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001139/0.001139, allocations: 194 kB / 18.12 MB, free: 5.363 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.289/1.289, allocations: 222.9 MB / 241.8 MB, free: 13.87 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.2259/0.2259, allocations: 44.17 MB / 336.1 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 64.14 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09255, allocations: 60.82 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.351/0.4436, allocations: 146 MB / 0.6002 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008383/0.452, allocations: 5.738 MB / 0.6058 GB, free: 9.504 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.4532, allocations: 27.75 kB / 0.6058 GB, free: 9.477 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.4547, allocations: 282.5 kB / 0.6061 GB, free: 9.199 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00245/0.4571, allocations: 0.8243 MB / 0.6069 GB, free: 8.371 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002876/0.46, allocations: 0.9375 MB / 0.6078 GB, free: 7.445 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002867/0.4629, allocations: 2.656 MB / 0.6104 GB, free: 4.785 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008594/0.4638, allocations: 411.8 kB / 0.6108 GB, free: 4.379 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.4654, allocations: 0.6615 MB / 0.6114 GB, free: 3.715 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.4668, allocations: 0.7357 MB / 0.6122 GB, free: 2.977 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002336/0.467, allocations: 36 kB / 0.6122 GB, free: 2.941 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.4685, allocations: 0.5263 MB / 0.6127 GB, free: 2.414 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003642/0.4689, allocations: 235.3 kB / 0.6129 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006292/0.4695, allocations: 378.2 kB / 0.6133 GB, free: 1.812 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001558/0.4711, allocations: 1.102 MB / 0.6144 GB, free: 0.707 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.4711, allocations: 0 / 0.6144 GB, free: 0.707 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4711, allocations: 0 / 0.6144 GB, free: 0.707 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.4711, allocations: 0 / 0.6144 GB, free: 0.707 MB / 446.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.002452/0.4736, allocations: 1.06 MB / 0.6154 GB, free: 15.6 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.4737, allocations: 11.97 kB / 0.6154 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000205/0.4739, allocations: 99.52 kB / 0.6155 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004049/0.4743, allocations: 95.98 kB / 0.6156 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008553/0.4751, allocations: 0.5092 MB / 0.6161 GB, free: 14.83 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.4753, allocations: 105 kB / 0.6162 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-05/0.4754, allocations: 56.27 kB / 0.6162 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.4767, allocations: 0.811 MB / 0.617 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.4767, allocations: 0 / 0.617 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.09e-05/0.4768, allocations: 24 kB / 0.6171 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-05/0.4769, allocations: 44.91 kB / 0.6171 GB, free: 13.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.4779, allocations: 0.6518 MB / 0.6177 GB, free: 13.07 MB / 462.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.004443/0.4824, allocations: 3.948 MB / 0.6216 GB, free: 8.836 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008154/0.4832, allocations: 433.5 kB / 0.622 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.4835, allocations: 209.4 kB / 0.6222 GB, free: 8.195 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005851/0.4841, allocations: 0.7405 MB / 0.6229 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.4842, allocations: 38.89 kB / 0.623 GB, free: 7.242 MB / 462.1 MB Notification: Performance of pre-optimization done (n=40): time 1.973e-06/0.4842, allocations: 0 / 0.623 GB, free: 7.242 MB / 462.1 MB Notification: Performance of matching and sorting (n=45): time 0.003246/0.4874, allocations: 1.555 MB / 0.6245 GB, free: 5.617 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.4875, allocations: 136.5 kB / 0.6246 GB, free: 5.453 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006576/0.4882, allocations: 0.5655 MB / 0.6252 GB, free: 4.879 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.776e-05/0.4882, allocations: 37.64 kB / 0.6252 GB, free: 4.836 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.4885, allocations: 354.9 kB / 0.6255 GB, free: 4.484 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.4886, allocations: 157.8 kB / 0.6257 GB, free: 4.328 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.4888, allocations: 150.5 kB / 0.6258 GB, free: 4.176 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.489, allocations: 370.8 kB / 0.6262 GB, free: 3.805 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.4894, allocations: 217.9 kB / 0.6264 GB, free: 3.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005859/0.49, allocations: 0.5123 MB / 0.6269 GB, free: 2.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009996/0.491, allocations: 0.7601 MB / 0.6276 GB, free: 2.047 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.491, allocations: 0 / 0.6276 GB, free: 2.047 MB / 462.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001672/0.4927, allocations: 0.9062 MB / 0.6285 GB, free: 1.133 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.4927, allocations: 18.69 kB / 0.6285 GB, free: 1.117 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.4927, allocations: 11.98 kB / 0.6286 GB, free: 1.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.4941, allocations: 289.3 kB / 0.6288 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.4945, allocations: 119.8 kB / 0.629 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.4955, allocations: 0.8981 MB / 0.6298 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005159/0.496, allocations: 35.98 kB / 0.6299 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.4961, allocations: 43.98 kB / 0.6299 GB, free: 15.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003146/0.4964, allocations: 246.1 kB / 0.6301 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.4966, allocations: 71.16 kB / 0.6302 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.4978, allocations: 0.7714 MB / 0.631 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.4979, allocations: 8 kB / 0.631 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4979, allocations: 3.938 kB / 0.631 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4979, allocations: 7.922 kB / 0.631 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.4998, allocations: 1.403 MB / 0.6323 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.4998, allocations: 4 kB / 0.6324 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.5008, allocations: 204 kB / 0.6325 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-05/0.5009, allocations: 28.83 kB / 0.6326 GB, free: 12.83 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.5009, allocations: 12.05 kB / 0.6326 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001904/0.5029, allocations: 2.684 MB / 0.6352 GB, free: 9.871 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5029, allocations: 0 / 0.6352 GB, free: 9.871 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.5042, allocations: 1.007 MB / 0.6362 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.5045, allocations: 204.2 kB / 0.6364 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.5046, allocations: 12 kB / 0.6364 GB, free: 8.574 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000453/0.5051, allocations: 35.98 kB / 0.6364 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.5052, allocations: 31.95 kB / 0.6365 GB, free: 8.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.5052, allocations: 27.98 kB / 0.6365 GB, free: 8.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004607/0.5057, allocations: 431 kB / 0.6369 GB, free: 8.062 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5057, allocations: 0 / 0.6369 GB, free: 8.062 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007478/0.5064, allocations: 216 kB / 0.6371 GB, free: 7.852 MB / 478.1 MB 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001997/0.5084, allocations: 1.729 MB / 0.6388 GB, free: 6.066 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.5096, allocations: 0.5954 MB / 0.6394 GB, free: 5.469 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5097, allocations: 0 / 0.6394 GB, free: 5.469 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.5107, allocations: 455.7 kB / 0.6398 GB, free: 5.012 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.5125, allocations: 361.5 kB / 0.6402 GB, free: 4.668 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009827/0.5223, allocations: 6.894 MB / 0.6469 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.5229, allocations: 0.9349 MB / 0.6478 GB, free: 12.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000774/0.5237, allocations: 213.5 kB / 0.648 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.5241, allocations: 247.2 kB / 0.6482 GB, free: 12 MB / 494.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5241, allocations: 0 / 0.6482 GB, free: 12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.5662, allocations: 21.55 MB / 0.6693 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002812/0.5665, allocations: 294.4 kB / 0.6696 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.061, allocations: 4 kB / 0.6696 GB, free: 6.391 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches