Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002556/0.002556, allocations: 71.88 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.339, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1548/0.4938, allocations: 152.3 MB / 0.6792 GB, free: 9 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.4953, allocations: 1.063 MB / 0.6802 GB, free: 7.934 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.123e-05/0.4954, allocations: 0 / 0.6802 GB, free: 7.934 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002545/0.4957, allocations: 43.73 kB / 0.6803 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0007523/0.4965, allocations: 262.6 kB / 0.6805 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.4969, allocations: 126.9 kB / 0.6806 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.4971, allocations: 179.2 kB / 0.6808 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.4972, allocations: 11.92 kB / 0.6808 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.4974, allocations: 91.69 kB / 0.6809 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.4976, allocations: 67.7 kB / 0.681 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.4976, allocations: 4 kB / 0.681 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000604/0.4982, allocations: 267.7 kB / 0.6812 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.928e-05/0.4983, allocations: 19.97 kB / 0.6812 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.603e-05/0.4984, allocations: 51.78 kB / 0.6813 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005181/0.4989, allocations: 282.9 kB / 0.6816 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4989, allocations: 0 / 0.6816 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4989, allocations: 0 / 0.6816 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.305e-05/0.4989, allocations: 0 / 0.6816 GB, free: 6.559 MB / 0.5294 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.0005139/0.4995, allocations: 418.9 kB / 0.682 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4995, allocations: 8.031 kB / 0.682 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.4996, allocations: 42.73 kB / 0.682 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/0.5015, allocations: 196.6 kB / 0.6822 GB, free: 5.852 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.5018, allocations: 203.5 kB / 0.6824 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.5018, allocations: 12 kB / 0.6824 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.5019, allocations: 8 kB / 0.6824 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.5023, allocations: 222.2 kB / 0.6826 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5024, allocations: 4 kB / 0.6826 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.5024, allocations: 4 kB / 0.6826 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.5024, allocations: 4 kB / 0.6826 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.5028, allocations: 171.8 kB / 0.6828 GB, free: 5.184 MB / 0.5294 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.0009843/0.5038, allocations: 0.5794 MB / 0.6834 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.5042, allocations: 142.5 kB / 0.6835 GB, free: 4.398 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.5043, allocations: 68.83 kB / 0.6836 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.5043, allocations: 4 kB / 0.6836 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.5044, allocations: 30.56 kB / 0.6836 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.5044, allocations: 0 / 0.6836 GB, free: 4.285 MB / 0.5294 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.005103/0.5095, allocations: 1.315 MB / 0.6849 GB, free: 2.879 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.5095, allocations: 55.41 kB / 0.6849 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.5096, allocations: 109.8 kB / 0.685 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.5097, allocations: 29.7 kB / 0.6851 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.5097, allocations: 99.97 kB / 0.6852 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.833e-05/0.5098, allocations: 67.44 kB / 0.6852 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.5099, allocations: 65.58 kB / 0.6853 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.51, allocations: 326.8 kB / 0.6856 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.5102, allocations: 63.97 kB / 0.6857 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.5103, allocations: 107.2 kB / 0.6858 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.5107, allocations: 187.3 kB / 0.6859 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.5107, allocations: 0 / 0.6859 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000479/0.5112, allocations: 257.6 kB / 0.6862 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.5112, allocations: 4 kB / 0.6862 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.5112, allocations: 4 kB / 0.6862 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/0.5114, allocations: 56.92 kB / 0.6863 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/0.5117, allocations: 51.91 kB / 0.6863 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004005/0.5121, allocations: 0.5643 MB / 0.6869 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.5123, allocations: 4.031 kB / 0.6869 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.5124, allocations: 27.98 kB / 0.6869 GB, free: 0.7227 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.0001176/0.5125, allocations: 129.9 kB / 0.687 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.5125, allocations: 11.89 kB / 0.687 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006857/0.5132, allocations: 343.1 kB / 0.6873 GB, free: 240 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.5132, allocations: 4 kB / 0.6874 GB, free: 236 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5132, allocations: 3.938 kB / 0.6874 GB, free: 232 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5133, allocations: 3.984 kB / 0.6874 GB, free: 228 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009473/0.5142, allocations: 0.6257 MB / 0.688 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.5142, allocations: 0 / 0.688 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.5146, allocations: 59.89 kB / 0.688 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.028e-05/0.5146, allocations: 20.84 kB / 0.688 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.5147, allocations: 15.98 kB / 0.6881 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008838/0.5156, allocations: 1.373 MB / 0.6894 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5156, allocations: 0 / 0.6894 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.5163, allocations: 438.6 kB / 0.6898 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.5163, allocations: 89.16 kB / 0.6899 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.5164, allocations: 15.98 kB / 0.6899 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.5166, allocations: 8 kB / 0.6899 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.5166, allocations: 23.97 kB / 0.69 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.5167, allocations: 27.98 kB / 0.69 GB, free: 13.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.5167, allocations: 87.22 kB / 0.6901 GB, free: 13.19 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5168, allocations: 0 / 0.6901 GB, free: 13.19 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003999/0.5172, allocations: 83.92 kB / 0.6901 GB, free: 13.11 MB / 0.545 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.001161/0.5183, allocations: 1.011 MB / 0.6911 GB, free: 12.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004668/0.5188, allocations: 207 kB / 0.6913 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5188, allocations: 3.938 kB / 0.6913 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.5191, allocations: 222.5 kB / 0.6915 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.5196, allocations: 48.38 kB / 0.6916 GB, free: 11.58 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.522, allocations: 2.073 MB / 0.6936 GB, free: 9.387 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.5222, allocations: 0.7046 MB / 0.6943 GB, free: 8.656 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002801/0.5225, allocations: 85.38 kB / 0.6944 GB, free: 8.574 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.5227, allocations: 67.39 kB / 0.6944 GB, free: 8.508 MB / 0.545 GB Notification: Performance of SimCode: time 1.422e-06/0.5227, allocations: 0 / 0.6944 GB, free: 8.508 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/0.5507, allocations: 7.332 MB / 0.7016 GB, free: 1.277 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.69, allocations: 8.047 kB / 0.7016 GB, free: 1.27 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches