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: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 108.3 kB / 18.41 MB, free: 4.695 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.001055/0.001055, allocations: 191 kB / 19.34 MB, free: 3.766 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.43/1.43, allocations: 222.9 MB / 243 MB, free: 15.08 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.2636/0.2636, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 61.19 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1416, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4759/0.6176, allocations: 149.4 MB / 0.6055 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.619, allocations: 0.9758 MB / 0.6065 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.6191, allocations: 0 / 0.6065 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.6194, allocations: 27.81 kB / 0.6065 GB, free: 9.918 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006313/0.62, allocations: 248.3 kB / 0.6068 GB, free: 9.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.6204, allocations: 115.7 kB / 0.6069 GB, free: 9.566 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.6207, allocations: 167.2 kB / 0.607 GB, free: 9.402 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.576e-05/0.6207, allocations: 8 kB / 0.607 GB, free: 9.395 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.6209, allocations: 95.67 kB / 0.6071 GB, free: 9.301 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.621, allocations: 43.78 kB / 0.6072 GB, free: 9.258 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.6211, allocations: 8 kB / 0.6072 GB, free: 9.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.6216, allocations: 263.7 kB / 0.6074 GB, free: 8.992 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.957e-05/0.6217, allocations: 19.92 kB / 0.6074 GB, free: 8.973 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.6218, allocations: 47.78 kB / 0.6075 GB, free: 8.926 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.6223, allocations: 281.2 kB / 0.6078 GB, free: 8.652 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.6223, allocations: 0 / 0.6078 GB, free: 8.652 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6223, allocations: 0 / 0.6078 GB, free: 8.652 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.6223, allocations: 0 / 0.6078 GB, free: 8.652 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.000588/0.6229, allocations: 411.8 kB / 0.6081 GB, free: 8.203 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.623, allocations: 8.031 kB / 0.6082 GB, free: 8.195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001888/0.6249, allocations: 188.6 kB / 0.6083 GB, free: 8.012 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.6253, allocations: 216.8 kB / 0.6085 GB, free: 7.762 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.6253, allocations: 4 kB / 0.6085 GB, free: 7.758 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.6254, allocations: 16 kB / 0.6086 GB, free: 7.742 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/0.6259, allocations: 216.1 kB / 0.6088 GB, free: 7.516 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.6259, allocations: 3.938 kB / 0.6088 GB, free: 7.512 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.6259, allocations: 4 kB / 0.6088 GB, free: 7.508 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.626, allocations: 4 kB / 0.6088 GB, free: 7.504 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.6264, allocations: 163.9 kB / 0.6089 GB, free: 7.344 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.001116/0.6275, allocations: 0.5835 MB / 0.6095 GB, free: 6.703 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/0.628, allocations: 138.5 kB / 0.6096 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.6281, allocations: 70.95 kB / 0.6097 GB, free: 6.488 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.6281, allocations: 4 kB / 0.6097 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.6282, allocations: 30.56 kB / 0.6097 GB, free: 6.445 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.6282, allocations: 0 / 0.6097 GB, free: 6.445 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.005216/0.6334, allocations: 1.312 MB / 0.611 GB, free: 5.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/0.6335, allocations: 55.34 kB / 0.6111 GB, free: 4.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.857e-05/0.6336, allocations: 113.8 kB / 0.6112 GB, free: 4.859 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.6337, allocations: 29.7 kB / 0.6112 GB, free: 4.824 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.588e-05/0.6337, allocations: 95.94 kB / 0.6113 GB, free: 4.727 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.6338, allocations: 67.05 kB / 0.6114 GB, free: 4.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.6339, allocations: 53.69 kB / 0.6114 GB, free: 4.602 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.634, allocations: 322.8 kB / 0.6117 GB, free: 4.277 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.6342, allocations: 71.97 kB / 0.6118 GB, free: 4.207 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.6344, allocations: 106.8 kB / 0.6119 GB, free: 4.094 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.6347, allocations: 191.3 kB / 0.6121 GB, free: 3.895 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.6347, allocations: 0 / 0.6121 GB, free: 3.895 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005139/0.6352, allocations: 259.5 kB / 0.6123 GB, free: 3.633 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.6353, allocations: 7.984 kB / 0.6123 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.6353, allocations: 0 / 0.6123 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.6355, allocations: 48.83 kB / 0.6124 GB, free: 3.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.6358, allocations: 56 kB / 0.6124 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004813/0.6363, allocations: 0.5718 MB / 0.613 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.6365, allocations: 4 kB / 0.613 GB, free: 2.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/0.6365, allocations: 27.98 kB / 0.613 GB, free: 2.891 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.0001265/0.6367, allocations: 121.9 kB / 0.6131 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.782e-05/0.6367, allocations: 11.91 kB / 0.6131 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007814/0.6375, allocations: 349.7 kB / 0.6135 GB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.6375, allocations: 4 kB / 0.6135 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.6375, allocations: 0 / 0.6135 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.6375, allocations: 4.859 kB / 0.6135 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.6386, allocations: 0.6199 MB / 0.6141 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.6386, allocations: 0 / 0.6141 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.639, allocations: 67.89 kB / 0.6142 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-05/0.639, allocations: 16.84 kB / 0.6142 GB, free: 1.617 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.385e-05/0.6391, allocations: 15.98 kB / 0.6142 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.6401, allocations: 1.364 MB / 0.6155 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6402, allocations: 12.09 kB / 0.6155 GB, free: 88 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.6409, allocations: 438.4 kB / 0.616 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.641, allocations: 85.11 kB / 0.616 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.641, allocations: 11.98 kB / 0.616 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.6412, allocations: 4 kB / 0.616 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.588e-05/0.6413, allocations: 27.97 kB / 0.6161 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.6414, allocations: 23.98 kB / 0.6161 GB, free: 15.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.023e-05/0.6414, allocations: 87.28 kB / 0.6162 GB, free: 15.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.6414, allocations: 0 / 0.6162 GB, free: 15.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000419/0.6418, allocations: 87.88 kB / 0.6163 GB, free: 15.29 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.0003643/0.6422, allocations: 148.2 kB / 0.6164 GB, free: 15.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.6427, allocations: 211.8 kB / 0.6166 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6427, allocations: 0 / 0.6166 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.6431, allocations: 222.5 kB / 0.6168 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.6436, allocations: 48.86 kB / 0.6169 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008121/0.6444, allocations: 481.8 kB / 0.6173 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.6447, allocations: 0.7046 MB / 0.618 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002802/0.645, allocations: 77.39 kB / 0.6181 GB, free: 13.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.6451, allocations: 55.41 kB / 0.6181 GB, free: 13.29 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6452, allocations: 4 kB / 0.6181 GB, free: 13.29 MB / 462.1 MB Notification: Performance of Templates: time 0.009474/0.6546, allocations: 5.583 MB / 0.6236 GB, free: 7.723 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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