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.001304/0.001304, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001208/0.001208, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.2085/0.2085, allocations: 44.17 MB / 336.6 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 67.89 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1088, allocations: 60.81 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3953/0.5041, allocations: 149.4 MB / 0.6042 GB, free: 11.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.5054, allocations: 0.9724 MB / 0.6052 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.945e-05/0.5055, allocations: 0 / 0.6052 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.5057, allocations: 31.77 kB / 0.6052 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005762/0.5063, allocations: 251.4 kB / 0.6054 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.5067, allocations: 114.3 kB / 0.6055 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.5069, allocations: 163.3 kB / 0.6057 GB, free: 9.742 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.5069, allocations: 10.25 kB / 0.6057 GB, free: 9.734 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.5071, allocations: 87.62 kB / 0.6058 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.159e-05/0.5072, allocations: 47.83 kB / 0.6058 GB, free: 9.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.5072, allocations: 8 kB / 0.6058 GB, free: 9.594 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004889/0.5077, allocations: 263.7 kB / 0.6061 GB, free: 9.336 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.5078, allocations: 19.91 kB / 0.6061 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.5079, allocations: 51.73 kB / 0.6062 GB, free: 9.266 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004136/0.5083, allocations: 275.4 kB / 0.6064 GB, free: 8.996 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.5083, allocations: 0 / 0.6064 GB, free: 8.996 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.5083, allocations: 0 / 0.6064 GB, free: 8.996 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.5083, allocations: 3.984 kB / 0.6064 GB, free: 8.992 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004903/0.5088, allocations: 415 kB / 0.6068 GB, free: 8.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.5089, allocations: 8.031 kB / 0.6068 GB, free: 8.535 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.519e-05/0.5089, allocations: 38.75 kB / 0.6069 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.5111, allocations: 188.6 kB / 0.607 GB, free: 8.305 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.5113, allocations: 211.7 kB / 0.6072 GB, free: 8.059 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.5113, allocations: 8 kB / 0.6073 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.5114, allocations: 8 kB / 0.6073 GB, free: 8.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.5119, allocations: 220.1 kB / 0.6075 GB, free: 7.812 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.5119, allocations: 4 kB / 0.6075 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.512, allocations: 0 / 0.6075 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.329e-06/0.512, allocations: 0 / 0.6075 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.5124, allocations: 183.8 kB / 0.6077 GB, free: 7.629 MB / 446.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.000982/0.5134, allocations: 0.5796 MB / 0.6082 GB, free: 6.992 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.5138, allocations: 138.5 kB / 0.6084 GB, free: 6.848 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.5139, allocations: 73.69 kB / 0.6084 GB, free: 6.773 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.514, allocations: 4 kB / 0.6084 GB, free: 6.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.514, allocations: 30.56 kB / 0.6085 GB, free: 6.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.514, allocations: 0 / 0.6085 GB, free: 6.73 MB / 446.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.00565/0.5197, allocations: 1.306 MB / 0.6097 GB, free: 5.336 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.5197, allocations: 51.41 kB / 0.6098 GB, free: 5.273 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.807e-05/0.5198, allocations: 113.8 kB / 0.6099 GB, free: 5.152 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.5199, allocations: 25.7 kB / 0.6099 GB, free: 5.121 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.17e-05/0.5199, allocations: 99.94 kB / 0.61 GB, free: 5.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.52, allocations: 71.03 kB / 0.6101 GB, free: 4.949 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.221e-05/0.5201, allocations: 53.7 kB / 0.6101 GB, free: 4.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.5203, allocations: 318.8 kB / 0.6104 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.5204, allocations: 63.97 kB / 0.6105 GB, free: 4.508 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.5206, allocations: 122.8 kB / 0.6106 GB, free: 4.379 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.521, allocations: 184.8 kB / 0.6108 GB, free: 4.188 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-07/0.521, allocations: 0 / 0.6108 GB, free: 4.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005043/0.5215, allocations: 254.2 kB / 0.611 GB, free: 3.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.5215, allocations: 8 kB / 0.611 GB, free: 3.922 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.5215, allocations: 4.094 kB / 0.611 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.5217, allocations: 56.77 kB / 0.6111 GB, free: 3.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.5221, allocations: 55.91 kB / 0.6111 GB, free: 3.805 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000403/0.5225, allocations: 0.5641 MB / 0.6117 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.5227, allocations: 4 kB / 0.6117 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.5227, allocations: 36.08 kB / 0.6117 GB, free: 3.176 MB / 446.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.0001107/0.5228, allocations: 124 kB / 0.6119 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.5229, allocations: 11.89 kB / 0.6119 GB, free: 3.035 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008226/0.5237, allocations: 343.3 kB / 0.6122 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.5237, allocations: 0 / 0.6122 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5238, allocations: 8 kB / 0.6122 GB, free: 2.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5238, allocations: 3.984 kB / 0.6122 GB, free: 2.676 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009518/0.5247, allocations: 0.6225 MB / 0.6128 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.5247, allocations: 0 / 0.6128 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.5251, allocations: 59.95 kB / 0.6129 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.558e-05/0.5252, allocations: 28.88 kB / 0.6129 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.5252, allocations: 19.92 kB / 0.6129 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.5262, allocations: 1.367 MB / 0.6143 GB, free: 380 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5263, allocations: 3.938 kB / 0.6143 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007286/0.527, allocations: 441.7 kB / 0.6147 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.31e-05/0.527, allocations: 85.02 kB / 0.6148 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.5271, allocations: 7.984 kB / 0.6148 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.5273, allocations: 8 kB / 0.6148 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.5274, allocations: 23.91 kB / 0.6148 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.316e-05/0.5274, allocations: 36.05 kB / 0.6148 GB, free: 15.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.588e-05/0.5275, allocations: 87.28 kB / 0.6149 GB, free: 15.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5275, allocations: 0 / 0.6149 GB, free: 15.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004309/0.5279, allocations: 79.92 kB / 0.615 GB, free: 15.57 MB / 462.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 (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.001238/0.5292, allocations: 0.9968 MB / 0.616 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000572/0.5298, allocations: 223.6 kB / 0.6162 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5298, allocations: 0 / 0.6162 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.5301, allocations: 230.8 kB / 0.6164 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.5306, allocations: 39.97 kB / 0.6164 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.5333, allocations: 2.064 MB / 0.6184 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.5336, allocations: 0.7046 MB / 0.6191 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004545/0.534, allocations: 81.77 kB / 0.6192 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.5343, allocations: 67.39 kB / 0.6193 GB, free: 10.98 MB / 462.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5343, allocations: 4 kB / 0.6193 GB, free: 10.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06408/0.5984, allocations: 7.227 MB / 0.6263 GB, free: 3.844 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.84, allocations: 4 kB / 0.6263 GB, free: 3.844 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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