Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.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.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2Mix",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.001837/0.001837, allocations: 100.5 kB / 16.4 MB, free: 6.488 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.001747/0.001747, allocations: 188.2 kB / 17.34 MB, free: 5.734 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.273/1.273, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.1967/0.1967, allocations: 43.52 MB / 314.1 MB, free: 468 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.001548/0.001548, allocations: 65.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1083, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2Mix): time 0.3821/0.4905, allocations: 150.9 MB / 0.6347 GB, free: 4.152 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.4923, allocations: 1.493 MB / 0.6362 GB, free: 2.676 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.594e-05/0.4923, allocations: 0 / 0.6362 GB, free: 2.676 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.4927, allocations: 51.72 kB / 0.6362 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000841/0.4936, allocations: 386.2 kB / 0.6366 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000462/0.494, allocations: 176.3 kB / 0.6368 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.4943, allocations: 187.2 kB / 0.6369 GB, free: 1.891 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.4943, allocations: 11.98 kB / 0.6369 GB, free: 1.879 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.4944, allocations: 79.69 kB / 0.637 GB, free: 1.801 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.4946, allocations: 59.77 kB / 0.6371 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.4946, allocations: 4 kB / 0.6371 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008997/0.4955, allocations: 0.5768 MB / 0.6376 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.617e-05/0.4956, allocations: 35.89 kB / 0.6377 GB, free: 1.125 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 6.377e-05/0.4956, allocations: 47.86 kB / 0.6377 GB, free: 1.078 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.4962, allocations: 390 kB / 0.6381 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4962, allocations: 0 / 0.6381 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4962, allocations: 0 / 0.6381 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.4962, allocations: 0 / 0.6381 GB, free: 0.7031 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005183/0.4967, allocations: 430.9 kB / 0.6385 GB, free: 240 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.4968, allocations: 15.89 kB / 0.6385 GB, free: 224 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.346e-05/0.4968, allocations: 46.73 kB / 0.6386 GB, free: 168 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002247/0.4991, allocations: 189.3 kB / 0.6387 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.4993, allocations: 208.4 kB / 0.6389 GB, free: 15.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.4993, allocations: 11.94 kB / 0.639 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.4994, allocations: 8 kB / 0.639 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.4998, allocations: 201.5 kB / 0.6392 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.4999, allocations: 4 kB / 0.6392 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.4999, allocations: 4 kB / 0.6392 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.4999, allocations: 4 kB / 0.6392 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005565/0.5005, allocations: 243.7 kB / 0.6394 GB, free: 15.26 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.001655/0.5021, allocations: 0.6646 MB / 0.6401 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.5026, allocations: 190.4 kB / 0.6402 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.5028, allocations: 92.81 kB / 0.6403 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.5029, allocations: 93.09 kB / 0.6404 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.503, allocations: 42.5 kB / 0.6405 GB, free: 14.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.503, allocations: 3.938 kB / 0.6405 GB, free: 14.09 MB / 494.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005706/0.5087, allocations: 1.526 MB / 0.6419 GB, free: 12.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.5087, allocations: 51.41 kB / 0.642 GB, free: 12.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.454e-05/0.5088, allocations: 117.8 kB / 0.6421 GB, free: 12.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.5089, allocations: 25.7 kB / 0.6421 GB, free: 12.24 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.5089, allocations: 100.4 kB / 0.6422 GB, free: 12.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-05/0.509, allocations: 71.38 kB / 0.6423 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.92e-05/0.5091, allocations: 45.7 kB / 0.6423 GB, free: 12.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5092, allocations: 322.8 kB / 0.6426 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.5094, allocations: 87.95 kB / 0.6427 GB, free: 11.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.5097, allocations: 127.2 kB / 0.6429 GB, free: 11.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.5101, allocations: 227.3 kB / 0.6431 GB, free: 11.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5101, allocations: 3.938 kB / 0.6431 GB, free: 11.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000597/0.5107, allocations: 282.2 kB / 0.6433 GB, free: 10.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.5108, allocations: 8 kB / 0.6433 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5108, allocations: 4.094 kB / 0.6434 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.5109, allocations: 24.84 kB / 0.6434 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.5114, allocations: 56.45 kB / 0.6434 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003338/0.5117, allocations: 0.5289 MB / 0.6439 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.512, allocations: 16.08 kB / 0.644 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.5121, allocations: 15.62 kB / 0.644 GB, free: 10.27 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.5122, allocations: 129.7 kB / 0.6441 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.5123, allocations: 15.89 kB / 0.6441 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007047/0.513, allocations: 311.1 kB / 0.6444 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.513, allocations: 4 kB / 0.6444 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.513, allocations: 7.922 kB / 0.6444 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.513, allocations: 0 / 0.6444 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.5141, allocations: 0.6827 MB / 0.6451 GB, free: 9.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.5141, allocations: 7.984 kB / 0.6451 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004493/0.5146, allocations: 51.89 kB / 0.6451 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.829e-05/0.5147, allocations: 20.84 kB / 0.6452 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.5147, allocations: 11.98 kB / 0.6452 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009481/0.5156, allocations: 1.359 MB / 0.6465 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.5157, allocations: 4.062 kB / 0.6465 GB, free: 7.449 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008196/0.5165, allocations: 450.7 kB / 0.6469 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/0.5165, allocations: 92.98 kB / 0.647 GB, free: 6.871 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.5166, allocations: 4 kB / 0.647 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.5169, allocations: 11.98 kB / 0.647 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.517, allocations: 15.98 kB / 0.6471 GB, free: 6.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.517, allocations: 11.98 kB / 0.6471 GB, free: 6.828 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.499e-05/0.517, allocations: 83.28 kB / 0.6472 GB, free: 6.746 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5171, allocations: 0 / 0.6472 GB, free: 6.746 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000525/0.5176, allocations: 139.7 kB / 0.6473 GB, free: 6.609 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (19): * Single equations (assignments): 18 * 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): 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.001532/0.5191, allocations: 1.128 MB / 0.6484 GB, free: 5.445 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006029/0.5197, allocations: 235.7 kB / 0.6486 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5198, allocations: 0 / 0.6486 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003869/0.5201, allocations: 230.5 kB / 0.6488 GB, free: 4.977 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.5206, allocations: 58.11 kB / 0.6489 GB, free: 4.922 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.5234, allocations: 2.142 MB / 0.651 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.5237, allocations: 0.7046 MB / 0.6517 GB, free: 1.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.524, allocations: 49.39 kB / 0.6517 GB, free: 1.879 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.5241, allocations: 43.42 kB / 0.6518 GB, free: 1.836 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5241, allocations: 0 / 0.6518 GB, free: 1.836 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.5496, allocations: 7.984 MB / 0.6596 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.82, allocations: 7.938 kB / 0.6596 GB, free: 9.836 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2Mix.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches