Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.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.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",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.001187/0.001187, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.00123/0.00123, allocations: 181 kB / 18.71 MB, free: 4.207 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2208/0.2208, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3273, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1569/0.4843, allocations: 149.4 MB / 0.6643 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.4857, allocations: 0.9695 MB / 0.6652 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.839e-05/0.4858, allocations: 0 / 0.6652 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002612/0.4861, allocations: 27.81 kB / 0.6653 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0007126/0.4868, allocations: 246.6 kB / 0.6655 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.4873, allocations: 115.6 kB / 0.6656 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.4875, allocations: 175.2 kB / 0.6658 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.531e-05/0.4876, allocations: 15.91 kB / 0.6658 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.4878, allocations: 91.64 kB / 0.6659 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 9.737e-05/0.4879, allocations: 51.77 kB / 0.6659 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.4879, allocations: 4 kB / 0.6659 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005286/0.4885, allocations: 263.7 kB / 0.6662 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.121e-05/0.4885, allocations: 15.97 kB / 0.6662 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 6.849e-05/0.4886, allocations: 47.8 kB / 0.6662 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.4891, allocations: 278.9 kB / 0.6665 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4891, allocations: 0 / 0.6665 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4891, allocations: 0 / 0.6665 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.4891, allocations: 0 / 0.6665 GB, free: 3.922 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004953/0.4897, allocations: 418.9 kB / 0.6669 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.4897, allocations: 8.031 kB / 0.6669 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.567e-05/0.4897, allocations: 38.75 kB / 0.6669 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002107/0.4919, allocations: 188.6 kB / 0.6671 GB, free: 3.227 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.4922, allocations: 207.4 kB / 0.6673 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.4922, allocations: 12 kB / 0.6673 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.4923, allocations: 8 kB / 0.6673 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.4928, allocations: 228 kB / 0.6676 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4928, allocations: 0 / 0.6676 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.4928, allocations: 3.984 kB / 0.6676 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.4929, allocations: 4 kB / 0.6676 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004362/0.4933, allocations: 171.9 kB / 0.6677 GB, free: 2.551 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.001149/0.4945, allocations: 0.5794 MB / 0.6683 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.4948, allocations: 138.5 kB / 0.6684 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.495, allocations: 68.83 kB / 0.6685 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.495, allocations: 7.984 kB / 0.6685 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4951, allocations: 34.5 kB / 0.6685 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 3.476e-06/0.4951, allocations: 0 / 0.6685 GB, free: 1.648 MB / 0.5137 GB 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.005437/0.5005, allocations: 1.306 MB / 0.6698 GB, free: 256 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.5006, allocations: 51.41 kB / 0.6699 GB, free: 192 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.5007, allocations: 113.8 kB / 0.67 GB, free: 68 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.5007, allocations: 25.7 kB / 0.67 GB, free: 36 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.808e-05/0.5008, allocations: 104 kB / 0.6701 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.935e-05/0.5009, allocations: 67.42 kB / 0.6702 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/0.501, allocations: 61.69 kB / 0.6702 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.403e-05/0.5011, allocations: 326.7 kB / 0.6705 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.5013, allocations: 67.97 kB / 0.6706 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.5015, allocations: 101.6 kB / 0.6707 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.5018, allocations: 185.2 kB / 0.6709 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5018, allocations: 0 / 0.6709 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004841/0.5023, allocations: 261.4 kB / 0.6711 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.5023, allocations: 4 kB / 0.6711 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5023, allocations: 0 / 0.6711 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.5025, allocations: 60.86 kB / 0.6712 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/0.5028, allocations: 51.95 kB / 0.6712 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003886/0.5032, allocations: 0.5679 MB / 0.6718 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.5034, allocations: 8 kB / 0.6718 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.5035, allocations: 27.98 kB / 0.6718 GB, free: 14.09 MB / 0.5294 GB 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.0001244/0.5036, allocations: 125.9 kB / 0.6719 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.5037, allocations: 15.89 kB / 0.6719 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007094/0.5044, allocations: 335.1 kB / 0.6723 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5044, allocations: 4 kB / 0.6723 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5044, allocations: 0 / 0.6723 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.5044, allocations: 0 / 0.6723 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009625/0.5054, allocations: 0.6293 MB / 0.6729 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5054, allocations: 0 / 0.6729 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.5058, allocations: 63.89 kB / 0.6729 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.672e-05/0.5058, allocations: 20.84 kB / 0.673 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.5059, allocations: 19.92 kB / 0.673 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008932/0.5068, allocations: 1.367 MB / 0.6743 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5068, allocations: 8.031 kB / 0.6743 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006747/0.5075, allocations: 438 kB / 0.6747 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.227e-05/0.5076, allocations: 89.05 kB / 0.6748 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.5076, allocations: 8 kB / 0.6748 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.5078, allocations: 7.984 kB / 0.6748 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.5079, allocations: 19.98 kB / 0.6749 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.5079, allocations: 27.98 kB / 0.6749 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.819e-05/0.508, allocations: 99.5 kB / 0.675 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.4e-07/0.508, allocations: 0 / 0.675 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004399/0.5084, allocations: 79.88 kB / 0.6751 GB, free: 10.49 MB / 0.5294 GB 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 (21): * Single equations (assignments): 20 * 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.001243/0.5097, allocations: 1.012 MB / 0.676 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005017/0.5102, allocations: 212 kB / 0.6763 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.5102, allocations: 0 / 0.6763 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003357/0.5106, allocations: 222.5 kB / 0.6765 GB, free: 9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004592/0.511, allocations: 48.08 kB / 0.6765 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.5136, allocations: 2.065 MB / 0.6785 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.5138, allocations: 0.7085 MB / 0.6792 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002904/0.5141, allocations: 77.78 kB / 0.6793 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.5143, allocations: 67.41 kB / 0.6794 GB, free: 5.887 MB / 0.5294 GB Notification: Performance of SimCode: time 2.4e-07/0.5143, allocations: 7.938 kB / 0.6794 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.5405, allocations: 7.296 MB / 0.6865 GB, free: 14.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.19, allocations: 9.469 kB / 0.6865 GB, free: 14.69 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches