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: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001615/0.001624, allocations: 118.8 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00197/0.001971, allocations: 198 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, 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.2646/0.2646, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 71.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4243, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1828/0.6071, allocations: 152.3 MB / 0.6797 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001389/0.6085, allocations: 1.059 MB / 0.6807 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.6086, allocations: 0 / 0.6807 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.6089, allocations: 35.75 kB / 0.6807 GB, free: 7.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0007091/0.6096, allocations: 278.5 kB / 0.681 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.61, allocations: 115 kB / 0.6811 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.6103, allocations: 183.2 kB / 0.6813 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.148e-05/0.6103, allocations: 11.92 kB / 0.6813 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.6105, allocations: 91.62 kB / 0.6814 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.928e-05/0.6107, allocations: 55.83 kB / 0.6814 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.6107, allocations: 4 kB / 0.6814 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005308/0.6112, allocations: 279.6 kB / 0.6817 GB, free: 6.805 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.732e-05/0.6113, allocations: 11.98 kB / 0.6817 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.394e-05/0.6114, allocations: 55.72 kB / 0.6818 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.6118, allocations: 277.1 kB / 0.682 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6118, allocations: 4 kB / 0.682 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6118, allocations: 0 / 0.682 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.6118, allocations: 4 kB / 0.682 GB, free: 6.465 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.000548/0.6124, allocations: 411.2 kB / 0.6824 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.6124, allocations: 12.03 kB / 0.6824 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/0.6145, allocations: 200.6 kB / 0.6826 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.6148, allocations: 207.6 kB / 0.6828 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.6148, allocations: 11.89 kB / 0.6828 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.6149, allocations: 8 kB / 0.6829 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.6154, allocations: 222.3 kB / 0.6831 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.6154, allocations: 0 / 0.6831 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.6155, allocations: 4 kB / 0.6831 GB, free: 5.312 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.6155, allocations: 7.984 kB / 0.6831 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/0.6159, allocations: 171.8 kB / 0.6832 GB, free: 5.137 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.001029/0.617, allocations: 0.5794 MB / 0.6838 GB, free: 4.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.6173, allocations: 142.4 kB / 0.6839 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.6174, allocations: 68.83 kB / 0.684 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.6175, allocations: 0 / 0.684 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.6175, allocations: 38.56 kB / 0.684 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.6175, allocations: 0 / 0.684 GB, free: 4.234 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.005275/0.6228, allocations: 1.308 MB / 0.6853 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.6229, allocations: 51.41 kB / 0.6854 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.623, allocations: 113.8 kB / 0.6855 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.623, allocations: 25.7 kB / 0.6855 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.77e-05/0.6231, allocations: 107.9 kB / 0.6856 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.6232, allocations: 63.05 kB / 0.6857 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.802e-05/0.6233, allocations: 61.59 kB / 0.6857 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.6234, allocations: 322.8 kB / 0.686 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.6235, allocations: 63.97 kB / 0.6861 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.6237, allocations: 111.2 kB / 0.6862 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.6241, allocations: 183 kB / 0.6864 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.6241, allocations: 0 / 0.6864 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004724/0.6245, allocations: 258.2 kB / 0.6866 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.6246, allocations: 8.094 kB / 0.6866 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.6246, allocations: 0 / 0.6866 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.6248, allocations: 56.8 kB / 0.6867 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.6251, allocations: 55.91 kB / 0.6867 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004982/0.6256, allocations: 0.5641 MB / 0.6873 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.6258, allocations: 8.094 kB / 0.6873 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.6258, allocations: 24 kB / 0.6873 GB, free: 0.6797 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.000122/0.6259, allocations: 125.8 kB / 0.6874 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.345e-05/0.626, allocations: 15.91 kB / 0.6875 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007217/0.6267, allocations: 338.4 kB / 0.6878 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.6267, allocations: 0 / 0.6878 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.6268, allocations: 4 kB / 0.6878 GB, free: 200 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.6268, allocations: 7.984 kB / 0.6878 GB, free: 192 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.6279, allocations: 0.6217 MB / 0.6884 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6279, allocations: 0 / 0.6884 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.6282, allocations: 63.95 kB / 0.6885 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.477e-05/0.6283, allocations: 24.94 kB / 0.6885 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.6283, allocations: 15.98 kB / 0.6885 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009597/0.6293, allocations: 1.365 MB / 0.6898 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.6293, allocations: 0 / 0.6898 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006803/0.63, allocations: 438.6 kB / 0.6902 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.404e-05/0.6301, allocations: 88.98 kB / 0.6903 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.6301, allocations: 4 kB / 0.6903 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.6303, allocations: 11.98 kB / 0.6903 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.378e-05/0.6304, allocations: 27.84 kB / 0.6904 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.6305, allocations: 28 kB / 0.6904 GB, free: 13.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.662e-05/0.6306, allocations: 91.33 kB / 0.6905 GB, free: 13.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6306, allocations: 4 kB / 0.6905 GB, free: 13.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005488/0.6311, allocations: 83.88 kB / 0.6906 GB, free: 13.08 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.000504/0.6317, allocations: 143.2 kB / 0.6907 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006084/0.6323, allocations: 203.8 kB / 0.6909 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.6323, allocations: 0 / 0.6909 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.6327, allocations: 218.5 kB / 0.6911 GB, free: 12.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.6332, allocations: 59.52 kB / 0.6912 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.6343, allocations: 485.9 kB / 0.6916 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.6347, allocations: 0.7085 MB / 0.6923 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003578/0.6351, allocations: 77.39 kB / 0.6924 GB, free: 11.12 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.6352, allocations: 55.41 kB / 0.6924 GB, free: 11.07 MB / 0.545 GB Notification: Performance of SimCode: time 1.8e-07/0.6353, allocations: 0 / 0.6924 GB, free: 11.07 MB / 0.545 GB Notification: Performance of Templates: time 0.01052/0.6458, allocations: 5.68 MB / 0.698 GB, free: 5.391 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches