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.001586/0.001586, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001906/0.001906, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.432/1.432, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2166/0.2166, allocations: 44.19 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3491, allocations: 60.82 MB / 0.5184 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1821/0.5312, allocations: 149.4 MB / 0.6643 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.5328, allocations: 0.9578 MB / 0.6652 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.725e-05/0.5329, allocations: 3.938 kB / 0.6652 GB, free: 5.363 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002618/0.5332, allocations: 35.8 kB / 0.6653 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0007453/0.5339, allocations: 242.7 kB / 0.6655 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.5344, allocations: 111.7 kB / 0.6656 GB, free: 4.98 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.5347, allocations: 175.2 kB / 0.6658 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/0.5348, allocations: 11.97 kB / 0.6658 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.535, allocations: 91.62 kB / 0.6659 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.5352, allocations: 47.84 kB / 0.6659 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.5352, allocations: 8 kB / 0.6659 GB, free: 4.652 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006389/0.5358, allocations: 263.7 kB / 0.6662 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.5359, allocations: 19.92 kB / 0.6662 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 8.232e-05/0.536, allocations: 47.78 kB / 0.6662 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005736/0.5366, allocations: 275.4 kB / 0.6665 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.5366, allocations: 0 / 0.6665 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5366, allocations: 3.938 kB / 0.6665 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.473e-06/0.5366, allocations: 0 / 0.6665 GB, free: 4.059 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.0006403/0.5373, allocations: 415 kB / 0.6669 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.5373, allocations: 12.02 kB / 0.6669 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.5374, allocations: 38.75 kB / 0.6669 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.5396, allocations: 188.6 kB / 0.6671 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.5399, allocations: 207.4 kB / 0.6673 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.5399, allocations: 8 kB / 0.6673 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.54, allocations: 12 kB / 0.6673 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.5405, allocations: 224 kB / 0.6676 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.5406, allocations: 0 / 0.6676 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.5406, allocations: 7.938 kB / 0.6676 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.5406, allocations: 4 kB / 0.6676 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.5411, allocations: 163.9 kB / 0.6677 GB, free: 2.695 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.001115/0.5422, allocations: 0.5833 MB / 0.6683 GB, free: 2.055 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.5426, allocations: 142.3 kB / 0.6684 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.5427, allocations: 76.77 kB / 0.6685 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.5428, allocations: 4 kB / 0.6685 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.5428, allocations: 30.56 kB / 0.6685 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.904e-06/0.5428, allocations: 0 / 0.6685 GB, free: 1.789 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.005604/0.5484, allocations: 1.311 MB / 0.6698 GB, free: 396 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.5485, allocations: 51.41 kB / 0.6699 GB, free: 332 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.5486, allocations: 121.8 kB / 0.67 GB, free: 200 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.5487, allocations: 25.7 kB / 0.67 GB, free: 168 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.5487, allocations: 96.05 kB / 0.6701 GB, free: 68 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.907e-05/0.5489, allocations: 71.41 kB / 0.6702 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.549, allocations: 57.64 kB / 0.6702 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.5492, allocations: 326.8 kB / 0.6705 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.5493, allocations: 67.97 kB / 0.6706 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.5496, allocations: 99.39 kB / 0.6707 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.55, allocations: 183.3 kB / 0.6709 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.55, allocations: 0 / 0.6709 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005586/0.5505, allocations: 261.2 kB / 0.6711 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.5506, allocations: 4 kB / 0.6711 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.5506, allocations: 0 / 0.6711 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/0.5508, allocations: 52.83 kB / 0.6712 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.5511, allocations: 59.98 kB / 0.6712 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005202/0.5517, allocations: 0.564 MB / 0.6718 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.5518, allocations: 11.98 kB / 0.6718 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.5519, allocations: 28 kB / 0.6718 GB, free: 14.23 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.0001335/0.552, allocations: 121.9 kB / 0.6719 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/0.5521, allocations: 15.89 kB / 0.6719 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007932/0.5529, allocations: 335.1 kB / 0.6723 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.5529, allocations: 7.984 kB / 0.6723 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5529, allocations: 0 / 0.6723 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.553, allocations: 0 / 0.6723 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.554, allocations: 0.6269 MB / 0.6729 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.554, allocations: 0 / 0.6729 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003363/0.5544, allocations: 63.89 kB / 0.6729 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.133e-05/0.5545, allocations: 20.84 kB / 0.673 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.5545, allocations: 15.98 kB / 0.673 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.5557, allocations: 1.367 MB / 0.6743 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5557, allocations: 12.03 kB / 0.6743 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.5565, allocations: 435 kB / 0.6747 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.5566, allocations: 89.05 kB / 0.6748 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/0.5566, allocations: 16 kB / 0.6748 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.5568, allocations: 4 kB / 0.6748 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.5569, allocations: 23.97 kB / 0.6749 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-05/0.557, allocations: 27.98 kB / 0.6749 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.52e-05/0.557, allocations: 95.2 kB / 0.675 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.557, allocations: 0 / 0.675 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004176/0.5575, allocations: 79.88 kB / 0.6751 GB, free: 10.63 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.001408/0.5589, allocations: 1.005 MB / 0.676 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000558/0.5595, allocations: 211.8 kB / 0.6762 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5595, allocations: 4 kB / 0.6762 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.5599, allocations: 220.5 kB / 0.6765 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.5604, allocations: 48.67 kB / 0.6765 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.5634, allocations: 2.075 MB / 0.6785 GB, free: 6.898 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.5637, allocations: 0.7085 MB / 0.6792 GB, free: 6.164 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003067/0.564, allocations: 77.39 kB / 0.6793 GB, free: 6.09 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000274/0.5643, allocations: 63.41 kB / 0.6794 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.5643, allocations: 0 / 0.6794 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04426/0.6086, allocations: 7.307 MB / 0.6865 GB, free: 14.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.56, allocations: 9.656 kB / 0.6865 GB, free: 14.82 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