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.001194/0.001194, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 71.89 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3652, 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.1791/0.5443, allocations: 152.3 MB / 0.6792 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.5459, allocations: 1.059 MB / 0.6802 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.546, allocations: 3.938 kB / 0.6802 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002715/0.5463, allocations: 31.81 kB / 0.6803 GB, free: 7.867 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0008998/0.5472, allocations: 274.5 kB / 0.6805 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.5477, allocations: 118.8 kB / 0.6806 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.548, allocations: 179.3 kB / 0.6808 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.381e-05/0.548, allocations: 10.19 kB / 0.6808 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.5483, allocations: 99.62 kB / 0.6809 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.5484, allocations: 59.7 kB / 0.681 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.5484, allocations: 8 kB / 0.681 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005764/0.549, allocations: 267.7 kB / 0.6812 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.224e-05/0.5491, allocations: 19.92 kB / 0.6812 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.5492, allocations: 51.78 kB / 0.6813 GB, free: 6.805 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00052/0.5497, allocations: 275.4 kB / 0.6816 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5497, allocations: 0 / 0.6816 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.724e-06/0.5497, allocations: 0 / 0.6816 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.132e-05/0.5497, allocations: 0 / 0.6816 GB, free: 6.535 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.0005539/0.5503, allocations: 423.1 kB / 0.682 GB, free: 6.074 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.5503, allocations: 8.031 kB / 0.682 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.577e-05/0.5504, allocations: 42.69 kB / 0.682 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.5525, allocations: 188.7 kB / 0.6822 GB, free: 5.832 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.5529, allocations: 211.4 kB / 0.6824 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.5529, allocations: 11.95 kB / 0.6824 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.5529, allocations: 8 kB / 0.6824 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000501/0.5534, allocations: 220 kB / 0.6826 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.5535, allocations: 0 / 0.6826 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.5535, allocations: 8 kB / 0.6826 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.5535, allocations: 3.984 kB / 0.6826 GB, free: 5.324 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.554, allocations: 167.9 kB / 0.6828 GB, free: 5.16 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.001046/0.555, allocations: 0.5793 MB / 0.6834 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.5553, allocations: 138.5 kB / 0.6835 GB, free: 4.379 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.5555, allocations: 68.83 kB / 0.6836 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.5555, allocations: 7.984 kB / 0.6836 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.5556, allocations: 34.5 kB / 0.6836 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.5556, allocations: 0 / 0.6836 GB, free: 4.258 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.005202/0.5608, allocations: 1.317 MB / 0.6849 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.5608, allocations: 55.41 kB / 0.6849 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.539e-05/0.5609, allocations: 105.8 kB / 0.685 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.5609, allocations: 29.7 kB / 0.6851 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.561, allocations: 95.89 kB / 0.6852 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.77e-05/0.5611, allocations: 71 kB / 0.6852 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/0.5612, allocations: 57.69 kB / 0.6853 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5613, allocations: 322.8 kB / 0.6856 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.5614, allocations: 71.95 kB / 0.6857 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.5616, allocations: 106.3 kB / 0.6858 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.5619, allocations: 179.3 kB / 0.6859 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5619, allocations: 4 kB / 0.6859 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004992/0.5625, allocations: 261.8 kB / 0.6862 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.5625, allocations: 7.938 kB / 0.6862 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.5625, allocations: 4 kB / 0.6862 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.5627, allocations: 52.92 kB / 0.6862 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.563, allocations: 47.97 kB / 0.6863 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004265/0.5634, allocations: 0.5682 MB / 0.6868 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.5636, allocations: 8.031 kB / 0.6869 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.5637, allocations: 23.98 kB / 0.6869 GB, free: 0.7031 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.0001116/0.5638, allocations: 129.9 kB / 0.687 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.5638, allocations: 11.84 kB / 0.687 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007126/0.5646, allocations: 343.1 kB / 0.6873 GB, free: 220 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.5646, allocations: 4 kB / 0.6873 GB, free: 216 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5646, allocations: 4 kB / 0.6873 GB, free: 212 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.5646, allocations: 0 / 0.6873 GB, free: 212 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009438/0.5655, allocations: 0.6256 MB / 0.688 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.5656, allocations: 4 kB / 0.688 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.5659, allocations: 63.89 kB / 0.688 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.014e-05/0.566, allocations: 16.84 kB / 0.688 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.566, allocations: 12 kB / 0.688 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009535/0.567, allocations: 1.384 MB / 0.6894 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.567, allocations: 0 / 0.6894 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.5677, allocations: 430.6 kB / 0.6898 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.5677, allocations: 89.11 kB / 0.6899 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.449e-05/0.5678, allocations: 4 kB / 0.6899 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.568, allocations: 8 kB / 0.6899 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.568, allocations: 23.97 kB / 0.6899 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.5681, allocations: 23.98 kB / 0.69 GB, free: 13.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.56e-05/0.5681, allocations: 95.2 kB / 0.69 GB, free: 13.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5681, allocations: 0 / 0.69 GB, free: 13.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003808/0.5685, allocations: 83.94 kB / 0.6901 GB, free: 13.1 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.001122/0.5697, allocations: 1.006 MB / 0.6911 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004669/0.5701, allocations: 219 kB / 0.6913 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5701, allocations: 0 / 0.6913 GB, free: 11.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.5705, allocations: 222.5 kB / 0.6915 GB, free: 11.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.5709, allocations: 56.3 kB / 0.6916 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.5734, allocations: 2.067 MB / 0.6936 GB, free: 9.367 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.5737, allocations: 0.7007 MB / 0.6943 GB, free: 8.641 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002821/0.574, allocations: 81.38 kB / 0.6944 GB, free: 8.562 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.5742, allocations: 63.41 kB / 0.6944 GB, free: 8.5 MB / 0.545 GB Notification: Performance of SimCode: time 2.013e-06/0.5742, allocations: 0 / 0.6944 GB, free: 8.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.6015, allocations: 7.399 MB / 0.7016 GB, free: 1.207 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.94, allocations: 7.922 kB / 0.7017 GB, free: 1.199 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches